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. [File &amp; Storage](/categories/file-storage)
4. /
5. digifactory/laravel-pull-production-data

ActiveLibrary[File &amp; Storage](/categories/file-storage)

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

Pull your production storage folder and database to your local environment

v5.0.2(2mo ago)1117.2k↑646.2%4[5 issues](https://github.com/digifactory/laravel-pull-production-data/issues)MITPHPPHP ^8.3CI failing

Since Nov 8Pushed 2mo 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 3d ago

READMEChangelog (10)Dependencies (12)Versions (33)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

57

—

FairBetter than 97% of packages

Maintenance76

Regular maintenance activity

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 54.1% 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 ~102 days

Recently: every ~96 days

Total

24

Last Release

76d 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

v4.2.1 → v5.0.02026-04-08

PHP version history (5 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

v5.0.0PHP ^8.3

### 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 (60 commits)")[![mrk-j](https://avatars.githubusercontent.com/u/1250622?v=4)](https://github.com/mrk-j "mrk-j (43 commits)")[![StanDigiFactory](https://avatars.githubusercontent.com/u/125874113?v=4)](https://github.com/StanDigiFactory "StanDigiFactory (3 commits)")[![prjanitor](https://avatars.githubusercontent.com/u/272426700?v=4)](https://github.com/prjanitor "prjanitor (2 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

[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[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.

45444.2k1](/packages/pressbooks-pressbooks)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M200](/packages/laravel-ai)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M166](/packages/spatie-laravel-health)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)

PHPackages © 2026

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