Page MenuHomeDevCentral

README.md
No OneTemporary

README.md

# run-php-script
Quality and development PHP tools like PHPUnit, phpcs or phan are typically installed through Composer packages. As such, several software can use several versions of those tools.
Generally, some of those tools are also installed globally to be able to run them everywhere.
Meanwhile, programs calling linters like Arcanist have some trouble to find executables.
Finally, programs like PHPUnit are distributed in phar format with .phar extension and can so be installed as phpunit or phpunit.phar on the system.
This wrapper package addresses two issues:
1. Give priority to Composer version, located in vendor/bin
2. Find tools executables in /opt, for example /opt/phpunit.phar /opt/phpunit
## Build wrappers
This package provides a Makefile to generate those wrappers:
```
$ make
```
On BSD systems, you need to explicitlely require GNU make:
```
$ gmake
```
Wrappers are then located in the `builds/` folder.
## Install wrappers
You can customize the target path in Makefile editing the PREFIX variable, then:
```
$ sudo make install
```

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 12, 04:58 (1 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3064967
Default Alt Text
README.md (1 KB)

Event Timeline