PHPackages                             nigelgreenway/tutis - 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. nigelgreenway/tutis

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

nigelgreenway/tutis
===================

A framework agnostic authentication library

v1.0.0(9y ago)06.0k↓50%MITPHPPHP &gt;=5.5

Since Dec 15Pushed 9y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Tutis
=====

[](#tutis)

Tutis is a wrapper for handling passwords. It is provided with a password handler that uses `bcrypt` and allows you to generate a hash, rehash and verify a password, all via a simple call to the `Tutis\Pass` object.

Install
-------

[](#install)

Via Composer

```
$ composer require NigelGreenway/Tutis
```

Usage
-----

[](#usage)

### Generate a pass for a user (using BasicPasswordHandler)

[](#generate-a-pass-for-a-user-using-basicpasswordhandler)

```
$username = 'bob.builder';

$password = '9455w0rd';
$options = [
    'cost' => 12,
];
$passwordHandler = Tutis\Handler\BasicPasswordHandler::hash($password, $options);

$pass = Tutis\Pass::generate($username, $passwordHandler, Tutis\Pass::ACTIVE);
echo $pass->toUsername() // bob.builder
echo $pass->toHash() // $0m3l0ngh4sh
```

### Authenticate the password

[](#authenticate-the-password)

```
$username = 'bob.builder';
$password = '9455w0rd';
$hash     = '$0m3l0ngh4sh';

$pass = Tutis\Pass::authenticate(
    $username,
    $password,
    $hash,
    BasicPasswordHandler::class,
    1
)

var_dump($pass); // Instance of Tutis\Pass
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Nigel Greenway](https://github.com/NigelGreenway)
- [All Contributors](../../contributors)

License
-------

[](#license)

The Apache License (Apache). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

3623d ago

Major Versions

v0.1.0-beta.1 → v1.0.02016-06-17

### Community

Maintainers

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

---

Top Contributors

[![NigelGreenway](https://avatars.githubusercontent.com/u/2984008?v=4)](https://github.com/NigelGreenway "NigelGreenway (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nigelgreenway-tutis/health.svg)

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

###  Alternatives

[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)[illuminate/auth

The Illuminate Auth package.

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

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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