PHP Package: nelmio/alice

Nelmio Alice is a PHP library for generating fixtures with a simple API for use in test environments.

Current Version: 3.14.2
Last Updated: 2025-02-26
PHP Requirement: ^8.1
Dependencies: None

Package Description

Nelmio Alice is a powerful fixture generation tool for PHP. It allows you to define a set of objects, and then generate and load them into your tests. With Alice, you can generate a massive amount of fixtures at once, load them, and then use them. It's inspired by the JavaScript library Faker.js and Perl's Data::Faker.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.14.2

Download Download v3.14.2

Code Integration Example

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

<?php
// Example from PHPlibraries.com

require_once 'libs/nelmio/alice/3.14.2/loader.php';
use Nelmio\Alice\Loader\NativeLoader;
use Nelmio\Alice\Persister\Doctrine;

$obj = new NativeLoader();
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.