Download the PHP package joeyrush/better-migrate-seed without Composer

On this page you can find all versions of the php package joeyrush/better-migrate-seed. 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 better-migrate-seed

Better Migrate Seed

A wrapper around the artisan migrate:fresh --seed command in Laravel with some added quality of life functionality to assist during development.

Overview

This package allows you to create a snapshot of your database by generating a series of seeders (1 per table, plus a base seeder which calls all of the seeders) which sit within a named sub-directory in your database/seeds directory. You can then use these grouped seeders to populate your database from scratch after a fresh migrate - all within the same command.

You're free to customize the generated seeders, but be aware that if you generate another snapshot with an identical name - the new ones will overwrite the old ones.

Available Commands

There are 4 commands available with this package:

A step in replacement for artisan migrate:fresh --seed with additional functionality to generate seeders and pick which seeders to use after re-migrating. You can pass the --refresh flag to use migrate:refresh instead of migrate:fresh behind the scenes:

The migrate command also comes with a bonus --include-empty-tables flag which will produce a seed class for every database table regardless of whether it has any rows or not.

To generate the seeders without having to re-migrate your DB, you can run the following command:

To delete a set of seeders generated with any of the previous two commands (this will prompt before deletion):

To rename a set of generated seeders (renames folder/filename/classname and references!)

Notes

The name you supply to the seed generator will have spaces stripped out and be pascal-cased before being used as the sub-folder name and seeder class prefix. If you don't provide a name, it will generate one based on the current UNIX timestamp.

Requirements

Getting Started

You can install the package via composer:

Assuming you're on Laravel 5.5+ with auto-package discovery, you should be able to run the commands straight away. If you're rocking an earlier version, you'll have to add the service provider to the "providers" key in config/app.php

Tests

Coming soon

Credits

This package heavily relies on the use of iSeed by OrangeHill


All versions of better-migrate-seed with dependencies

PHP Build Version
Package Version
Requires orangehill/iseed Version ^2.6
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 joeyrush/better-migrate-seed contains the following files

Loading the files please wait ....