Download the PHP package lukam/smart-seeder without Composer

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

Smart seeder

About

The goal of the package is to make handling of the seeder files easier by adding the commands to create, run, check status and revert the ran seed files.

This is achieved by reusing the existing Migration package and adapting it to work with seed files.

Requirements

The package works with Laravel version 5.6+.

Compatibility with existing seed files

The existing seed files are not yet compatible with this package.

Installation

Install the package using Composer:

Configuration

By default the seeder uses seeds table to keep track of files.

To change the table, open the config\database.php file and add the seeds entry with the table name.

Commands

Install

php artisan seed:install

This command will be executed the first time you use the run command.

This will create the seeder repository and database table. The table keeps track of which seed files have already been run.

Status

php artisan seed:status

Show status of each seed file.

Make

php artisan seed:make filename

Creates a new database seeder file inside the database\seeds folder.

To ensure that the seed files are run in the correct order a timestamp is prefixed to the filename.

The seed file now also contains the revert method which enables you to delete data from a table when rolling back the seeds. For more information see the revert method section.

Run

php artisan seed:run

Run the database seeders.

Rollback

php artisan seed:rollback

Rollback last run seeder files.

Reset

php artisan seed:reset

Rollback all seeder files.

Refresh

php artisan seed:refresh

Rollback and re-run all seeder files.

Revert method

In some cases you may want to delete or update the table data when a seed is rolled back. This can be done using the revert method. The method should contain the query that will be executed when the seed file is rolled back.

Testing

License

The MIT License (MIT). See the license file for more information.


All versions of smart-seeder with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
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 lukam/smart-seeder contains the following files

Loading the files please wait ....