A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.
Foundry is a model factory library for Symfony and Doctrine applications that simplifies creating development and test fixtures. It provides an expressive, auto-completable API to generate on-demand test data with randomized field values, reducing the boilerplate of manual fixture creation. It solves the problem of tedious, repetitive fixture writing by offering a fluent, type-safe system that integrates with DoctrineFixturesBundle and testing suites.
PHP developers building Symfony applications with Doctrine ORM or MongoDB ODM who need to create fixtures for database seeding or testing. It's particularly useful for teams practicing test-driven development (TDD) or those managing complex data scenarios in tests.
Developers choose Foundry because it turns fixture creation from a chore into an enjoyable task with its expressive, auto-completable API and intelligent defaults. Its unique selling point is combining Laravel-style factory elegance with Symfony/Doctrine integration, supporting both SQL and NoSQL databases seamlessly.
A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.
The fluent, chainable syntax with IDE auto-completion, as shown in the README code example, makes fixture writing intuitive and reduces errors.
Generates fixtures only when needed and fills unspecified fields with sensible random data, reducing boilerplate in tests and database seeding.
Works seamlessly with both Doctrine ORM for SQL databases and MongoDB ODM, allowing use in mixed-database Symfony applications.
Enables defining states like 'published' to create objects in specific configurations, enhancing flexibility for complex test scenarios.
The test suite requires Docker and detailed environment configurations, as per the README, which can be a barrier for quick local development.
Tightly integrated with Symfony and Doctrine, making it unsuitable for projects using other frameworks or ORMs without significant adaptation.
The presence of an upgrade guide to v2 indicates significant breaking changes that could disrupt existing codebases during updates.
The PHP Unit Testing framework.
Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).
Highly opinionated mocking framework for PHP 5.3+
Full-stack testing PHP framework
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.