pronskiy/locus

Composer plugin installs local PHP interpreter

Installs: 82

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:composer-plugin

0.2.1 2024-04-20 20:56 UTC

This package is auto-updated.

Last update: 2024-12-20 22:23:44 UTC


README

Installs a per-project php binary to the ./vendor/bin/ based on composer.json requirements.

Setup and Installation

Make sure you have a PHP version constraint specified in your composer.json:

"require": {
  "php": "^8.3"
},

Then run the following command to add locus:

composer require pronskiy/locus --dev 

You'll be asked to allow the composer plugin, reply y. Or if you are adding the dependency manually, add the following to your composer.json:

"config": {
  "allow-plugins": {
    "pronskiy/locus": true
  }
}

Usage

Now you always have your per-project php binary to execute PHP scripts directly from the command line.

./vendor/bin/php --version

Credits

This package entirely relies on https://github.com/static-php.