serafim/zephir-composer-plugin

Composer plugin to supports installation of zephir-lang based sources

dev-master 2017-04-16 00:49 UTC

README

This is easy way to compile and install zephir sources though composer dependency manager.

68747470733a2f2f686162726173746f726167652e6f72672f66696c65732f3836312f3538662f3335662f38363135386633356634323634336239613035373933663163353835393863312e676966

Usage

  1. Add plugin: composer require serafim/zephir-composer-plugin
  2. Open your composer.json.
  3. Add path to config.json into extra.zephir section:
{
    "require": {
        "serafim/zephir-composer-plugin": "dev-master@dev"    
    },
    "extra": {
        "zephir": [
            "your/src/config.json"            
        ]
    }
}
  1. Run composer install or composer update

Fast start (plugin testing)

See zephir-example. This is an example of "Hello World" zephir extension.

  1. Add "hello world" (serafim/zephir-example) into your composer.json:
{
    "require": {
        "serafim/zephir-composer-plugin": "dev-master@dev",
        "serafim/zephir-example": "~1.0"
    }
}
  1. Run composer install or composer update