fakerino/laravel-fakerino

Fake data generator Laravel package

Installs: 10 405

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 1

Open Issues: 0

Type:symfony-bundle

0.0.2 2015-05-26 14:03 UTC

This package is not auto-updated.

Last update: 2024-10-26 17:50:51 UTC


README

#Fakerino Laravel Package

Latest Stable Version Travis Ci License

The Fakerino Laravel provides integration of Fakerino into the Laravel framework.

More information in the official documentation.

Installation

Add the following dependencies to your projects composer.json file:

    "require": {
        "fakerino/laravel-fakerino": "0.0.*",
    }

Install the ODS data sample in two ways:

  • Add a script to your composer.json:
  "scripts": {
        "post-install-cmd": "vendor/fakerino/fakerino/build/ods vendor/fakerino/fakerino/data",
        "post-update-cmd": "vendor/fakerino/fakerino/build/ods vendor/fakerino/fakerino/data"
    }

In this way the data will be always updated automatically via composer.

  • Run maually the command (after the fakerino composer installation):
    $ vendor/fakerino/fakerino/build/ods vendor/fakerino/fakerino/data

Initializing the package

To initialize the bundle, you'll need to add it in your config/app.php.

	'providers' => [
        'Fakerino\Package\FakerinoProvider',

Usage in controller

<?php namespace App\Http\Controllers;

use Fakerino\Fakerino;

class FakeController extends Controller
{
	public function index()
	{
        return $this->fakerino->fake('surname');
	}
}