PHPackages                             zendframework/zend-code - 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. zendframework/zend-code

Abandoned → [laminas/laminas-code](/?search=laminas%2Flaminas-code)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

zendframework/zend-code
=======================

Extensions to the PHP Reflection API, static code scanning, and code generation

3.4.1(6y ago)1.7k83.0M↑35.4%78[28 issues](https://github.com/zendframework/zend-code/issues)[3 PRs](https://github.com/zendframework/zend-code/pulls)20BSD-3-ClausePHPPHP ^7.1

Since Oct 17Pushed 6y ago24 watchersCompare

[ Source](https://github.com/zendframework/zend-code)[ Packagist](https://packagist.org/packages/zendframework/zend-code)[ RSS](/packages/zendframework-zend-code/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (85)Used By (20)

zend-code
=========

[](#zend-code)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [laminas/laminas-code](https://github.com/laminas/laminas-code).

[![Build Status](https://camo.githubusercontent.com/4c4b54ecd8526dfeefe4ee8b364d68efb4087885b04c1cf06bfde640ade6ab39/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d636f64652e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-code)[![Coverage Status](https://camo.githubusercontent.com/49294793462f76bc8b2ac2cdda78bd51e1b87b9ea16075549dd2ff4764e7cda9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d636f64652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-code?branch=master)

`Zend\Code\Generator` provides facilities to generate arbitrary code using an object-oriented interface, both to create new code as well as to update existing code. While the current implementation is limited to generating PHP code, you can easily extend the base class in order to provide code generation for other tasks: JavaScript, configuration files, apache vhosts, etc.

- File issues at
- Documentation is at
- Migration documentation from v2 to v3 is at

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity75

Solid adoption and visibility

Community48

Growing community involvement

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 63.2% 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 ~33 days

Recently: every ~195 days

Total

79

Last Release

2351d ago

Major Versions

2.6.2 → 3.0.02016-01-13

2.6.3 → 3.0.22016-04-20

PHP version history (7 changes)2.0.3PHP &gt;=5.3.3

2.3.0PHP &gt;=5.3.23

2.5.2PHP &gt;=5.5

3.0.0PHP ^5.5 || ^7.0

2.6.3PHP ^5.5 || 7.0.0 - 7.0.4 || ^7.0.6

3.1.0PHP ^5.6 || 7.0.0 - 7.0.4 || ^7.0.6

3.2.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296074?v=4)[Zend Framework](/maintainers/zendframework)[@zendframework](https://github.com/zendframework)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (5371 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (1047 commits)")[![Maks3w](https://avatars.githubusercontent.com/u/1301698?v=4)](https://github.com/Maks3w "Maks3w (832 commits)")[![EvanDotPro](https://avatars.githubusercontent.com/u/5607?v=4)](https://github.com/EvanDotPro "EvanDotPro (249 commits)")[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (182 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (145 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (106 commits)")[![ralphschindler](https://avatars.githubusercontent.com/u/76674?v=4)](https://github.com/ralphschindler "ralphschindler (54 commits)")[![marc-mabe](https://avatars.githubusercontent.com/u/302689?v=4)](https://github.com/marc-mabe "marc-mabe (52 commits)")[![Freeaqingme](https://avatars.githubusercontent.com/u/33034?v=4)](https://github.com/Freeaqingme "Freeaqingme (45 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (41 commits)")[![DASPRiD](https://avatars.githubusercontent.com/u/233300?v=4)](https://github.com/DASPRiD "DASPRiD (39 commits)")[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (35 commits)")[![sgehrig](https://avatars.githubusercontent.com/u/43394?v=4)](https://github.com/sgehrig "sgehrig (35 commits)")[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (28 commits)")[![neeckeloo](https://avatars.githubusercontent.com/u/1768645?v=4)](https://github.com/neeckeloo "neeckeloo (27 commits)")[![blanchonvincent](https://avatars.githubusercontent.com/u/1580512?v=4)](https://github.com/blanchonvincent "blanchonvincent (27 commits)")[![mikaelkael](https://avatars.githubusercontent.com/u/212540?v=4)](https://github.com/mikaelkael "mikaelkael (26 commits)")[![steverhoades](https://avatars.githubusercontent.com/u/1146668?v=4)](https://github.com/steverhoades "steverhoades (25 commits)")[![mwillbanks](https://avatars.githubusercontent.com/u/38209?v=4)](https://github.com/mwillbanks "mwillbanks (23 commits)")

---

Tags

codeZendFrameworkzf

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zendframework-zend-code/health.svg)

```
[![Health](https://phpackages.com/badges/zendframework-zend-code/health.svg)](https://phpackages.com/packages/zendframework-zend-code)
```

PHPackages © 2026

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