PHP Package: zenstruck/foundry

Zenstruck Foundry is a powerful PHP library for creating test data with ease and flexibility. It simplifies the process of generating test entities for your applications.

Current Version: 2.3.7
Last Updated: 2025-03-08
PHP Requirement: >=7.1
Dependencies: phpunit/phpunit, doctrine/orm
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Zenstruck Foundry provides a comprehensive set of tools to streamline the creation of test data in PHP projects. With its intuitive API, you can quickly generate complex data structures for testing scenarios. It offers seamless integration with popular testing frameworks and ensures data consistency across test suites.

🔗 View on GitHub

Download Latest Version: 2.3.7

Download Download v2.3.7

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/zenstruck/foundry/2.3.7/autoload.php';

use Zenstruck\Foundry\Factory;
use Zenstruck\Foundry\EntityFactory;
use Zenstruck\Foundry\Test\FactoryTestCase;
use PHPUnit\Framework\TestCase;
use Doctrine\ORM\EntityManager;


$obj = new Zenstruck\Foundry\Factory();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.