Zephir - Ze(nd Engine) Ph(p) I(nt)r(mediate) - is a high level language that eases the creation and maintainability of extensions for PHP. Zephir extensions are exported to C code that can be compiled and optimized by major C compilers such as gcc/clang/vc++. Functionality is exposed to the PHP language.
Main features:
Compiler design goals:
To compile zephir-parser:
To build the PHP extension:
You can install zephir using composer.
Run composer require phalcon/zephir
, run ./install
and then run zephir
from your bin-dir
. By default it is ./vendor/bin/zephir
.
You can read more about composer binaries
in it's documentation.
For global installation via composer you can use composer global require
.
Do not forget add ~/.composer/vendor/bin
into your $PATH
.
Also you can just clone zephir repository and run ./install
.
For global installation add -c
flag.
The following packages are needed in Ubuntu:
Compile the extension:
./bin/zephir compile
Zephir is open-sourced software licensed under the MIT License. See the LICENSE file for more information.
See CONTRIBUTING.md for details about contributions to this repository.
Zephir is built under Travis CI service. Every commit pushed to this repository will queue a build into the continuous integration service and will run all PHPUnit tests to ensure that everything is going well and the project is stable. The current build status is:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。