Download the PHP package talyssonoc/phactory-laravel without Composer

On this page you can find all versions of the php package talyssonoc/phactory-laravel. 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 phactory-laravel

Phactory Laravel

With Phactory Laravel you'll be able to use Phactory with Laravel 5.

If you don't know what Phactory is:

Phactory is an alternative to using database fixtures in your PHP unit tests. Instead of maintaining a separate XML file of data, you define a blueprint for each table and then create as many different objects as you need in your PHP code.

Phactory Laravel will access the database based on your Laravel config, simple as that.

Be aware that you must specify a testing database, otherwise Phactory Laravel will insert data in your development database.

Installation

First you need to add this to your composer.json requires:

Then set the minimum-stability of your dependencies to dev, adding this to your composer.json:

Then run:

After that you should add this to your service providers (at config/app.php):

And that to your aliases (at the same file):

After that, Phactory facade will be available for you to use.

Creating a factory

Yours factories must be inside the folder app/Factories, and you should use the API provided by Phactory. The content of each file must be something like this:

Laravel 5.1

Note that is is not entirely necessary with Laravel 5.1, since it has model factories out-of-box, but you can still use Phactory Laravel with Laravel 5.1 if you prefer.

To do


All versions of phactory-laravel with dependencies

PHP Build Version
Package Version
Requires chriskite/phactory Version ^0.4.3
illuminate/support Version 5.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 talyssonoc/phactory-laravel contains the following files

Loading the files please wait ....