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
·
doctrine avatar

doctrine/instantiator

0
View on GitHub↗
10,999 stars·60 forks·PHP·MIT·8 vueswww.doctrine-project.org/projects/instantiator.html↗

Instantiator

Instantiator is a PHP library designed to create class instances without invoking their constructors. It uses the PHP Reflection API to allocate objects in memory and initialize them in a predefined state, bypassing standard constructor logic.

The project functions as a data hydration tool and a testing helper. It enables the population of PHP objects from external data sources by mapping values directly to properties, regardless of whether those properties are public, protected, or private. This capability allows for the generation of objects in specific internal states for unit tests without managing complex constructor dependencies.

The library provides utilities for object instantiation, reflection-based property injection, and data hydration. It supports the creation of object graphs by recursively instantiating dependent classes to populate complex hierarchies based on declared type hints.

Features

  • No-Constructor Object Allocation - Allocates PHP objects in memory without calling any constructor, enabling initialization in a predefined state.
  • Constructor Bypassing - Creates class instances by bypassing the constructor to avoid side effects and enable data hydration.
  • PHP Data Hydration - Populates PHP objects with data from external sources by mapping values directly to properties.
  • Data-Driven State Population - Populates an object's internal state by mapping external data sources directly to class properties.
  • Data Hydration Tools - Fills PHP objects with data from external sources by mapping values directly to properties via reflection.
  • Constructor-less Instantiation - Instantiates classes without invoking the constructor or other internal class logic.
  • Private Property Access - Bypasses access restrictions via reflection to assign values to private and protected properties.
  • Reflection-Based Access - Uses runtime type inspection to access or modify private properties that are otherwise restricted.
  • Direct Property Injection - Sets the internal state of an object by assigning values directly to properties regardless of their visibility.
  • Reflection-Based Instantiators - Creates PHP class instances without invoking their constructors, using reflection for direct property injection.
  • Reflection-Based State Inspection - Uses language reflection capabilities to access and modify private or protected members of objects during runtime.
  • Reflection Utilities - Uses the Reflection API to create object instances and manipulate non-public properties.
  • Reflection-Based Property Injection - Sets object properties directly via reflection, bypassing visibility constraints to populate internal state from external data.
  • Custom Object Hydration - Populates PHP objects with data from external sources by mapping values directly to properties.
  • Data-Driven Object Initialization - Provides the ability to fill object state from external data sources by mapping values directly to properties without constructor involvement.
  • Constructor-Bypassing Instantiation - Creates PHP class instances without triggering constructor logic to initialize objects in a predefined state.
  • Visibility-Agnostic State Management - Treats private, protected, and public properties uniformly when populating internal object state.
  • Visibility-Agnostic State Population - Provides the ability to populate internal object state regardless of property visibility modifiers.
  • PHP Testing Frameworks - Generates PHP objects in specific internal states for unit tests without managing constructor dependencies.
  • Testing and Mocking - Helps generate objects in specific states for unit tests without constructor dependencies.
  • Object Persistence - Saves complex in-memory PHP data structures to persistent storage.
  • Persistence Layers - Builds the persistence layer by mapping database records to objects without triggering constructors.
  • Type-Hint-Driven Hydration - Matches input data to object properties by analyzing declared PHP type hints through reflection for accurate hydration.
  • Type-Hint-Driven Mapping - Analyzes declared PHP type hints through reflection to match input data to the correct class properties.
  • Type-Aware Value Mapping - Matches input data to object properties by analyzing the declared PHP type hints.
  • Constructor-Bypassing Injection - Initializes objects without manual constructor arguments for testing or hydration purposes.
  • Recursive Object Graph Hydration - Processes nested data structures by automatically instantiating dependent classes to populate complex object hierarchies.
  • Dynamic Object Instantiation - Creates class instances directly from hierarchical configuration values, including nested dependencies.
  • Recursive Type Resolution - Traverses nested object hierarchies to resolve and instantiate appropriate types based on reflection data.
  • Reflection-Based Unmarshallers - Maps unstructured data to typed structures using language reflection while bypassing constructor setup logic.
  • Dynamic Property Mapping - Uses reflection to map data keys to object properties at runtime without requiring decorators or inheritance.
  • Dependency Mocking - Simulates dependencies by generating objects in specific internal states for unit testing.
  • Unit Testing Utilities - Provides a utility for creating PHP objects in specific internal states for isolation testing.
  • Unit Testing - Provides a way to create objects in specific internal states for isolated unit tests.

Historique des stars

Graphique de l'historique des stars pour doctrine/instantiatorGraphique de l'historique des stars pour doctrine/instantiator

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 à Instantiator

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Instantiator.
  • doctrine/persistenceAvatar de doctrine

    doctrine/persistence

    4,049Voir sur GitHub↗

    This project is an object persistence library and data mapper abstraction layer. It provides a set of shared interfaces and base classes designed to decouple domain logic from specific object mapper implementations, separating the business domain layer from the underlying data access implementation. The library includes a database schema management and migration tool for defining, versioning, and deploying incremental updates to database structures across different environments. It also functions as a document database mapper, translating object states into structured document formats for sto

    PHPhacktoberfestpersistence
    Voir sur GitHub↗4,049
  • symfony/serializerAvatar de symfony

    symfony/serializer

    2,547Voir sur GitHub↗

    This library is a PHP-based serialization framework designed to convert complex object graphs into structured formats such as JSON, XML, YAML, and CSV, and to reconstruct those objects from serialized data. It functions as a data transformation tool that maps object properties to array structures, facilitating both application state persistence and the exchange of data between systems. The framework distinguishes itself through a two-stage pipeline that normalizes objects into intermediate structures before encoding them into specific formats. It supports advanced mapping requirements, includ

    PHPcomponentphpsymfony
    Voir sur GitHub↗2,547
  • nelmio/aliceAvatar de nelmio

    nelmio/alice

    2,539Voir sur GitHub↗

    Alice is a PHP test data generator and fixture library used to automate the creation of large sets of fake objects and entities. It functions as an object hydrator and random data provider, allowing users to define the structure and attributes of dummy test data in markup or arrays to simulate specific application states. The library distinguishes itself through a template-based system that supports fixture inheritance to reduce data duplication. It utilizes a flexible instantiation model that allows for custom factory integration, method invocation, and property hydration via reflection or c

    PHPaliceexpression-languagefaker
    Voir sur GitHub↗2,539
  • springside/springside4Avatar de springside

    springside/springside4

    5,652Voir sur GitHub↗

    SpringSide 4 is an enterprise Java reference architecture and utility library built on the Spring Framework. It provides a pragmatic, best-practice application stack for building RESTful web services, web applications, and data access layers, along with a curated collection of high-performance utility classes for common operations like text, date, collection, reflection, concurrency, and I/O handling. The project distinguishes itself by combining a complete reference application scaffold with production-oriented infrastructure. It includes a JPA-based data access layer that automatically tran

    Java
    Voir sur GitHub↗5,652
Voir les 30 alternatives à Instantiator→

Questions fréquentes

Que fait doctrine/instantiator ?

Instantiator is a PHP library designed to create class instances without invoking their constructors. It uses the PHP Reflection API to allocate objects in memory and initialize them in a predefined state, bypassing standard constructor logic.

Quelles sont les fonctionnalités principales de doctrine/instantiator ?

Les fonctionnalités principales de doctrine/instantiator sont : No-Constructor Object Allocation, Constructor Bypassing, PHP Data Hydration, Data-Driven State Population, Data Hydration Tools, Constructor-less Instantiation, Private Property Access, Reflection-Based Access.

Quelles sont les alternatives open-source à doctrine/instantiator ?

Les alternatives open-source à doctrine/instantiator incluent : doctrine/persistence — This project is an object persistence library and data mapper abstraction layer. It provides a set of shared… symfony/serializer — This library is a PHP-based serialization framework designed to convert complex object graphs into structured formats… nelmio/alice — Alice is a PHP test data generator and fixture library used to automate the creation of large sets of fake objects and… springside/springside4 — SpringSide 4 is an enterprise Java reference architecture and utility library built on the Spring Framework. It… codeception/codeception — Codeception is a full-stack testing framework for PHP applications that provides a unified interface for unit,… sebastianbergmann/phpunit — PHPUnit is a unit testing framework and automated testing tool for the PHP ecosystem. It provides a comprehensive…