Download the PHP package stwarog/fuel-fixtures without Composer

On this page you can find all versions of the php package stwarog/fuel-fixtures. 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 fuel-fixtures

Fixtures

This package is a simple util for generating commonly used data fixtures.

Basic usage

Documentation will be fulfilled. Consider the following Fixture example for Currency model:

Each of factory provides few very important methods (like Laravel`s one):

MakeOne/Many - creates new instance.

CreateOne/Many - creates new instance and persists using provided persistence strategy.

Sample call using with:

Development

Standards

This package follows PSR-4 for autoloading and PSR-12 for styling.

Useful commands

The whole project is Unit tested and protected with strong static code analytics (phpstan).

Code is dockerized and simplified by makefile. Simply run:

If you can't run make file locally, then checkout the direct commands in composer.json.

Events

There is an abstraction of event dispatcher PSR-14 with NullObject implementation by default.

The intention is to add a capability to modify prepared model data in concrete situations, from the outside.

You can initialize concrete dispatcher by dependency and then access predefined events:

Name Class Description
model.before.prepared BeforePrepared Called right before any states (closures) has been applied.
model.after.prepared AfterPrepared Called right after all states (closures) has been applied and before persistence event.
model.before.persisted BeforePersisted Called right before prepared model is persisted in DB e.g. classes UowPersistence, FuelPersistence.
model.after.persisted AfterPersisted Called right after prepared model is persisted in DB.

Change Log

1.2.0 (2021-12-02) BREAKING CHANGE

1.1.0 (2021-12-02)


All versions of fuel-fixtures with dependencies

PHP Build Version
Package Version
Requires php Version 7.4.* || 8.*
stwarog/uow-fuel Version ^2.0.0
psr/event-dispatcher Version ^1.0
psr/container Version ^2.0 || ^1.1.0
fakerphp/faker Version ^1.18
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 stwarog/fuel-fixtures contains the following files

Loading the files please wait ....