Download the PHP package sleeping-owl/seeder without Composer

On this page you can find all versions of the php package sleeping-owl/seeder. 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 seeder

Package to create simple seeders with ability to lock/unlock tables

Latest Stable Version License

Overview

This package will allow you to write simple seeders:

And adds 2 new commands:

  1. php artisan seeder:lock <table> --all — lock table from any changes (table data will be saved and restored after reseeding).

  2. php artisan seeder:unlock <table> --all — unlock table for random seeding.

Installation

  1. Require this packages in your composer.json and run composer update:

    "fzaninotto/faker": "1.5.*@dev",
    "sleeping-owl/seeder": "1.*"
  2. After composer update, add service providers to the config/app.php

    'SleepingOwl\Seeder\SeederServiceProvider',
  3. That's all.

Seeding

  1. Import classes:

  2. Add seeding rule for table or model:

  3. Configure seeding rule (you can configure it globally, see details in "Global Configuration"):

  4. Configure seeding schema (see details in "Schema Configuration"):

  5. Now you can use default command php artisan db:seed and new seeder:lock/seeder:unlock commands.

Global Configuration

You can configure seeding settings globally:

This configuration will be used as default for every seeder. Seeder configuration will override global configuration:

Schema Configuration

Add Field to the Schema

You must provide schema for seeding. There is 3 ways to add field to the schema:

  1. $schema->field('my_field')
  2. $schema->my_field
  3. $schema->my_field()

All these 3 ways will add field my_field to the schema.

Provide Rules for Seeding the Field

You must use fzaninotto/faker package rules:

Lock/Unlock Table Seeding

Locking

You can lock table seeding. This command will save table state and restores it with every seeding call.

You can lock one table:

Or all tables:

Unlocking

This command will delete table saved state and restores default behaviour.

or

Support Library

You can donate via PayPal or in BTC: 13k36pym383rEmsBSLyWfT3TxCQMN2Lekd

Copyright and License

Package was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.


All versions of seeder with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version >=4.1
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 sleeping-owl/seeder contains the following files

Collapse All

src

   SleepingOwl

     Seeder
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml