PHPackages                             stayapp-corp/firebase-realtime-database-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. [CLI &amp; Console](/categories/cli)
4. /
5. stayapp-corp/firebase-realtime-database-backup

ActiveLibrary[CLI &amp; Console](/categories/cli)

stayapp-corp/firebase-realtime-database-backup
==============================================

Firebase Realtime database library to backup and restore small and larger projects.

1.0.2(7y ago)5502MITPHPPHP &gt;=5.6

Since Jan 30Pushed 6y ago2 watchersCompare

[ Source](https://github.com/stayapp-corp/firebase-realtime-database-backup)[ Packagist](https://packagist.org/packages/stayapp-corp/firebase-realtime-database-backup)[ Docs](https://github.com/GeovRodri/firebase-realtime-database-backup/)[ RSS](/packages/stayapp-corp-firebase-realtime-database-backup/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (3)Versions (3)Used By (0)

Firebase Realtime-database backup client
========================================

[](#firebase-realtime-database-backup-client)

[![Current version](https://camo.githubusercontent.com/6071ff745776ef68fefc7de71d72e2506b83911826a1ea945b5ab8326ebd859e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f737461796170702d636f72702f66697265626173652d7265616c74696d652d64617461626173652d6261636b75702e737667)](https://packagist.org/packages/stayapp-corp/firebase-realtime-database-backup)![Supported PHP version](https://camo.githubusercontent.com/f17ad821064f661071195718eeacdeb7fcb5b5bf585cc3fe6f3201eed6a2d736/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f737461796170702d636f72702f66697265626173652d7265616c74696d652d64617461626173652d6261636b75702e737667)[![Total Downloads](https://camo.githubusercontent.com/b5a492973795862c5ba26eab9a3bc2df2ff170d5eab7d186a717539466467053/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737461796170702d636f72702f66697265626173652d7265616c74696d652d64617461626173652d6261636b75702e737667)](https://packagist.org/packages/stayapp-corp/firebase-realtime-database-backup/stats)[![License](https://camo.githubusercontent.com/5ed857f7644b96c8a9ddbfa56cefb379050c91dfc8979c0ae3c3a1052a0f1c62/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f737461796170702d636f72702f66697265626173652d7265616c74696d652d64617461626173652d6261636b75702e737667)](https://github.com/stayapp-corp/firebase-realtime-database-backup/blob/master/LICENSE)

[![GitHub stars](https://camo.githubusercontent.com/4897922cc014c1d2022ee04baf894ce502163b7f64bc8fcaae5921fe58c70c91/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f737461796170702d636f72702f66697265626173652d7265616c74696d652d64617461626173652d6261636b75702e7376673f6c6162656c3d5374617273267374796c653d736f6369616c)](https://github.com/stayapp-corp/firebase-realtime-database-backup/stargazers)[![GitHub watchers](https://camo.githubusercontent.com/f009825e4341702af3813fee51006a593218da6bb10219c8a7fe650ae4934024/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f77617463686572732f737461796170702d636f72702f66697265626173652d7265616c74696d652d64617461626173652d6261636b75702e7376673f6c6162656c3d5761746368267374796c653d736f6369616c)](https://github.com/stayapp-corp/firebase-realtime-database-backup/watchers)

Available on [Packagist](https://packagist.org/packages/stayapp-corp/firebase-realtime-database-backup).

Description
-----------

[](#description)

Unfortunately, the firebase backup service is only today available for Blaze plan and you can not do backups more than one time per day.

The manual export button available on cli (that uses the rest endpoint) doesn't work for bigger databases. This library permits to export and import the firebase realtime-database using the rest api and a division strategy to enable the capability to export and import bigger databases.

### Adding this to your project using Composer

[](#adding-this-to-your-project-using-composer)

In some situations, is a good idea to install this library in your project and use our processor classes to make your own backup in your service. To do that you can install this library using composer:

```
$ cd
$ composer require stayapp-corp/firebase-realtime-database-backup

```

More info about Composer at [getcomposer.org](http://getcomposer.org).

### Using this library by Console CLI

[](#using-this-library-by-console-cli)

#### Database Export

[](#database-export)

```
./frdbackup export --project_id  --project_key

```

There are some optional parameters:

Long parametershort parameterDescriptionDefault valuetemp\_dirtTemporary directory to save all downloaded database files before creating .tar.gz backup file./tempmax\_ippiThe maximum size of items per page that some query to the database will use. Note that if you specify a very large number and you have nodes that can't get this quantity of samples, the script can take a long time to finish because it will be decrease the IPP size until it can get the data.1000output\_fileoCompressed backup (.tar.gz) output file path./backups/BACKUP-&lt;ACTUAL\_DATE&gt;#### Database Import

[](#database-import)

```
./frdbackup import --project_id  --project_key  --backup_file

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.9% 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 ~49 days

Total

2

Last Release

2609d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b7b308c6812d9d4c9a2099bd44ae0ceefa0222bfcbf482f2196b2cc9e455c70?d=identicon)[brunosoaresds](/maintainers/brunosoaresds)

![](https://www.gravatar.com/avatar/2388dda64a36116dc4539f0176916bac9718df77837e624c7218fbfd9b108cd1?d=identicon)[GeovRodri](/maintainers/GeovRodri)

---

Top Contributors

[![brunosoaresds](https://avatars.githubusercontent.com/u/4603566?v=4)](https://github.com/brunosoaresds "brunosoaresds (18 commits)")[![GeovRodri](https://avatars.githubusercontent.com/u/9656009?v=4)](https://github.com/GeovRodri "GeovRodri (16 commits)")

---

Tags

clibackupfirebaserealtime database

### Embed Badge

![Health badge](/badges/stayapp-corp-firebase-realtime-database-backup/health.svg)

```
[![Health](https://phpackages.com/badges/stayapp-corp-firebase-realtime-database-backup/health.svg)](https://phpackages.com/packages/stayapp-corp-firebase-realtime-database-backup)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[wp-cli/php-cli-tools

Console utilities for PHP

68325.0M367](/packages/wp-cli-php-cli-tools)[socialengine/sniffer-rules

A Lumen 5 and Laravel 5 SquizLabs Code Sniffer 2.0 artisan command. Detect violations of a defined coding standard. It helps your code remains clean and consistent.

1248.2k1](/packages/socialengine-sniffer-rules)

PHPackages © 2026

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