PHPackages                             cystorm/larashield - 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. cystorm/larashield

ActiveLibrary

cystorm/larashield
==================

Independent security gateway for Laravel applications

v1.0.0(1mo ago)10MITPHPPHP ^8.1

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/selimwdev/larashield)[ Packagist](https://packagist.org/packages/cystorm/larashield)[ RSS](/packages/cystorm-larashield/feed)WikiDiscussions main Synced 1w ago

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

LaraShield 🛡️
=============

[](#larashield-️)

**Protect your Laravel testing features before they become public.**

LaraShield is a lightweight security gateway for Laravel applications that helps developers protect unfinished features, private dashboards, testing pages, and sensitive endpoints when running applications on public staging or development servers.

Instead of exposing internal features while testing, LaraShield adds a simple login gate in front of selected paths.

The Problem
-----------

[](#the-problem)

During development, teams often deploy staging environments publicly for testing.

This can expose:

- Unfinished features
- Internal dashboards
- Debug pages
- Experimental functionality
- Sensitive testing endpoints

LaraShield provides a simple solution: protect these areas behind an independent developer login.

How It Works
------------

[](#how-it-works)

Install LaraShield:

```
composer require cystorm/larashield
```

Run the installation command:

```
php artisan larashield:install
```

After installation, LaraShield creates an initial developer account.

The developer logs in to the LaraShield dashboard and defines which paths should be protected.

Example:

```
/admin/testing
/beta-feature
/new-payment-flow

```

Now any request to these paths will require LaraShield authentication.

Flow:

```
User Request
      |
      v
  LaraShield Check
      |
      +---- Authenticated
      |          |
      |          v
      |     Application Feature
      |
      +---- Not Authenticated
                 |
                 v
            LaraShield Login

```

Use Cases
---------

[](#use-cases)

LaraShield is useful for:

- Testing new features on public staging servers
- Protecting internal tools
- Sharing unfinished work with a team
- Preventing accidental data exposure during development
- Adding temporary access control without modifying application code

Features
--------

[](#features)

- Independent authentication gateway
- Protect routes without changing your existing Laravel auth
- Developer-friendly dashboard
- Configurable protected paths
- Session-based access control
- Redirect users back after successful login
- Simple installation process

Example
-------

[](#example)

Before LaraShield:

```
https://staging.example.com/new-feature

```

Anyone can access the feature.

After LaraShield:

```
https://staging.example.com/new-feature

        |
        v

LaraShield Login

        |
        v

Feature Access

```

What LaraShield Is Not
----------------------

[](#what-larashield-is-not)

LaraShield is not intended to replace:

- Laravel authentication systems
- API authentication solutions
- User management systems

It is a protection layer designed for developers who need temporary access control for testing and private features.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Laravel 10.x
- Laravel 11.x

Roadmap
-------

[](#roadmap)

Future versions may include:

- API endpoint protection
- Access logs
- Team management
- Advanced security policies
- Two-factor authentication

License
-------

[](#license)

MIT License

Author
------

[](#author)

Mohamed Selim

GitHub:

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

49d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a64abc4232172096de12e020f00bc916dfde78bc196c8c197741e0b9b1254c2b?d=identicon)[selimwdev](/maintainers/selimwdev)

---

Top Contributors

[![selimwdev](https://avatars.githubusercontent.com/u/113633078?v=4)](https://github.com/selimwdev "selimwdev (2 commits)")

### Embed Badge

![Health badge](/badges/cystorm-larashield/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k17.6M165](/packages/laravel-pulse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

80732.6M270](/packages/laravel-mcp)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k31.8M166](/packages/laravel-cashier)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

1.0k2.5M152](/packages/roots-acorn)

PHPackages © 2026

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