PHPackages                             calmbackup/backup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. calmbackup/backup

ActiveLibrary[Database &amp; ORM](/categories/database)

calmbackup/backup
=================

Zero-knowledge encrypted backups for PHP applications

v1.0.1(1mo ago)055↑2845.5%MITPHPPHP ^8.2

Since Mar 20Pushed 1mo agoCompare

[ Source](https://github.com/calmbackup/cb-package)[ Packagist](https://packagist.org/packages/calmbackup/backup)[ Docs](https://calmbackup.com)[ RSS](/packages/calmbackup-backup/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

CalmBackup
==========

[](#calmbackup)

Zero-knowledge encrypted backups for PHP applications. Your data is encrypted on your server before it leaves — we store only an opaque blob we can't read.

Works with **any PHP application**. Laravel gets artisan commands as a bonus.

Install
-------

[](#install)

```
composer require calmbackup/backup
```

Setup
-----

[](#setup)

### Any PHP app

[](#any-php-app)

```
vendor/bin/calmbackup init
```

### Laravel

[](#laravel)

```
php artisan backup:install
```

Both wizards will:

- Validate your API key
- Generate your encryption key locally (never sent to us)
- Configure your database connection
- Save a recovery key file

Usage
-----

[](#usage)

### Run a backup

[](#run-a-backup)

```
# Laravel
php artisan backup:run

# Any PHP app
vendor/bin/calmbackup run
```

### Schedule daily backups

[](#schedule-daily-backups)

**Laravel:** Automatic — the service provider registers a daily backup at 02:00.

**Any PHP app:** Add to crontab:

```
0 2 * * * cd /path/to/project && vendor/bin/calmbackup run >> /dev/null 2>&1

```

### List backups

[](#list-backups)

```
php artisan backup:list          # Laravel
vendor/bin/calmbackup list-backups   # Any PHP
```

### Restore

[](#restore)

```
php artisan backup:restore       # Laravel
vendor/bin/calmbackup restore    # Any PHP
```

### Status check

[](#status-check)

```
php artisan backup:status        # Laravel
vendor/bin/calmbackup status     # Any PHP
```

Supported databases
-------------------

[](#supported-databases)

- MySQL
- PostgreSQL
- SQLite

How it works
------------

[](#how-it-works)

1. Dumps your database using native tools (`mysqldump`, `pg_dump`, `sqlite3`)
2. Archives the dump + optional directories into `.tar.gz`
3. Encrypts with AES-256-GCM using your key
4. Uploads the encrypted blob via presigned URL (direct to storage, never through our servers)
5. Confirms the upload with the CalmBackup API

We never see your encryption key. We can't decrypt your backups. That's the point.

Requirements
------------

[](#requirements)

- PHP 8.2+
- ext-openssl, ext-curl, ext-phar
- Database CLI tools in PATH (`mysqldump`/`mysql`, `pg_dump`/`pg_restore`, or `sqlite3`)

License
-------

[](#license)

MIT

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

50d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ce5eee0462cc2754b1acdc71ff123aa6c5032c7b2b39302fdc3f21c5a3da5f2?d=identicon)[calmbackup](/maintainers/calmbackup)

---

Top Contributors

[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (4 commits)")

---

Tags

phplaravelencryptiondatabasebackupmysqlsqlitepostgresqlzero-knowledge

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/calmbackup-backup/health.svg)

```
[![Health](https://phpackages.com/badges/calmbackup-backup/health.svg)](https://phpackages.com/packages/calmbackup-backup)
```

###  Alternatives

[vcian/laravel-db-auditor

Database DB Auditor provide leverage to audit your MySql,sqlite, PostgreSQL database standards and also provide options to add constraints in table.

28535.1k1](/packages/vcian-laravel-db-auditor)[popphp/pop-db

Pop Db Component for Pop PHP Framework

1814.6k11](/packages/popphp-pop-db)[moharrum/laravel-adminer

Adminer database management tool for your Laravel application.

451.0k](/packages/moharrum-laravel-adminer)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

101.6k](/packages/ramadan-easy-model)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
