nette/php-generator
🐘 Generates neat PHP code for you. Supports new PHP 8.5 features. observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 92
- Release rhythm 45
- Longevity 100
Flags: no_license
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: 100.0
- age_days: 4556
- days_rel: 205
- days_push: 51
- n_releases_24m: 7
Adoption not part of the score
2259 stars · 145 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library for programmatically generating PHP code for classes, functions, enums, attributes, and complete files, with support for the latest PHP 8.x features. It can also modify existing classes and produce output compliant with PSR-12/PER coding style.
Use cases
- generate php classes programmatically
- create php code from templates or metadata
- modify existing php classes at build time
- generate php files for scaffolding tools
- produce psr-12 compliant php code
- generate enums and attributes in php 8
When to choose
- you need to emit valid, modern PHP code from PHP itself
- you want to manipulate or extend existing PHP classes programmatically
- you need PSR-12/PER-compliant output and support for the newest PHP syntax
When to avoid
- you need code generation in a language other than PHP
- you only need simple string templating without AST-level structure
Facets
library · maturity stable
parser developer-tools developer-tools programming-languages php cli php-code-generation nette psr-12 metaprogramming code-manipulation code-generation automation
7 sources
- readme: https://github.com/nette/php-generator · fetched 2026-08-28 · 7c22117557c4
- homepage: https://doc.nette.org/php-generator · fetched 2026-08-29 · 5b79b3be8a7f
- site_page: https://doc.nette.org/en/contributing/documentation · fetched 2026-08-29 · 7d2a71a103a6
- site_page: https://doc.nette.org/en · fetched 2026-08-29 · 593c2062fa13
- site_page: https://nette.org/en/releases · fetched 2026-08-29 · aa39e1b5cbb1
- site_page: https://doc.nette.org · fetched 2026-08-29 · b052116b2a14
- site_page: https://nette.org/en/history · fetched 2026-08-29 · 286192274b00
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| nette/php-generator | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="nette/php-generator")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem