PHPackages                             digifactory/laravel-pull-production-data - 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. digifactory/laravel-pull-production-data

ActiveLibrary

digifactory/laravel-pull-production-data
========================================

Pull your production storage folder and database to your local environment

v4.2.1(1y ago)1016.2k—0%3[5 issues](https://github.com/digifactory/laravel-pull-production-data/issues)MITPHPPHP ^8.2CI passing

Since Nov 8Pushed 1y ago2 watchersCompare

[ Source](https://github.com/digifactory/laravel-pull-production-data)[ Packagist](https://packagist.org/packages/digifactory/laravel-pull-production-data)[ Docs](https://github.com/digifactory/laravel-pull-production-data)[ RSS](/packages/digifactory-laravel-pull-production-data/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (29)Used By (0)

Laravel Pull Production Data
============================

[](#laravel-pull-production-data)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a0e6d1eef17bfd421a9bcb49c011f01859caa9d814e9048e8f2685e68475c7d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64696769666163746f72792f6c61726176656c2d70756c6c2d70726f64756374696f6e2d646174612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digifactory/laravel-pull-production-data)[![MIT Licensed](https://camo.githubusercontent.com/d78bf859f2061b0b40dc10c7e8a764ae12759e4f4417fe3f994f4b110ab619e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64696769666163746f72792f6c61726176656c2d70756c6c2d70726f64756374696f6e2d646174613f7374796c653d666c61742d737175617265)](LICENSE.md)[![run-tests](https://github.com/digifactory/laravel-pull-production-data/actions/workflows/run-php-tests.yml/badge.svg)](https://github.com/digifactory/laravel-pull-production-data/actions/workflows/run-php-tests.yml)[![Quality Score](https://camo.githubusercontent.com/e435458dca2603570431c42e44ad03d7e380bb46929cd0d6ecb98a158ba7cf60/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f64696769666163746f72792f6c61726176656c2d70756c6c2d70726f64756374696f6e2d646174612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/digifactory/laravel-pull-production-data)[![StyleCI](https://camo.githubusercontent.com/a4cd52a9eaf8bb6041bfc4cd8d31ab63ef0ad8159021abcf1284e9bbf5ff5463/68747470733a2f2f7374796c6563692e696f2f7265706f732f3232303433373737362f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/220437776)[![Total Downloads](https://camo.githubusercontent.com/032384643d84eb2d28dd8f541562184e46b0dc76e5a43cd8a03363ae5ab92a45/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64696769666163746f72792f6c61726176656c2d70756c6c2d70726f64756374696f6e2d646174612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digifactory/laravel-pull-production-data)

This package provides a command to download your production database and `storage/app` folder to your local environment.

In the current state this package mainly scratches our own itch. Nonetheless this package can be used in nearly every Laravel environment.

The package assumes you have:

- Environment variables `DEPLOY_SERVER` and `DEPLOY_PATH` (customisable in the config)
- Setup SSH keys between your machine and the production machine
- `mysql` binary available on your local machine
- `mysqldump` binary available on your production machine

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require digifactory/laravel-pull-production-data --dev
```

You can publish the config file:

```
php artisan vendor:publish --provider="DigiFactory\PullProductionData\PullProductionDataServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

By default both the database and the storage folder will be synced.

```
php artisan pull-production-data
```

The following flags are available:

FlagDescription-D, --no-databaseWhether the database should not be synced-S, --no-storage-folderWhether the storage folder should not be synced-C, --no-appending-commandsWhether the appending commands should run### V4.1

[](#v41)

Since this version it is possible to run any command when `php artisan pull-production-data` is completed. For example: this way you can anonimize data for local/testing purpose.

### Preview

[](#preview)

[![Screenshot of the command](https://camo.githubusercontent.com/325a68430fe74bfd1567cebe784119eeb6998dc57cf5b0d496503d1318f83a76/68747470733a2f2f64696769666163746f72792e6769746875622e696f2f6c61726176656c2d70756c6c2d70726f64756374696f6e2d646174612f73637265656e73686f742e706e67)](https://camo.githubusercontent.com/325a68430fe74bfd1567cebe784119eeb6998dc57cf5b0d496503d1318f83a76/68747470733a2f2f64696769666163746f72792e6769746875622e696f2f6c61726176656c2d70756c6c2d70726f64756374696f6e2d646174612f73637265656e73686f742e706e67)

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mark](https://github.com/mrk-j)
- [Maurice](https://github.com/m-bosch)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 54.7% 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 ~98 days

Recently: every ~88 days

Total

21

Last Release

400d ago

Major Versions

v0.0.2 → v1.0.02019-11-12

v1.1.1 → v2.0.02022-02-23

v2.0.0 → v3.0.02023-02-20

v3.0.0 → v4.0.02024-04-16

PHP version history (4 changes)v0.0.1PHP ^7.3

v1.1.1PHP ^7.4|^8.0

v2.0.0PHP ^8.0.2|^8.1

v3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e19d432d52091cec8d2004e56ea35b4142e9c638427d07a7c7646dad22f4c58?d=identicon)[digifactory](/maintainers/digifactory)

---

Top Contributors

[![m-bosch](https://avatars.githubusercontent.com/u/16580113?v=4)](https://github.com/m-bosch "m-bosch (52 commits)")[![mrk-j](https://avatars.githubusercontent.com/u/1250622?v=4)](https://github.com/mrk-j "mrk-j (37 commits)")[![StanDigiFactory](https://avatars.githubusercontent.com/u/125874113?v=4)](https://github.com/StanDigiFactory "StanDigiFactory (3 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")[![damiani](https://avatars.githubusercontent.com/u/357312?v=4)](https://github.com/damiani "damiani (1 commits)")

---

Tags

digifactorylaravel-pull-production-data

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/digifactory-laravel-pull-production-data/health.svg)

```
[![Health](https://phpackages.com/badges/digifactory-laravel-pull-production-data/health.svg)](https://phpackages.com/packages/digifactory-laravel-pull-production-data)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[illuminate/queue

The Illuminate Queue package.

20331.4M1.2k](/packages/illuminate-queue)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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