PHPackages                             dvlpp/privat - 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. dvlpp/privat

AbandonedArchivedProject

dvlpp/privat
============

Simple private access package for Laravel.

v1.0(8y ago)63.3k—0%2MITPHPPHP &gt;=5.5.9

Since Oct 16Pushed 8y ago2 watchersCompare

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

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

> This package is deprecated, a backward compatible v2 version of it is available here: [code16/privat](https://github.com/code16/privat)

Privat
======

[](#privat)

Private is a very simple password protection for Laravel projects. It's useful for websites in a staging state.

[![Screenshot](https://camo.githubusercontent.com/841ba73c539942e9843fd30484880bb51e785a45749893672a9cbf69903c6ddb/687474703a2f2f692e696d6775722e636f6d2f6a7a3754546d532e706e67)](https://camo.githubusercontent.com/841ba73c539942e9843fd30484880bb51e785a45749893672a9cbf69903c6ddb/687474703a2f2f692e696d6775722e636f6d2f6a7a3754546d532e706e67)

Usage
-----

[](#usage)

### Install with composer

[](#install-with-composer)

`composer require dvlpp/privat`

### Add Privat Service Provider (except for Laravel 5.5+)

[](#add-privat-service-provider-except-for-laravel-55)

Add the following line in the `providers` section of your `config/app.php` file:

`\Dvlpp\Privat\PrivatServiceProvider::class`

### Add Privat middleware in your project

[](#add-privat-middleware-in-your-project)

Add the following line at the end of the `$middleware` array of the `app/Http/Kernel` file:

`\Dvlpp\Privat\PrivatMiddleware::class`

### Set Privat config

[](#set-privat-config)

First create the privat config file:

`php artisan vendor:publish --provider="Dvlpp\Privat\PrivatServiceProvider"`

And then edit the new `/config/privat.php` accordingly (nothing fancy), or even better, add this keys in your `.env` file:

- PRIVAT\_RESTRICTED=true
- PRIVAT\_PASSWORD=mypassword

### Exceptions

[](#exceptions)

The `except` config param is meant to contain an array of excluded urls (those url won't be protected by Privat).

How does it work
----------------

[](#how-does-it-work)

Quite simple: if the given password is correct, Privat sets a session property, and look for it on each request. So, obviously, Privat won't work on non session based systems (an API for instance).

License
-------

[](#license)

[WTFPL](https://en.wikipedia.org/wiki/WTFPL)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.1% 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

3136d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/631aeaf04752eaf66da7a41a474c04106150afebf7c9278c592b61e698f2049c?d=identicon)[dvlpp](/maintainers/dvlpp)

---

Top Contributors

[![dvlpp](https://avatars.githubusercontent.com/u/973325?v=4)](https://github.com/dvlpp "dvlpp (23 commits)")[![RemiCollin](https://avatars.githubusercontent.com/u/9589616?v=4)](https://github.com/RemiCollin "RemiCollin (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dvlpp-privat/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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