PHPackages                             sukohi/mtriv - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. sukohi/mtriv

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

sukohi/mtriv
============

A PHP package mainly developed for Laravel to verfy simply.

2.0.1(9y ago)048MITPHP

Since Aug 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/Mtriv)[ Packagist](https://packagist.org/packages/sukohi/mtriv)[ RSS](/packages/sukohi-mtriv/feed)WikiDiscussions master Synced 4w ago

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

Mtriv
=====

[](#mtriv)

A PHP package mainly developed for Laravel to verify simply.
(This is for Laravel 5+. [For Laravel 4.2](https://github.com/SUKOHI/Mtriv/tree/1.0))

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

[](#installation)

Add this package name in composer.json

```
"require": {
  "sukohi/mtriv": "2.*"
}

```

Execute composer command.

```
composer update

```

Register the service provider in app.php

```
'providers' => [
    ...Others...,
    Sukohi\Mtriv\MtrivServiceProvider::class,
]

```

Also alias

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

```

Usage
=====

[](#usage)

At first generate public key using secret key, string and expiration(skippable) like the following.

```
$str = 'STRING, ID and so on...';
$expiration = time(); // Skippable
$public_key = \Mtriv::secretKey('SECRET_KEY')->publicKey($str, $expiration);

```

and then you can verify.

```
if(\Mtriv::secretKey('SECRET_KEY')->check($str, $public_key, $expiration)) {

    echo 'success!';

}

```

License
=======

[](#license)

This package is licensed under the MIT License.

Copyright 2014 Sukohi Kuhoh

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Recently: every ~135 days

Total

6

Last Release

3385d ago

Major Versions

1.0.0 → 2.0.02015-08-11

1.0.x-dev → 2.0.12017-01-31

### 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 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[carsdotcom/laravel-json-schema

Json Schema validation for Laravel projects

1036.7k3](/packages/carsdotcom-laravel-json-schema)

PHPackages © 2026

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