Download the PHP package salvatorecervone/backup-database without Composer

On this page you can find all versions of the php package salvatorecervone/backup-database. 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 backup-database

LARAVEL BACKUP-DATABASE

Laravel Backup Database

A powerful and flexible Laravel package to manage your database backups and restorations. The missing MSSQL (SQL Server) backup solution for Laravel — also supports MySQL, with the ability to save backups to local or remote shares via SMB.

Why this package? Popular backup packages like spatie/laravel-backup do not support Microsoft SQL Server. If you work with MSSQL in a Laravel environment, this is the package for you.

Key Features


Installation

You can install the package via composer:

Next, publish the configuration file:


Configuration

The configuration file is located at config/backup-database.php.

Route Protection (Middleware)

By default, the dashboard and all backup routes are protected by web and auth middleware. You can customize this:

Connections

You can configure multiple connections:

Binary Paths

If the required tools are not in your system PATH, you can specify their locations:

Email Notifications

Set an email address to receive alerts on backup failure. Ensure your Laravel SMTP settings are configured in your app's .env.

Logging

By default, the package logs all activities to storage/logs/backup-database-YYYY-MM-DD.log. You can toggle this feature:


Usage

Web Dashboard

Access the dashboard by navigating to: http://your-app.test/backups

From the dashboard you can:

Artisan Command

To automate backups (e.g., via Laravel's scheduler):

The command returns a non-zero exit code if any backup fails, making it suitable for monitoring tools.

Scheduling

Add the command to your routes/console.php (or Kernel.php for older Laravel versions):

Programmatic Usage

You can also use the service directly in your code:


Important Notes for MSSQL Users

How MSSQL Backup Works

The BACKUP DATABASE ... TO DISK command is executed by the SQL Server engine, not by PHP. This means:

MSSQL Compression

Enable native backup compression by adding 'compression' => true to your connection config. This uses SQL Server's WITH COMPRESSION option, which can reduce backup sizes by 50-80%.


System Requirements


Credits

License

MIT License. Please see the LICENSE file for more information.


All versions of backup-database with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.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 salvatorecervone/backup-database contains the following files

Loading the files please wait ...