The usual tools you need to build a PHP extension:
* php, phpize and php-config
* make, cc and autotools
+
A network connection is not needed.
### Not implemented
* Dependencies
* Package description files
+## Download for extension maintainers
+
+Download the pharext binary of the [latest release](https://github.com/m6w6/pharext/releases/latest).
+
## Installation for extension maintainers
- $ composer require m6w6/pharext
+ $ composer require --dev m6w6/pharext
### Prerequisites:
## Usage
- $ ./bin/pharext --pecl --source ../pecl_http.git
+ $ ./vendor/bin/pharext --pecl --source ../pecl_http.git
Yields:
Another example using `git ls-files`:
- $ ./bin/pharext -v -g -s ../raphf.git --name raphf --release 1.0.5
+ $ ./vendor/bin/pharext -v -g -s ../raphf.git --name raphf --release 1.0.5
Yields:
Command help:
- $ ./bin/pharext --help
+ $ ./vendor/bin/pharext --help
Yields:
Usage:
- $ ./bin/pharext [-h|-v|-q|-g|-p] -s <arg> -n <arg> -r <arg> [-d <arg>]
+ $ ./vendor/bin/pharext [-h|-v|-q|-g|-p] -s <arg> -n <arg> -r <arg> [-d <arg>]
-h|--help Display this help
-v|--verbose More output
-n|--name <arg> Extension name (REQUIRED)
-r|--release <arg> Extension release version (REQUIRED)
+## Rebuilding
+
+ $ make -C vendor/m6w6/pharext