PHPackages                             avokicchi/login-manager - 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. avokicchi/login-manager

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

avokicchi/login-manager
=======================

Drop-in PHP login module that's database agnostic, doesn't require any libraries, and supports remember-me functionality.

1.6(11mo ago)1110[2 issues](https://github.com/avokicchi/login-manager/issues)MITPHPPHP &gt;=7.2

Since May 14Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/avokicchi/login-manager)[ Packagist](https://packagist.org/packages/avokicchi/login-manager)[ RSS](/packages/avokicchi-login-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)DependenciesVersions (8)Used By (0)

Drop-in PHP login module that's database agnostic, doesn't require any libraries, and supports remember-me functionality.

**Installation using Composer**

Run:

```
composer require avokicchi/login-manager

```

Then use:

```
require_once 'vendor/autoload.php';

```

To load the library.

**Features**

- Simple to add to existing projects
- Remember Me functionality (extend login session lifetime using cookies)
- Secure pages requiring fresh login
- Database agnostic, uses PDO
- No other libraries or dependencies needed
- Simple Key/Value storage on login object that lasts for the duration of the login session in case you need to remember something during login.

**Requirements**

- php 7.2+
- PDO database connection

**Notes**I will not extend this library with password recovery, email validation, or two-factor authentication as that goes way beyond the scope of this and would require including libraries and defeats the point of this, which is to provide a simple login system for simple (personal use) projects, or a basic login system to build on top of.

If you want that kind of functionality, I would at the moment probably recommend phpgangsta/googleauthenticator for two factor authentication, and mandrill, mailchimp or mailgun for your email sending needs.

I hope this is useful to anyone. ~ Avo

For simple usage examples, see the Examples/ folder.

In the future, I will create a small demo project that goes into more detail and shows how to use this library with dependency injection.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Recently: every ~145 days

Total

7

Last Release

343d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a090f175efd7c305d546e5188e6a74d465c8acb4c6da20d1baf68728c338cd6?d=identicon)[avokicchi](/maintainers/avokicchi)

---

Top Contributors

[![avokicchi](https://avatars.githubusercontent.com/u/6539369?v=4)](https://github.com/avokicchi "avokicchi (5 commits)")

### Embed Badge

![Health badge](/badges/avokicchi-login-manager/health.svg)

```
[![Health](https://phpackages.com/badges/avokicchi-login-manager/health.svg)](https://phpackages.com/packages/avokicchi-login-manager)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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