PHPackages                             sagar-s-bhedodkar/laravel-dev-snapshot - 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. sagar-s-bhedodkar/laravel-dev-snapshot

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

sagar-s-bhedodkar/laravel-dev-snapshot
======================================

Dev environment snapshot and restore for Laravel (DB + storage + config + env)

v1.0.3(7mo ago)06MITPHPPHP &gt;=8.1

Since Oct 12Pushed 7mo agoCompare

[ Source](https://github.com/sagar-s-bhedodkar/laravel-dev-snapshot)[ Packagist](https://packagist.org/packages/sagar-s-bhedodkar/laravel-dev-snapshot)[ RSS](/packages/sagar-s-bhedodkar-laravel-dev-snapshot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

🧱 Laravel Dev Snapshot
======================

[](#-laravel-dev-snapshot)

> **Automate Laravel development environment snapshots and restores — database, storage, and environment configuration — all in one command.**

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](LICENSE)[![Laravel](https://camo.githubusercontent.com/b41f9b916485b5a076b4174be55450105ae0ec45a5daa0b7417d85559ca71d8d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d392e7825323025374325323031302e7825323025374325323031312e7825323025374325323031322e782d7265642e737667)](https://laravel.com)[![Packagist](https://camo.githubusercontent.com/d1a1071907c7a5fd39a48734da5e4ba88cab45b6bdfe2c0a74e95d685c0bc088/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616761722d732d626865646f646b61722f6c61726176656c2d6465762d736e617073686f742e737667)](https://packagist.org/packages/sagar-s-bhedodkar/laravel-dev-snapshot)[![GitHub stars](https://camo.githubusercontent.com/8f400b83763a982dea6ac1cd518c906a517ed23ad98e40ac30146b1077b92f96/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73616761722d732d626865646f646b61722f6c61726176656c2d6465762d736e617073686f742e737667)](https://github.com/sagar-s-bhedodkar/laravel-dev-snapshot/stargazers)

---

📘 Table of Contents
-------------------

[](#-table-of-contents)

- [Introduction](#-introduction)
- [Features](#-features)
- [Installation](#-installation)
- [Configuration](#-configuration)
- [Usage](#-usage)
- [Example Workflow](#-example-workflow)
- [Safety](#-safety)
- [Contributing](#-contributing)
- [License](#-license)
- [Author](#-author)

---

🚀 Introduction
--------------

[](#-introduction)

**Laravel Dev Snapshot** is a lightweight package that helps developers manage their **local environment snapshots** easily.

Instead of manually exporting your database, copying `.env`, or saving config files — do it all with a single command:

```
php artisan dev:snapshot
php artisan dev:restore snapshot_name
```

This helps reset your local environment safely, reproduce bugs, or sync data across developers in seconds.

---

✨ Features
----------

[](#-features)

- 📦 Create and restore full development snapshots
- 🧠 Includes database, storage, `.env`, and configuration files
- ⚙️ Works only in `local` or `testing` environments (for safety)
- 🪶 Simple Artisan commands (`dev:snapshot`, `dev:restore`)
- 💾 Optional compression to ZIP files
- 🧹 Clean and easy rollback system

---

⚙️ Installation
---------------

[](#️-installation)

Require the package via Composer:

```
composer require sagar-s-bhedodkar/laravel-dev-snapshot --dev
```

---

🔧 Configuration
---------------

[](#-configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="SagarSBhedodkar\LaravelDevSnapshot\Providers\DevSnapshotServiceProvider" --tag=config
```

The configuration will appear at `config/dev-snapshot.php`:

```
return [
    'snapshot_path' => env('DEV_SNAPSHOT_PATH', 'snapshots'),
    'include_storage_paths' => ['storage/app/public'],
    'include_env' => true,
    'include_config_paths' => ['config/app.php'],
    'exclude_tables' => [],
    'compress' => true,
    'allowed_environments' => ['local', 'testing'],
];
```

---

🧠 Usage
-------

[](#-usage)

### ➕ Create a snapshot

[](#-create-a-snapshot)

```
php artisan dev:snapshot
```

Optionally name your snapshot:

```
php artisan dev:snapshot --name=my-local-backup
```

### ♻️ Restore a snapshot

[](#️-restore-a-snapshot)

```
php artisan dev:restore snapshot-20251012-abc123
```

---

🧩 Example Workflow
------------------

[](#-example-workflow)

1. You make large DB or storage changes.
2. Run: ```
    php artisan dev:snapshot --name=pre-test
    ```
3. After testing, restore the environment: ```
    php artisan dev:restore pre-test
    ```
4. Your DB, env, and storage are restored to that state instantly.

---

🛡️ Safety
---------

[](#️-safety)

> Snapshots and restores will only run in **local** or **testing** environments.

The package will refuse to execute in **production** to avoid data loss.

---

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome!

1. Fork the repository
2. Create a feature branch: `git checkout -b feature/new-feature`
3. Commit your changes: `git commit -m "Add new feature"`
4. Push to your fork: `git push origin feature/new-feature`
5. Submit a Pull Request 🎉

---

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the **MIT license**.

---

👨‍💻 Author
----------

[](#‍-author)

**Sagar Sunil Bhedodkar**
📧
🌐 [GitHub Profile](https://github.com/sagar-s-bhedodkar)

---

> Made with ❤️ for Laravel developers who value automation, safety, and simplicity.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance65

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f14a63a25120de3ec7ce2eff77be8ba80345f1de81a84ceaa719ae9d1534687?d=identicon)[sbsagar](/maintainers/sbsagar)

---

Top Contributors

[![sbsaga](https://avatars.githubusercontent.com/u/110087468?v=4)](https://github.com/sbsaga "sbsaga (10 commits)")

---

Tags

laravelsnapshotdatabasedevelopmentrestore

### Embed Badge

![Health badge](/badges/sagar-s-bhedodkar-laravel-dev-snapshot/health.svg)

```
[![Health](https://phpackages.com/badges/sagar-s-bhedodkar-laravel-dev-snapshot/health.svg)](https://phpackages.com/packages/sagar-s-bhedodkar-laravel-dev-snapshot)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[illuminatech/config

Provides support for Laravel application runtime configuration managed in persistent storage

14921.0k1](/packages/illuminatech-config)[cornford/backup

An easy way backup and restore databases in Laravel.

4225.6k](/packages/cornford-backup)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)[vectorial1024/laravel-cache-evict

Efficiently remove expired Laravel file/database cache data

5813.2k](/packages/vectorial1024-laravel-cache-evict)

PHPackages © 2026

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