Download the PHP package kunstmaan/fixtures-bundle without Composer

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

How to use the FixturesBundle

You will still use the default doctrine fixtures way but instead of extending from the Doctrine\Common\DataFixtures\AbstractFixture class, you will instead extend from the Kunstmaan\FixturesBundle\Loader\FixtureLoader class.

This is what your fixture class will look like:

Yaml you say?

Yes! Creating fixtures will has never been this easy. It's inspired by the Nelmio/Alice bundle. Why don't we use that bundle? That's because Nelmio/Alice is great for "simple" entities, but with our CMS alot of stuff happens during the creation of pages and pageparts. For this reason we wanted to start from scratch instead of hacking our way into another bundle.

So how do these yaml files look like?

Providers

Providers are classes that can be used to return data to a fixture. For example, if you use the method, the Spec provider will be called upon. So if you want to add some functionality to easily return the value of the page creator, you can add a Provider that contains the method

By default you can add these kind of methods to your fixture class as it's automatically added as a provider.

Furthermore you have the Spec provider, NodeTranslation provider and Faker providers. You can add your own by adding the function to your fixture class and returning an array containing your providers or you can tag your providers with .

Parsers

Parsers are used to translate the yaml data into actual data. So something like will be transformed to an object by different parsers. By default you have the Method and the Reference parser for property data and the Listed and Range parser for specs. If you want to add your own parser, you can simply to that by tagging them with or

Populators

Does exactly what the name says. Populators will populate the entities once all the yaml data is parsed. If you want to add your own populator, simply tag it with

Builders

With builders you can manipulate the behaviour during the creation of your entity. This can happen in three stages, preBuild, postBuild and postFlushBuild. During these stages you can manipulate your entity or add more entities like we do in the PageBuilder for instance. If you want to add your own builder, simply tag it with


All versions of fixtures-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
doctrine/doctrine-fixtures-bundle Version ^3.3
fakerphp/faker Version ^1.15
kunstmaan/admin-bundle Version ^7.0
kunstmaan/media-bundle Version ^7.0
kunstmaan/menu-bundle Version ^7.0
kunstmaan/node-bundle Version ^7.0
kunstmaan/pagepart-bundle Version ^7.0
kunstmaan/utilities-bundle Version ^7.0
symfony/string Version ^5.4|^6.4
symfony/mime Version ^5.4|^6.4
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 kunstmaan/fixtures-bundle contains the following files

Loading the files please wait ....