Download the PHP package putuwahyu29/backup-bridge without Composer

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

Backup Bridge

A secure bridge, visual control dashboard, and multi-database backup agent for Laravel applications.

Latest Version on Packagist PHP Version Laravel Version


English | Bahasa Indonesia


📌 Overview

Conventional backup solutions (such as spatie/laravel-backup) excel at generating archive files locally on a single server. However, in enterprise environments managing dozens or hundreds of distributed applications, teams often need a centralized backup workflow that:

  1. Pulls backups remotely without exposing raw SSH access or public database ports.
  2. Verifies file integrity using streaming SHA-256 checksums.
  3. Transfers archives to centralized NAS storage (QNAP / Synology / S3) or WebDAV (Nextcloud / ownCloud) via autonomous worker services.
  4. Receives round-trip audit confirmation callbacks from external workers.
  5. Provides a ready-to-use Visual Web Dashboard in the browser with zero complex admin panel dependencies.

Backup Bridge bridges the gap between individual Laravel apps and centralized backup orchestrators.


✨ Features


🏗️ Architecture


⚠️ Important: How Backups are Triggered

[!IMPORTANT] Does installing this package immediately create a backup?

Not immediately. While this package is highly Plug and Play in terms of setup and auto-configuration, it operates as a Bridge / Agent rather than an instant background cron running upon composer require.

Backups are executed only when triggered via one of the 4 execution methods below.


🚀 Step-by-Step Setup Guide

1. Install via Composer

2. Run Automatic Installation (One-Command Setup)

This command automatically publishes the configuration and generates a cryptographically secure API key directly into your .env file:

3. Secure Web Dashboard in Production

By default, the dashboard uses the ['web'] middleware group. To restrict access to authenticated administrators in production, update config/app-backup.php:

4. Choose Your Backup Execution Method

Select the workflow that matches your infrastructure architecture:


🔄 4 Ways to Trigger / Run Backups

Method 1: Centralized Automation via Remote Worker (Recommended for Multi-App / NAS)

Use the companion microservice @putuwahyu29/backup-puller-worker. The worker handles scheduled pulls, verification, and uploads without placing ongoing cron load on your web server:

  1. Copy the generated APP_BACKUP_API_KEY from your application's .env.
  2. Add your application to the worker's apps.json:

The worker will automatically trigger fresh backups via API, verify the streaming SHA-256 hash, compress them into ZIP, and upload them to your QNAP NAS or Nextcloud/WebDAV.


Method 2: Local Scheduled Automation via Laravel Scheduler (CRON)

If you do not use an external worker and want the Laravel application to regularly back up locally on its own server:

For Laravel 11 / 12 / 13 (routes/console.php):

For Laravel 10 (app/Console/Kernel.php):

(Ensure your server's system cron has ` php /path-to-app/artisan schedule:run >> /dev/null 2>&1` configured)*.


Method 3: Manual via Web Dashboard

  1. Open your browser and navigate to: http://your-app-domain.test/admin/backups
  2. Click "Generate Database Backup" or "Generate Attachments Backup".
  3. The backup file will be created on the fly, ready for instant download or SHA-256 inspection.

Method 4: Manual via Artisan CLI

Execute directly from your terminal:


🗄️ Server Requirements & Multi-Database Config

The default native driver reads your active database connection (config('database.default')):

A. MySQL / MariaDB

B. PostgreSQL

C. SQLite

D. Public Attachments Archive


🖥️ Usage in Laravel Inertia.js (Vue/React)

The dashboard controller provides a JSON API response when requested with Accept: application/json or query ?json=1:


🔌 API Endpoints for Remote Puller Worker

Protected by the X-API-Key HTTP header:

Method Endpoint Description
GET /api/backups/latest/metadata?type={database\|attachments} Retrieves metadata (filename, size, sha256 checksum, date). Supports &fresh=1.
GET /api/backups/latest/download?filename={filename}&type={type} Streams the binary backup archive securely.
POST /api/service-reports Receives sync reports from workers (status, uploaded size, errors).
GET /api/service-reports/latest?service={service}&status={status} Retrieves the latest audit report.

🛡️ Security

If you discover any security vulnerabilities, please contact the maintainers directly and avoid opening public issues before a patch is published.


📄 License

This package is open-source software licensed under the MIT License.
Developed by Putu Wahyu & Contributors.


All versions of backup-bridge with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2 || ^8.3 || ^8.4
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/routing Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/console Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/filesystem Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/view Version ^10.0 || ^11.0 || ^12.0 || ^13.0
symfony/process Version ^6.0 || ^7.0 || ^8.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 putuwahyu29/backup-bridge contains the following files

Loading the files please wait ...