PHPackages                             ekapusta/laminas-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. ekapusta/laminas-code

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

ekapusta/laminas-code
=====================

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

4.17.0(6mo ago)0927↓31.7%BSD-3-ClausePHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

Since Dec 31Pushed 3mo agoCompare

[ Source](https://github.com/ekapusta/laminas-code)[ Packagist](https://packagist.org/packages/ekapusta/laminas-code)[ Docs](https://laminas.dev)[ RSS](/packages/ekapusta-laminas-code/feed)WikiDiscussions 4.7.x Synced 1mo ago

READMEChangelogDependencies (6)Versions (140)Used By (0)

laminas-code
============

[](#laminas-code)

[![Build Status](https://camo.githubusercontent.com/3c0b230070adadc40c3772e3dc3d3534097399987daaf60853daadb7e977a4d1/68747470733a2f2f7472617669732d63692e636f6d2f6c616d696e61732f6c616d696e61732d636f64652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/laminas/laminas-code)[![Coverage Status](https://camo.githubusercontent.com/a21099a81ccb465badd088c284010f34bd1e0e5c06e3639accfc070261c4542a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c616d696e61732f6c616d696e61732d636f64652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/laminas/laminas-code?branch=master)

> ## 🇷🇺 Русским гражданам
>
> [](#-русским-гражданам)
>
> Мы, участники Laminas, родились и живем в разных странах. У многих из нас есть друзья, родственники и коллеги как в России, так и в Украине. Некоторые из нас родились в России. Некоторые из нас живут в России. У некоторых бабушки и дедушки сражались с фашистами во Второй мировой войне. Здесь никто не поддерживает фашизм.
>
> У одного из нас есть украинская родственница, которая спаслась из дома вместе с сыном. Поезд задержался из-за бомбежки на дороге впереди. У нас есть друзья, которые прячутся в бомбоубежищах. Мы с тревогой ждем весточки от них после воздушных налетов, которые беспорядочно наносят удары и попадают по больницам, школам, детским садам и домам. Мы не берем это из каких-либо СМИ. Мы наблюдаем это напрямую.
>
> Вы доверяете нам достаточно, чтоб использовать наши программы, и мы просим вас довериться нам вновь. Мы нуждаемся в помощи. Выходите и протестуйте против этой бесполезной войны. Остановите кровопролитие. Скажите "Нет войне!"
>
> ## 🇺🇸 To Citizens of Russia
>
> [](#-to-citizens-of-russia)
>
> We at Laminas come from all over the world. Many of us have friends, family and colleagues in both Russia and Ukraine. Some of us were born in Russia. Some of us currently live in Russia. Some have grandparents who fought Nazis in World War II. Nobody here supports fascism.
>
> One team member has a Ukrainian relative who fled her home with her son. The train was delayed due to bombing on the road ahead. We have friends who are hiding in bomb shelters. We anxiously follow up on them after the air raids, which indiscriminately fire at hospitals, schools, kindergartens and houses. We're not taking this from any media. These are our actual experiences.
>
> You trust us enough to use our software. We ask that you trust us to say the truth on this. We need your help. Go out and protest this unnecessary war. Stop the bloodshed. Say "stop the war!"

`Laminas\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

55

—

FairBetter than 98% of packages

Maintenance75

Regular maintenance activity

Popularity20

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity92

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 61.9% 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 ~17 days

Recently: every ~27 days

Total

134

Last Release

92d ago

Major Versions

2.6.3 → 3.0.02019-12-31

3.5.x-dev → 4.0.02020-12-30

PHP version history (16 changes)2.0.0PHP &gt;=5.3.3

2.3.0PHP &gt;=5.3.23

2.5.2PHP &gt;=5.5

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

3.0.0PHP ^5.5 || ^7.0

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

3.2.0PHP ^7.1

3.5.0PHP ^7.3 || ~8.0.0

4.0.0PHP ^7.4 || ~8.0.0

4.5.0PHP &gt;=7.4, &lt;8.2

4.8.x-devPHP ~8.1.0 || ~8.2.0

4.13.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

4.15.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

4.18.x-devPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

4.7.1.1PHP &gt;=7.4, ^8.0

4.7.x-devPHP &gt;=7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f986f04f2e4314d3b96ed62117f4298f07d8952d3b5ec6e00cf127d63f4046f?d=identicon)[garex](/maintainers/garex)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (5385 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (1146 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)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (173 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (145 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 (43 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)")[![blanchonvincent](https://avatars.githubusercontent.com/u/1580512?v=4)](https://github.com/blanchonvincent "blanchonvincent (27 commits)")[![neeckeloo](https://avatars.githubusercontent.com/u/1768645?v=4)](https://github.com/neeckeloo "neeckeloo (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

laminascodelaminasframework

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ekapusta-laminas-code/health.svg)

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

###  Alternatives

[laminas/laminas-code

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

1.9k185.4M172](/packages/laminas-laminas-code)[endroid/qr-code

Endroid QR Code

4.8k67.6M348](/packages/endroid-qr-code)[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.3k64.2M576](/packages/nette-php-generator)[laminas/laminas-eventmanager

Trigger and listen to events within a PHP application

1.0k69.8M225](/packages/laminas-laminas-eventmanager)[jetbrains/phpstorm-stubs

PHP runtime &amp; extensions header files for PhpStorm

1.4k27.7M68](/packages/jetbrains-phpstorm-stubs)[scrivo/highlight.php

Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js

71140.3M82](/packages/scrivo-highlightphp)

PHPackages © 2026

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