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

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetServeur MCPÀ proposNotre méthodologiePresse
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
nette avatar

nette/php-generator

0
View on GitHub↗
2,253 stars·147 forks·PHP·8 vuesdoc.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.

Historique des stars

Graphique de l'historique des stars pour nette/php-generatorGraphique de l'historique des stars pour nette/php-generator

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Php Generator

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Php Generator.
  • phpdocumentor/phpdocumentorAvatar de phpDocumentor

    phpDocumentor/phpDocumentor

    4,332Voir sur 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
    Voir sur GitHub↗4,332
  • sds/overcommitAvatar de sds

    sds/overcommit

    4,008Voir sur 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
    Voir sur GitHub↗4,008
  • nikic/php-parserAvatar de nikic

    nikic/PHP-Parser

    17,437Voir sur 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
    Voir sur GitHub↗17,437
  • twigphp/twigAvatar de twigphp

    twigphp/Twig

    8,363Voir sur 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
    Voir sur GitHub↗8,363
Voir les 30 alternatives à Php Generator→

Questions fréquentes

Que fait 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.

Quelles sont les fonctionnalités principales de nette/php-generator ?

Les fonctionnalités principales de nette/php-generator sont : PHP Code Generators, Code Formatting, Code Printer Formatters, PHP Code Formatters, Namespace Organization, Metaprogramming Toolkits, Qualified Name Resolution, Syntax Trees.

Quelles sont les alternatives open-source à nette/php-generator ?

Les alternatives open-source à nette/php-generator incluent : 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…

Collections incluant Php Generator

Sélections manuelles où Php Generator apparaît.
  • Syntax parser