PHPackages                             ipx-digital/db-copy - 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. ipx-digital/db-copy

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

ipx-digital/db-copy
===================

Copies your production database to your development environment.

0.5(6y ago)088[1 issues](https://github.com/ipx-digital/db-copy/issues)PHPPHP ^7.2

Since Mar 25Pushed 6y agoCompare

[ Source](https://github.com/ipx-digital/db-copy)[ Packagist](https://packagist.org/packages/ipx-digital/db-copy)[ RSS](/packages/ipx-digital-db-copy/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

DB Copy
=======

[](#db-copy)

Quickly and easily refresh your local MySQL database with production data by automating the process of copying your production database to your local development database.

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

[](#installation)

1. Use `composer require ipx-digital/db-copy` in your project's directory to include it.
2. Since you're using this with Laravel, you likely already have a .env file with your developemnt database config variables. All you need to do is add the following for your production DB to your .env:

```
PRODUCTION_DB_CONNECTION=mysql
PRODUCTION_DB_HOST=
PRODUCTION_DB_DATABASE=
PRODUCTION_DB_USERNAME=
PRODUCTION_DB_PASSWORD=
SSH_USERNAME=
