serafim / zephir-composer-plugin
Composer plugin to supports installation of zephir-lang based sources
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 1
Open Issues: 0
Type:composer-plugin
Requires
- php: >=7.0
- composer-plugin-api: ^1.0
Requires (Dev)
- composer/composer: ~1.1
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-11-07 16:42:04 UTC
README
This is easy way to compile and install zephir sources though composer dependency manager.
Usage
- Add plugin:
composer require serafim/zephir-composer-plugin
- Open your
composer.json
. - Add path to
config.json
intoextra
.zephir
section:
{ "require": { "serafim/zephir-composer-plugin": "dev-master@dev" }, "extra": { "zephir": [ "your/src/config.json" ] } }
- Run
composer install
orcomposer update
Fast start (plugin testing)
See zephir-example. This is an example of "Hello World" zephir extension.
- Add "hello world" (
serafim/zephir-example
) into yourcomposer.json
:
{ "require": { "serafim/zephir-composer-plugin": "dev-master@dev", "serafim/zephir-example": "~1.0" } }
- Run
composer install
orcomposer update