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
Requires
- php: ^8.1.0
- composer-plugin-api: ^2.0
- ext-curl: *
- ext-json: *
- pear/archive_tar: ^1.5.0
Requires (Dev)
- composer/composer: ^2.7.3
- pestphp/pest: ^v2.34.7
- symfony/var-dumper: ^v7.0.4
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.