Download the PHP package dragon-code/laravel-data-dumper without Composer

On this page you can find all versions of the php package dragon-code/laravel-data-dumper. 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-data-dumper

Database Data Dumper for Laravel

the dragon code database data dumper

Stable Version Total Downloads Github Workflow Status

Introduction

The squashing migrations in Laravel does not export data from tables?

There is a solution!

How it works?

After installing and configuring the package, you simply run the console command php artisan schema:dump (with or without flags - it's up to you), and the final SQL dump file will contain the data structure including the contents of the tables you specified at the configuration stage.

This will allow you to painlessly execute the php artisan schema:dump --prune command, which will remove unnecessary migration files.

Requirements

Installation

To get the latest version of Database Data Dumper, simply require the project using Composer:

Or manually update require block of composer.json and run composer update.

Configuration

Since Laravel mechanism for publishing configuration files does not allow them to be merged on the fly, a new array element must be added to the config/database.php file:

After that, add to the array the names of the tables for which you want to export data.

That's it. Now you can run the php artisan schema:dump console command and enjoy the result.

[!NOTE]

If you need to delete files from a folder to which a table is related (for example, the migrations table), you can specify an array of two values in the parameter, where the first element should be the name of the column containing the file name, and the second element should be absolute or relative folder path.

[!WARNING]

Laravel 11.35.2 and below does not know how to report the presence of the --prune parameter when calling the artisan schema:dump console command, so specifying paths to folders will always delete files from them.

Starting with Laravel version 11.36, files will be deleted only when calling the console command with the --prune parameter.

License

This package is licensed under the MIT License.


All versions of laravel-data-dumper with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
composer-runtime-api Version ^2.2
dragon-code/support Version ^6.13
illuminate/config Version ^10.0 || ^11.0
illuminate/database Version ^10.0 || ^11.0
illuminate/support Version ^10.0 || ^11.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 dragon-code/laravel-data-dumper contains the following files

Loading the files please wait ....