zephir-lang/zephir
Zephir is a compiled high-level language aimed to ease the creation of C-extensions for PHP observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 13.0
- age_days: 4795
- days_rel: 8
- days_push: 7
- n_releases_24m: 11
Adoption not part of the score
3386 stars · 462 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Zephir is a high-level, statically/dynamically typed programming language with a compiler CLI that transpiles code to C for building PHP extensions. It offers memory safety without pointers and compiles via gcc, clang, or Visual C++ into loadable PHP shared libraries.
Use cases
- write php extensions in a high level language
- compile php code to c extension
- speed up php framework with native extension
- create php extension without learning c
- build phalcon-style php extension
- generate c code from php-like syntax
When to choose
- you want to write fast PHP extensions without hand-writing C
- you maintain or extend Phalcon or similar extension-based frameworks
- you want type and memory safety while targeting PHP internals
When to avoid
- you need a general-purpose language outside the PHP extension ecosystem
- you require direct pointer-level control or C interop beyond PHP APIs
- your project is pure PHP with no performance-critical hot paths
Facets
cli-tool · maturity active
compiler programming-language developer-tools programming-languages compilers developer-tools web-development windows php cli cross-platform php-extensions c-extensions php-internals static-typing memory-safety phalcon linux macos
4 sources
- readme: https://github.com/zephir-lang/zephir · fetched 2026-08-28 · 89fe6b5409a6
- homepage: https://zephir-lang.com · fetched 2026-08-29 · 7b179cc4a54e
- site_page: https://docs.zephir-lang.com/ · fetched 2026-08-29 · f0aaddac7f8c
- site_page: https://docs.zephir-lang.com/latest/installation · fetched 2026-08-29 · 0b12c67064d3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| zephir-lang/zephir | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="zephir-lang/zephir")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem