Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serafimarts/zephir-composer-plugin
Zephir language composer installer
https://github.com/serafimarts/zephir-composer-plugin
compiler composer installer plugin zephir
Last synced: 2 months ago
JSON representation
Zephir language composer installer
- Host: GitHub
- URL: https://github.com/serafimarts/zephir-composer-plugin
- Owner: SerafimArts
- Created: 2017-04-12T20:09:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-16T00:49:29.000Z (over 7 years ago)
- Last Synced: 2024-10-06T18:58:26.838Z (3 months ago)
- Topics: compiler, composer, installer, plugin, zephir
- Language: PHP
- Homepage:
- Size: 31.3 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Zephir Composer Plugin
This is easy way to compile and install zephir sources though composer dependency manager.
## Usage
1) Add plugin: `composer require serafim/zephir-composer-plugin`
2) Open your [`composer.json`](https://getcomposer.org/doc/01-basic-usage.md).
3) Add path to [`config.json`](https://docs.zephir-lang.com/en/latest/config.html) into `extra`.`zephir` section:
```json
{
"require": {
"serafim/zephir-composer-plugin": "dev-master@dev"
},
"extra": {
"zephir": [
"your/src/config.json"
]
}
}
```
4) Run `composer install` or `composer update`## Fast start (plugin testing)
See [zephir-example](https://github.com/SerafimArts/zephir-example).
This is an example of "Hello World" zephir extension.1) Add "hello world" (`serafim/zephir-example`) into your `composer.json`:
```json
{
"require": {
"serafim/zephir-composer-plugin": "dev-master@dev",
"serafim/zephir-example": "~1.0"
}
}
```
2) Run `composer install` or `composer update`