PHPackages                             indatus/guardian - 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. indatus/guardian

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

indatus/guardian
================

Allows you to protect more than just the production environment from potentially destructive tasks

v1.0(11y ago)92.2k2MITPHPPHP &gt;=5.4

Since Feb 9Pushed 11y ago2 watchersCompare

[ Source](https://github.com/Indatus/guardian)[ Packagist](https://packagist.org/packages/indatus/guardian)[ RSS](/packages/indatus-guardian/feed)WikiDiscussions master Synced 1mo ago

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

Guardian
========

[](#guardian)

Guardian is a Laravel package that allows you to protect more than just the `production` environment from potentially destructive tasks.

[![](https://camo.githubusercontent.com/c31b8dbefb013092d36a09a1bdf4ae99aa1940f5a8944d51c98becb296d72446/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f75706c6f6164732e686970636861742e636f6d2f36343939342f3630303537362f7553744a796f63424748554b7850662f53637265656e25323053686f74253230323031352d30322d30392532306174253230372e34312e3332253230414d2e706e67)](https://camo.githubusercontent.com/c31b8dbefb013092d36a09a1bdf4ae99aa1940f5a8944d51c98becb296d72446/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f75706c6f6164732e686970636861742e636f6d2f36343939342f3630303537362f7553744a796f63424748554b7850662f53637265656e25323053686f74253230323031352d30322d30392532306174253230372e34312e3332253230414d2e706e67)

---

[![Latest Stable Version](https://camo.githubusercontent.com/665c5012dbf5f76be156370c1f87f046efbc678a125b02b723e5f7bbb7f23610/68747470733a2f2f706f7365722e707567782e6f72672f696e64617475732f677561726469616e2f762f737461626c652e706e67)](https://packagist.org/packages/indatus/guardian) [![Total Downloads](https://camo.githubusercontent.com/d449744b009dbec58bcc640700d635b90e4de8a9191d07c4ce11dc21bac19046/68747470733a2f2f706f7365722e707567782e6f72672f696e64617475732f677561726469616e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/indatus/guardian) [![Build Status](https://camo.githubusercontent.com/e52cce33d1c7d348934cfda32a865eff2de7977fda742dae3200e2a8f8bc20bf/68747470733a2f2f7472617669732d63692e6f72672f496e64617475732f677561726469616e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Indatus/guardian)

\## Features - Adds confirmation dialog for destructive commands to configurable environment list

Supported artisan commands:

- `migrate:refresh`
- `migrate:reset`
- `db:seed`
- Any other command that uses this package's `ConfirmableTrait`

\## Installation **Requirements**

- PHP 5.4+ or [HHVM](http://hhvm.com/)
- [Laravel](http://laravel.com) 4.1+

You can install the library via [Composer](http://getcomposer.org) by running:

```
composer require indatus/guardian

```

Add this line to the providers array in your `app/config/app.php` file :

```
        'Indatus\Guardian\ServiceProvider',
```

\## Configuration By default this package adds protection for a `demo` environment in addition to Laravel's native `production` protection. You can customize this environment list by customizing the package config.

For Laravel 4: `php artisan config:publish indatus/guardian`

For Laravel 5+: `php artisan publish:config indatus/guardian`

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

4114d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/27b36d1b791b775002187bab1daf9eda7c676290aa5ba9891497c376b2b3c69a?d=identicon)[bkuhl](/maintainers/bkuhl)

---

Tags

laravelartisanmigrationsseedmigrateseeders

### Embed Badge

![Health badge](/badges/indatus-guardian/health.svg)

```
[![Health](https://phpackages.com/badges/indatus-guardian/health.svg)](https://phpackages.com/packages/indatus-guardian)
```

###  Alternatives

[barryvdh/laravel-ide-helper

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

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[yajra/laravel-datatables-editor

Laravel DataTables Editor plugin for Laravel 5.5+.

1186.1M2](/packages/yajra-laravel-datatables-editor)[zonneplan/laravel-module-loader

Module loader for Laravel

24118.4k](/packages/zonneplan-laravel-module-loader)[tehwave/laravel-achievements

Simple, elegant Achievements the Laravel way

7012.8k](/packages/tehwave-laravel-achievements)[elimuswift/db-exporter

Export your database quickly and easily as a Laravel Migration and all the data as a Seeder class.

364.7k](/packages/elimuswift-db-exporter)

PHPackages © 2026

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