serafim/zephir-composer-plugin

Composer plugin to supports installation of zephir-lang based sources

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

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

  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