Download the PHP package laravel-toolkit/laravel-db-seeder-export without Composer

On this page you can find all versions of the php package laravel-toolkit/laravel-db-seeder-export. 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-db-seeder-export

Laravel DB Seeder Export

A Laravel package to export database tables into Laravel Seeder classes with support for Telegram notifications and email alerts.

Features

Installation

You can install the package via composer:

Publishing Configuration

This will publish the configuration file to config/db-seeder-export.php.

To publish the email templates:

Usage

Basic Usage

Export all tables:

Export specific tables:

Options

Option Description
--all Export all tables in the database
--disable-foreign-keys Temporarily disable foreign key constraints during seeding
--exclude=table1,table2 Tables to exclude from export
--exclude-pattern=pattern1,pattern2 Exclude tables matching these patterns (e.g., "telescope*,log*")
--include-migrations Include the migrations table which is excluded by default
--schema-aware Create schema-aware seeders that can adapt to column changes
--telegram Send the backup to Telegram
--delete-after-send Delete the backup files after sending to Telegram
--output-json Format output as JSON (useful for API calls)
--notify-email=email1,email2 Send email notification to these addresses
--skip-empty-tables Skip tables that have no data
--storage-disk=diskname Specify storage disk to save backup (default: local)
--max-execution-time=seconds Set maximum execution time in seconds

Configuration

You can configure the package by editing the config/db-seeder-export.php file or by setting environment variables in your .env file:

Using Created Seeders

After running the export command, the seeders will be created in a timestamped directory inside the database/seeders folder. The command will output instructions for using the seeders.

To run the master seeder (which will run all individual seeders in the correct order):

Telegram Integration

To use the Telegram integration, you need to:

  1. Create a Telegram bot using BotFather
  2. Get your chat ID (you can use the userinfobot)
  3. Set the environment variables:
    • DB_SEEDER_TELEGRAM_ENABLED=true
    • DB_SEEDER_TELEGRAM_BOT_TOKEN=your_token
    • DB_SEEDER_TELEGRAM_CHAT_ID=your_chat_id

Email Notifications

To send email notifications after backup completion:

  1. Ensure your Laravel mail configuration is set up correctly
  2. Set the recipient email addresses in the config file or using the --notify-email option

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-db-seeder-export with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0
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 laravel-toolkit/laravel-db-seeder-export contains the following files

Loading the files please wait ...