PHP Package: zenstruck/foundry

Zenstruck Foundry is a PHP library for creating test data objects easily and efficiently. It helps streamline the process of setting up data for testing purposes.

Current Version: 2.6.0
Last Updated: 2025-06-05
PHP Requirement: >=8.1
Dependencies:
zenstruck/foundry-dependency1
zenstruck/foundry-dependency2
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Zenstruck Foundry is a powerful PHP library that simplifies the creation of test data objects. It offers a clean and efficient way to generate and manage test data, improving the overall testing process. With Foundry, developers can easily set up realistic data scenarios for comprehensive testing.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.6.0

Download Download v2.6.0

Previous Versions

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.6.0/loader.php';
require_once 'libs/zenstruck/foundry-dependency1/{lib_version}/loader.php';
require_once 'libs/zenstruck/foundry-dependency2/{lib_version}/loader.php';

use Zenstruck\Foundry\Factory;
use Zenstruck\Foundry\Repository;

$obj = new Factory();
echo '✅ Test OK: ' . get_class($obj);
?>

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

Community Discussion

Ask questions, share tips, or report issues below.