sukohi/mtriv
Larablocks Analysis
sukohi/mtriv works with Laravel 5 (latest release 2.0.1, Jan 31, 2017), which reached end of life: no more fixes, even for security.
Laravel 4 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Jan 31, 2017)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jan 31, 2017.
- No releases in the last 12 months.
- First released: Aug 11, 2015.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 25, 2026.
| Install | |
|---|---|
composer require sukohi/mtriv |
|
| Latest Version: | 2.0.1 |
| Laravel: | 5 |
| Older releases: | 4 |
| License: | MIT |
| Last Updated: | Jan 31, 2017 |
| Links: | GitHub · Packagist |
Mtriv
A PHP package mainly developed for Laravel to verify simply.
(This is for Laravel 5+. For Laravel 4.2)
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
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
This package is licensed under the MIT License.
Copyright 2014 Sukohi Kuhoh
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.0.1 | ~5.0 | MIT | ||
| 2.0.0 | ~5.0 | MIT | ||
| 1.0.1 | >=5.4.0 | 4.2.* | ||
| 1.0.0 | >=5.4.0 | 4.2.* |