Download the PHP package nelmio/alice without Composer

On this page you can find all versions of the php package nelmio/alice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package alice

Alice - Expressive fixtures generator

Package version Build Status Slack

Relying on FakerPHP/Faker, Alice allows you to create a ton of fixtures/fake data for use while developing or testing your project. It gives you a few essential tools to make it very easy to generate complex data with constraints in a readable and easy to edit way, so that everyone on your team can tweak the fixtures if needed.

Warning: this doc is for alice 3.0. If you want to check the documentation for 2.x, follow this link.

2.x is in maintenance mode: PRs are accepted, but no active development is done on it by the maintainers any longer.

Table of Contents

  1. Installation
  2. Example
  3. Getting Started
    1. Basic Usage
    2. Framework integration
      1. Symfony
  4. Complete Reference
    1. Creating Fixtures
      1. YAML
      2. PHP
      3. JSON
    2. Fixture Ranges
    3. Fixture Lists
    4. Fixture Reference
    5. Calling Methods
      1. Method arguments with flags
      2. Method arguments with parameters
    6. Specifying Constructor Arguments
    7. Using a factory / a named constructor
    8. Optional Data
    9. Handling Unique Constraints
  5. Handling Relations
    1. References
    2. Multiple References
    3. Self reference
    4. Passing references to providers
  6. Keep Your Fixtures Dry
    1. Fixture Inheritance
    2. Including files
    3. Variables
    4. Parameters
      1. Static parameters
      2. Dynamic parameters
      3. Composite parameters
      4. Usage with functions (constructor included)
      5. Inject external parameters
  7. Customize Data Generation
    1. Faker Data
      1. Localized Fake Data
      2. Random data
      3. Default Providers
        1. Identity
        2. Current
        3. Cast
    2. Custom Faker Data Providers
  8. Advanced Guide
    1. Performance
    2. Expression Language (DSL)
      1. Parameters
      2. Functions
      3. Identity
      4. Arrays
      5. Optional
      6. References
      7. Property Reference
    3. Extending Alice
      1. Custom Flag
      2. Custom Instantiation
      3. Custom Accessor
  9. Third-party libraries
    1. Symfony
    2. Nette
    3. Zend Framework 2
    4. Framework Agnostic
  10. Contribute
    1. Differences between 2.x and 3.x
    2. Architecture
      1. FixtureBuilder
      2. Generator
    3. Expression Language
    4. Contributing
      1. Testing
      2. Profiling
  11. Backward Compatibility Promise (BCP)
  12. Upgrade
    1. Breaking changes between Alice 2.x and 3.0

Installation

This is installable via Composer as nelmio/alice:

composer require --dev nelmio/alice

Example

Here is a complete example of entity declaration:

You can then load them easily with:

Or load an array right away:

For more information, refer to the documentation.

Third-party libraries

Framework Agnostic

Symfony

Nette

WordPress

Zend Framework 2:

Contribute

Check the contribution guide.

Backward Compatibility Promise (BCP)

The policy is for the major part following the same as Symfony's one with a few changes or highlights:

Upgrade

Check the upgrade guide.


All versions of alice with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
fakerphp/faker Version ^1.10
myclabs/deep-copy Version ^1.10
sebastian/comparator Version ^3.0 || ^4.0 || ^5.0 || ^6.0
symfony/property-access Version ^6.4 || ^7.0
symfony/yaml Version ^6.0 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nelmio/alice contains the following files

Loading the files please wait ....