awesome-repositories.com
Blog
MCP
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoServidor MCPAcerca deCómo clasificamosPrensa
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
nette avatar

nette/php-generator

0
View on GitHub↗
2,253 estrellas·147 forks·PHP·10 vistasdoc.nette.org/php-generator↗

Php Generator

Php-generator is a metaprogramming library for programmatically generating, inspecting, parsing, and manipulating PHP source code using expressive object-oriented structures. It allows developers to construct classes, interfaces, traits, enums, functions, closures, and complete files without writing raw strings.

The library features automated namespace resolution to manage fully qualified class names and use statements, preventing naming collisions in generated output. It also includes configurable formatting utilities that transform abstract syntax trees into text strings adhering to established style specifications such as standards like PSR-2, PSR-12, and PER, alongside data serialization tools for converting runtime variables into parseable code representations.

Features

  • PHP Code Generators - Builds classes, functions, namespaces, and entire source files programmatically using an object-oriented structure instead of writing raw strings.
  • Code Formatting - Converts programmatic code structures into valid text strings complying with standard coding style specifications like PSR-2, PSR-12, and PER.
  • Code Printer Formatters - Transforms abstract syntax trees into formatted text strings adhering strictly to established coding style specifications and custom rules.
  • PHP Code Formatters - Transforms programmatic structures into clean, standards-compliant PHP code strings matching established style guidelines like PSR-12.
  • Namespace Organization - Organizes classes, functions, and interfaces into structured namespaces with automated alias resolution and use statements.
  • Metaprogramming Toolkits - A tool that parses, inspects, and modifies existing PHP source code through reflection and programmatic manipulation interfaces.
  • Qualified Name Resolution - Resolves fully qualified class names and use statements automatically to prevent naming collisions in generated output.
  • Syntax Trees - Constructs a syntax tree using expressive object models so developers assemble valid code structures programmatically without writing raw strings.
  • Object-Oriented Structural Organization - Programmatically builds classes, interfaces, traits, enums, and namespaces with configurable members, types, attributes, and visibility modifiers.
  • Source Code Loaders - Inspects existing source files and running classes to load them back into the object model for dynamic modification.
  • File Assemblers - Assembles complete PHP files combining classes, functions, namespaces, and strict type declarations into ready-to-output file structures.
  • Runtime Class Modifications - Updates existing class structures by inheriting methods and properties or implementing abstract requirements dynamically.
  • Source Function Generation - Builds global functions, anonymous closures, and short arrow functions with customizable signatures, parameters, return types, and bodies.
  • Expression Escapers - Converts arbitrary runtime values and PHP expressions into safe, parseable code representations suitable for injection into generated output.
  • PHP Code Analysis - Parses existing PHP source files and classes into an object model so they can be analyzed, modified, and re-exported.
  • Source File Parsing - Loads and analyzes existing source files, classes, and functions via reflection or parsing to programmatically inspect, modify, or replicate them.
  • Language Construct Generators - Constructs modern language features including property hooks, asymmetric visibility, promoted parameters, and variadic arguments.

Historial de estrellas

Gráfico del historial de estrellas de nette/php-generatorGráfico del historial de estrellas de nette/php-generator

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Alternativas open-source a Php Generator

Proyectos open-source similares, clasificados según cuántas características comparten con Php Generator.
  • phpdocumentor/phpdocumentorAvatar de phpDocumentor

    phpDocumentor/phpDocumentor

    4,332Ver en GitHub↗

    phpDocumentor is a PHP API documentation generator and source code analyzer that transforms PHP files and DocBlocks into structured HTML API references. It functions as a static site generator and an automatic documentation tool designed to synchronize technical documentation with code changes. The project distinguishes itself by acting as a UML diagram generator, producing class and architectural graphs via PlantUML based on source analysis. It also supports technical manual authoring, rendering hand-written guides in Markdown and ReStructuredText alongside the automatically generated API re

    PHPdocblockdocblocksgraphviz
    Ver en GitHub↗4,332
  • sds/overcommitAvatar de sds

    sds/overcommit

    4,008Ver en GitHub↗

    Overcommit is a Git hook manager and pre-commit validation framework designed to automate the execution of scripts and checks during various Git events. It serves as a workflow automation tool that ensures code quality and project standards are met before changes are committed or pushed to a remote repository. The system distinguishes itself through a comprehensive YAML-based configuration that allows for detailed hook behavior control, including file execution filtering, conditional skipping, and the management of hook dependencies. It provides specialized roles such as a commit message vali

    Ruby
    Ver en GitHub↗4,008
  • nikic/php-parserAvatar de nikic

    nikic/PHP-Parser

    17,437Ver en GitHub↗

    PHP-Parser is a tool that converts PHP source code into an abstract syntax tree for static analysis and programmatic manipulation. It functions as a parser, a code generator, and a static analysis framework. The project enables the programmatic construction of abstract syntax tree nodes through a fluent interface and provides the ability to transform these trees back into formatted source code. It includes a serializer that exports abstract syntax trees to JSON format and reconstructs them from strings. The toolset covers several capability areas, including namespace resolution, constant exp

    PHP
    Ver en GitHub↗17,437
  • twigphp/twigAvatar de twigphp

    twigphp/Twig

    8,363Ver en GitHub↗

    Twig is a PHP template engine and compiled rendering library designed to separate business logic from presentation. It functions as a secure template language that generates HTML output by combining dynamic data with reusable layouts. The system emphasizes security through a focus on preventing cross-site scripting attacks via automatic output escaping and content sanitization. To ensure execution efficiency, it compiles templates into optimized PHP code and utilizes a caching mechanism to bypass parsing on subsequent requests. The engine provides comprehensive tools for template composition

    PHPphptemplate-enginetemplate-language
    Ver en GitHub↗8,363
Ver las 30 alternativas a Php Generator→

Preguntas frecuentes

¿Qué hace nette/php-generator?

Php-generator is a metaprogramming library for programmatically generating, inspecting, parsing, and manipulating PHP source code using expressive object-oriented structures. It allows developers to construct classes, interfaces, traits, enums, functions, closures, and complete files without writing raw strings.

¿Cuáles son las características principales de nette/php-generator?

Las características principales de nette/php-generator son: PHP Code Generators, Code Formatting, Code Printer Formatters, PHP Code Formatters, Namespace Organization, Metaprogramming Toolkits, Qualified Name Resolution, Syntax Trees.

¿Qué alternativas de código abierto existen para nette/php-generator?

Las alternativas de código abierto para nette/php-generator incluyen: phpdocumentor/phpdocumentor — phpDocumentor is a PHP API documentation generator and source code analyzer that transforms PHP files and DocBlocks… sds/overcommit — Overcommit is a Git hook manager and pre-commit validation framework designed to automate the execution of scripts and… twigphp/twig — Twig is a PHP template engine and compiled rendering library designed to separate business logic from presentation. It… nikic/php-parser — PHP-Parser is a tool that converts PHP source code into an abstract syntax tree for static analysis and programmatic… ambv/black — Black is a deterministic Python code formatter and style guide enforcer. It automatically reformats source code and… google/vim-codefmt — Vim-codefmt is a plugin for the Vim text editor that automates source code formatting by integrating external…

Colecciones destacadas con Php Generator

Colecciones seleccionadas manualmente donde aparece Php Generator.
  • Syntax parser