Download the PHP package davidvandertuijn/laravel-after-seeders without Composer

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

Laravel After Seeders

Total Downloads Latest Stable Version License

Laravel After Seeders

This library adds seeders with versioning support for Laravel, suitable for a production environment. The seeders are stored in the database/after_seeders directory using JSON format. Progress is tracked in the after_seeders table. so that the seeder is only run once.

Install

Run migration

Publish config

Usage

Create a new seeder and fill it manually.

With the command below you create an empty after seeder, good if you are already familiar with the JSON structure, and you want to add the data manually.

Created Seeder: /database/after_seeders/YYYY_MM_DD_XXXXXX_my_table.json:

In Navicat for MySQL, the same structure is used when exporting to JSON file (.json).

Create a new seeder and fill it automaticly.

With the command below you create a fully completed seeder based on existing records in a table.

Which columns are requested depends on the specified table. Columns that are not answered are not included in the seeder. At range you specify which record IDs should be included in de seeder.

Created Seeder: /database/after_seeders/YYYY_MM_DD_XXXXXX_my_table.json:

Running Seeders

The pending after seeders are executed with the command below:

During execution it is checked whether the table and / or columns actually exist, otherwise the seeder is skipped.

Created At

If the table has a created_at column, but this is missing from the seeder, the current time is filled in.

Update Or Insert

If the id column exists in the seeder, the updateOrInsert method is used, otherwise the insert method.


All versions of laravel-after-seeders with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
ext-json Version *
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 davidvandertuijn/laravel-after-seeders contains the following files

Loading the files please wait ....