Download the PHP package tomshaw/laravel-database-export without Composer

On this page you can find all versions of the php package tomshaw/laravel-database-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-database-export

Laravel Database Export 💾

Latest Version on Packagist Total Downloads Tests License

A Laravel console command that exports your database to a compressed, optionally AES-256 encrypted zip archive on any Laravel filesystem disk. Supports SQLite, MySQL, MariaDB, PostgreSQL and SQL Server.

Features

Requirements

Installation

You can install the package via composer:

Optionally publish the configuration file:

Usage

Export the default database connection:

Export a specific connection:

Encrypt the archive with a custom password (defaults to the database password when omitted):

Archives are stored as exports/{connection}/{filename}-{timestamp}.zip on the configured disk.

Scheduling

The command implements Isolatable, so overlapping scheduled runs are prevented automatically:

Configuration

Key Env variable Default Description
database-export.disk BACKUP_DISK local Filesystem disk where archives are stored.
database-export.filename BACKUP_FILENAME export Base filename; a timestamp is appended.
database-export.directory BACKUP_DIRECTORY exports Directory on the disk; a per-connection subdirectory is added.
database-export.timeout BACKUP_TIMEOUT 3600 Maximum seconds the dump process may run.
database-export.compression_level BACKUP_COMPRESSION_LEVEL 6 Deflate compression level (0–9).
database-export.options sensible defaults Extra CLI options passed to the dump tool, per driver.

For example, the default MySQL options produce consistent, complete dumps without table locks:

Notes

Testing

Run static analysis and formatting:

Support

If you have any issues or questions, please open an issue on the GitHub repository.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). See License File for more information.


All versions of laravel-database-export with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
laravel/framework Version ^13.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 tomshaw/laravel-database-export contains the following files

Loading the files please wait ...