PHPackages                             sukohi/postern - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. sukohi/postern

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

sukohi/postern
==============

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.

2.0.5(8y ago)074MITPHP

Since Mar 10Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (10)Used By (0)

Postern
=======

[](#postern)

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.
(This is for Laravel 5+. [For Laravel 4.2](https://github.com/SUKOHI/Postern/tree/1.0))

Installation
============

[](#installation)

Execute composer command.

```
composer require sukohi/postern:2.*

```

If your Laravel's version is 5.5+, the installation is done!

Register the service provider in app.php

```
'providers' => [
    ...Others...,
    Sukohi\Postern\PosternServiceProvider::class,
]

```

Also alias

```
'aliases' => [
    ...Others...,
    'Postern'   => Sukohi\Postern\Facades\Postern::class
]

```

Usage
=====

[](#usage)

**Minimal Way (in View)**

```

{!! \Postern::form('form_name')
        ->credentials('Link Text', ['input_email_name' => 'admin@example.com', 'input_password_name' => 'admin'])
        ->render()
!!}

```

**Other Way (in View)**

```
{!! \Postern::form('form_name')
        ->credentials('Admin Login', ['email' => 'admin@example.com', 'password' => 'admin'])
        ->credentials('User Login', ['email' => 'user@example.com', 'password' => 'user'])
        ->localOnly($boolean = true)    // optional
        ->render()
!!}

```

- You can repeatedly use credentials().
- If you'd like to use this package in production environment, set localOnly(false).

License
=======

[](#license)

This package is licensed under the MIT License.

Copyright 2015 Sukohi Kuhoh

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~241 days

Total

9

Last Release

2959d ago

Major Versions

1.0.0 → 2.0.02015-03-10

1.0.x-dev → 2.0.32017-05-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (8 commits)")

### Embed Badge

![Health badge](/badges/sukohi-postern/health.svg)

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

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M43](/packages/santigarcor-laratrust)[overtrue/laravel-follow

User follow unfollow system for Laravel.

1.2k404.7k5](/packages/overtrue-laravel-follow)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)

PHPackages © 2026

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