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(10y ago)06.3k↑150%MITPHPPHP &gt;=5.5

Since Dec 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/NigelGreenway/Tutis)[ Packagist](https://packagist.org/packages/nigelgreenway/tutis)[ RSS](/packages/nigelgreenway-tutis/feed)WikiDiscussions master Synced 2d 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

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

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

3669d 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

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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