PHPackages                             izmanw/zephir - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. izmanw/zephir

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

izmanw/zephir
=============

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

0.9.4(9y ago)026MITCPHP &gt;=5.4

Since Feb 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/izmanw/zephir)[ Packagist](https://packagist.org/packages/izmanw/zephir)[ Docs](http://zephir-lang.com/)[ RSS](/packages/izmanw-zephir/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (30)Used By (0)

Zephir
======

[](#zephir)

[![Dependency Status](https://camo.githubusercontent.com/cbe865ef352aca4422cffc2c626ccf70c700e9502464cdcfd2cd8b370377063c/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7061636b6167652f7068616c636f6e3a7a65706869722f62616467652e706e67)](https://www.versioneye.com/package/phalcon:zephir)[![Latest Stable Version](https://camo.githubusercontent.com/1b7cdc5aa50ddbda72faae89517a686b575eb18a5dec2cd28b4d9d5f32ea95f1/68747470733a2f2f706f7365722e707567782e6f72672f7068616c636f6e2f7a65706869722f762f737461626c652e706e67)](https://packagist.org/packages/phalcon/zephir)[![Total Downloads](https://camo.githubusercontent.com/1cff3750db1e80d3d9052588e323cbfbc48f82b3309412cc1cb44509cf918f5b/68747470733a2f2f706f7365722e707567782e6f72672f7068616c636f6e2f7a65706869722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/phalcon/zephir)[![License](https://camo.githubusercontent.com/b669aecd92be06cbe2ef5499dd25bbec7d75cca19387c526421df7189f2039b4/68747470733a2f2f706f7365722e707567782e6f72672f7068616c636f6e2f7a65706869722f6c6963656e73652e737667)](https://packagist.org/packages/phalcon/zephir)

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:

- Both dynamic/static typing
- Reduced execution overhead compared with full interpretation
- Restricted procedural programming, promoting OOP
- Memory safety
- Ahead-of-time (AOT) compiler to provide predictable performance

Compiler design goals:

- Multi-pass compilation
- Type speculation/inference
- Allow runtime profile-guided optimizations, pseudo-constant propagation and indirect/virtual function inlining

Requirements
------------

[](#requirements)

To compile zephir-parser:

- [re2c](http://re2c.org/)

To build the PHP extension:

- g++ &gt;= 4.4/clang++ &gt;= 3.x/vc++ 9
- gnu make 3.81 or later
- php development headers and tools

Installation
------------

[](#installation)

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](https://getcomposer.org/doc/articles/vendor-binaries.md).

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.

Additional notes on Ubuntu
--------------------------

[](#additional-notes-on-ubuntu)

The following packages are needed in Ubuntu:

- apt-get install re2c libpcre3-dev

Usage
-----

[](#usage)

Compile the extension:

```
./bin/zephir compile
```

External Links
--------------

[](#external-links)

- [Documentation](https://zephir-lang.com/)
- [Official Blog](https://blog.zephir-lang.com/)
- [Forum](https://forum.zephir-lang.com/)
- [Twitter](https://twitter.com/zephirlang)

License
-------

[](#license)

Zephir is open-sourced software licensed under the MIT License. See the LICENSE file for more information.

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](https://github.com/phalcon/zephir/blob/master/CONTRIBUTING.md) for details about contributions to this repository.

Current Build Status
--------------------

[](#current-build-status)

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:

- Linux: [![Build Status](https://camo.githubusercontent.com/f25a463b3d0fb79ea36b2d697b1d7f77d4bd3fb03ee7e5f58abc40c8ee790e32/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7068616c636f6e2f7a65706869722e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/phalcon/zephir)
- Windows: [![Build status](https://camo.githubusercontent.com/2ea32c6d56a14bbe3eccaeb6d143cabf2195372f1339719f3b4b0bdec571249c/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f3531656e63796f7864663462366633312f6272616e63682f6d61737465723f7376673d74727565)](https://ci.appveyor.com/project/phalcon/zephir/branch/master)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~32 days

Recently: every ~97 days

Total

29

Last Release

3613d ago

PHP version history (3 changes)0.3.5aPHP ~5.3

0.6.1PHP &gt;=5.3

0.9.2PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbd6c1e93ed92f4ad92b9f53a7bad87eaa598a70bae172a3d40b1333c491b596?d=identicon)[mervick](/maintainers/mervick)

---

Top Contributors

[![andresgutierrez](https://avatars.githubusercontent.com/u/213590?v=4)](https://github.com/andresgutierrez "andresgutierrez (1068 commits)")[![ovr](https://avatars.githubusercontent.com/u/572096?v=4)](https://github.com/ovr "ovr (519 commits)")[![carvajaldiazeduar](https://avatars.githubusercontent.com/u/1197509?v=4)](https://github.com/carvajaldiazeduar "carvajaldiazeduar (125 commits)")[![steffengy](https://avatars.githubusercontent.com/u/1194855?v=4)](https://github.com/steffengy "steffengy (67 commits)")[![gsouf](https://avatars.githubusercontent.com/u/3215399?v=4)](https://github.com/gsouf "gsouf (43 commits)")[![racklin](https://avatars.githubusercontent.com/u/21985?v=4)](https://github.com/racklin "racklin (31 commits)")[![sergeyklay](https://avatars.githubusercontent.com/u/1256298?v=4)](https://github.com/sergeyklay "sergeyklay (29 commits)")[![sjinks](https://avatars.githubusercontent.com/u/7810770?v=4)](https://github.com/sjinks "sjinks (22 commits)")[![Cinderella-Man](https://avatars.githubusercontent.com/u/1019893?v=4)](https://github.com/Cinderella-Man "Cinderella-Man (16 commits)")[![mruz](https://avatars.githubusercontent.com/u/2629882?v=4)](https://github.com/mruz "mruz (14 commits)")[![mervick](https://avatars.githubusercontent.com/u/2429298?v=4)](https://github.com/mervick "mervick (13 commits)")[![dreamsxin](https://avatars.githubusercontent.com/u/314295?v=4)](https://github.com/dreamsxin "dreamsxin (13 commits)")[![manhnt2](https://avatars.githubusercontent.com/u/9714806?v=4)](https://github.com/manhnt2 "manhnt2 (10 commits)")[![KorsaR-ZN](https://avatars.githubusercontent.com/u/579410?v=4)](https://github.com/KorsaR-ZN "KorsaR-ZN (8 commits)")[![Green-Cat](https://avatars.githubusercontent.com/u/3328823?v=4)](https://github.com/Green-Cat "Green-Cat (7 commits)")[![dariomncs](https://avatars.githubusercontent.com/u/495006?v=4)](https://github.com/dariomncs "dariomncs (7 commits)")[![hylent](https://avatars.githubusercontent.com/u/2173216?v=4)](https://github.com/hylent "hylent (6 commits)")[![ilyk](https://avatars.githubusercontent.com/u/797411?v=4)](https://github.com/ilyk "ilyk (5 commits)")[![SidRoberts](https://avatars.githubusercontent.com/u/1364214?v=4)](https://github.com/SidRoberts "SidRoberts (5 commits)")[![olivier-monaco](https://avatars.githubusercontent.com/u/3101457?v=4)](https://github.com/olivier-monaco "olivier-monaco (5 commits)")

---

Tags

extension

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/izmanw-zephir/health.svg)

```
[![Health](https://phpackages.com/badges/izmanw-zephir/health.svg)](https://phpackages.com/packages/izmanw-zephir)
```

###  Alternatives

[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
