PHPackages                             druc/laravel-wire - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. druc/laravel-wire

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

druc/laravel-wire
=================

Import files and database from your application environments.

v0.0.6(4y ago)05311[3 PRs](https://github.com/druc/laravel-wire/pulls)MITPHPPHP ^8.0

Since Dec 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/druc/laravel-wire)[ Packagist](https://packagist.org/packages/druc/laravel-wire)[ Docs](https://github.com/druc/laravel-wire)[ GitHub Sponsors](https://github.com/druc)[ RSS](/packages/druc-laravel-wire/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (13)Used By (0)

Laravel wire
============

[](#laravel-wire)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4950adba33d63bb514573502799a112a233eb5fb43c7b09001db292bd081e087/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f647275632f6c61726176656c2d776972652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/druc/laravel-wire)[![GitHub Tests Action Status](https://camo.githubusercontent.com/75785694ab5fc6f09c2c094c0222ab757561f530afab3e804b732c6f795cbec0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f647275632f6c61726176656c2d776972652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/druc/laravel-wire/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/2d52d2cd3d1cb665c9700a24ab8985c4efa00711e3e0852c6ac1ca8bc19b4120/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f647275632f6c61726176656c2d776972652f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/druc/laravel-wire/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/da96e7f5c274253b4168e04bb08335078dc57f35b42649990a8a92748087e4dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647275632f6c61726176656c2d776972652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/druc/laravel-wire)

Import files and database from your application environments.

**Warning**: This package is highly experimental and potentially dangerous :)

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

[](#installation)

You can install the package via composer:

```
composer require druc/laravel-wire
```

You can publish the config file with:

```
php artisan vendor:publish --tag="wire-config"
```

This is the contents of the published config file:

```
return [
    'default' => 'stage',
    'environments' => [
        'stage' => [
            'url' => 'https://your-stage-environment.com',
            'auth_key' => 'BqNbqyoxswma4bYzj8rnsAhfySp0york',
            'file_paths' => ['storage'],
            'excluded_file_paths' => [],
            'basic_auth' => [
                'enabled' => false,
                'username' => 'johndoe',
                'password' => 'supersecret'
            ]
        ]
    ]
];
```

Database import
---------------

[](#database-import)

```
# import all tables from default environment
php artisan wire:db

# import all tables from dev environment
php artisan wire:db dev

# import specific tables
php artisan wire:db -t users,orders,order_items

# import while excluding specific tables
php artisan wire:db -e users
```

Files import
------------

[](#files-import)

```
# import all files from paths found in the config file
php artisan wire:files

# import specific file paths
php artisan wire:files storage/avatars

# import while excluding specific file paths
php artisan wire:files storage --exclude=storage/media-library

# import from specific environment
php artisan wire:files --env=staging
```

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Constantin Druc](https://github.com/druc)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~15 days

Total

7

Last Release

1509d ago

PHP version history (2 changes)v0.0.0PHP ^7.4|^8.0

v0.0.6PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/37cd3eded166ea8cad3b05209c351ccca07725133d32ea608826e7652c56bac0?d=identicon)[druc](/maintainers/druc)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")[![druc](https://avatars.githubusercontent.com/u/13726728?v=4)](https://github.com/druc "druc (3 commits)")[![mucenica-bogdan](https://avatars.githubusercontent.com/u/846097?v=4)](https://github.com/mucenica-bogdan "mucenica-bogdan (2 commits)")

---

Tags

laraveldruclaravel-wire

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/druc-laravel-wire/health.svg)

```
[![Health](https://phpackages.com/badges/druc-laravel-wire/health.svg)](https://phpackages.com/packages/druc-laravel-wire)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[maestroerror/laragent

Power of AI Agents in your Laravel project

630106.4k](/packages/maestroerror-laragent)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[spatie/laravel-rdap

Perform RDAP queries in a Laravel app

72108.3k2](/packages/spatie-laravel-rdap)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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