nette/php-generator
Generate PHP code via a fluent API: build classes, interfaces, functions, methods, properties, namespaces, and PHPDoc, then render to valid PHP. Handy for code generators, scaffolding tools, and runtime code output with strict formatting and escaping.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| jms/cg | 0.85 | jms/cg is a PHP code generation library that builds classes, methods, and properties programmatically. It provides a fluent API plus reflection and metadata support to generate readable source code, useful for proxies, serializers, and other build-time tooling. | 156 | 160 | 34 | 76K | 10 | 5.9 | 43.5 | Apache-2.0 | 10 years ago | |
| murtukov/php-code-generator | 0.83 | PHPCodeGenerator generates PHP 7.4 source code via a fluent API. Build files with namespaces and imports, create classes/interfaces/traits/enums, methods/functions/closures, control structures, arrays, literals, comments, and configure global formatting options. | 27 | 27 | 4 | 159K | 5 | 4.2 | 54.6 | MIT | 5 years ago | |
| demoniacdeath/cg | 0.83 | — | 0 | 0 | 1 | 0 | 0 | 0.0 | — | Apache-2.0 | — | |
| edlcdmc/generator-bundle | 0.82 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| laminas/laminas-code | 0.80 | Generate, analyze, and manipulate PHP code with Laminas Code. Provides reflection utilities, code generators, docblock parsing, and class/file generation helpers for building frameworks, tooling, and meta-programming workflows. | 1,904 | 1,908 | 87 | 4M | 21 | 31.2 | 55.4 | BSD-3-Clause | 10 months ago | |
| dmp/cg-lib | 0.80 | CG library is a PHP 8.1+ toolset for generating PHP code. It helps assemble and enhance classes by adding reusable behaviors, making it easier to build and modify code structures programmatically during code generation workflows. | 0 | 0 | 0 | 3 | 0 | 0.3 | 8.3 | Apache-2.0 | 2 years ago | |
| phpmd/phpmd | 0.79 | PHPMD (PHP Mess Detector) scans PHP code for potential problems like overly complex methods, unused parameters, and suspicious code. It’s a CLI tool with configurable rulesets, Baseline support, and CI-friendly output formats to keep codebases clean. | 2,449 | 2,521 | 357 | 2M | 60 | 44.8 | 58.9 | BSD-3-Clause | 2 years ago | |
| michelf/php-smartypants | 0.78 | PHP port of John Gruber’s SmartyPants: converts plain ASCII punctuation into typographically correct “smart” quotes, dashes, and ellipses. Useful for cleaning up HTML output from Markdown or other text sources, with configurable transformation options. | 112 | 117 | 22 | 218K | 2 | 2.0 | 46.8 | NOASSERTION | — | |
| nette/utils | 0.78 | Handy PHP utility library from Nette: strings, arrays, filesystem, safe JSON, and more. Includes proven helpers like Strings, Arrays, FileSystem, and Validators to simplify everyday tasks with clean APIs, good performance, and broad compatibility. | 2,144 | 2,192 | 154 | 14M | 5 | 45.5 | 65.7 | NOASSERTION | 2 months ago |
How can I help you explore Laravel packages today?