clumsy/age-check
Larablocks Analysis
clumsy/age-check works with any PHP project: the latest release (v0.2.6, Jul 14, 2016) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Jul 14, 2016)
- 0 downloads a month (needs 10,000)
- 2 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jul 14, 2016.
- No releases in the last 12 months.
- First released: Jul 13, 2016.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.
| Install | |
|---|---|
composer require clumsy/age-check |
|
| Latest Version: | v0.2.6 |
| PHP: | >=5.4.0 |
| License: | MIT |
| Last Updated: | Jul 14, 2016 |
| Links: | GitHub · Packagist |
Age-Check
A package to help create an age-check verification.
License
Clumsy Age-Check is open-sourced software licensed under the MIT license
Installation
To get started with Age-Check, add to your composer.json file as a dependency:
composer require clumsy/age-check:0.2.*
If you are using Laravel 4, stick to the branch 0.1:
composer require clumsy/age-check:0.1.*
Configuration
After installing the Age-Check library, register the ServiceProvider in your config/app.php configuration file:
'providers' => [
// Other service providers...
Clumsy\AgeCheck\AgeCheckServiceProvider::class,
],
Register the middleware in your app/Http/Kernel.php file:
protected $routeMiddleware = [
//Other middlewares...
'age-check' => \Clumsy\AgeCheck\Http\Middleware\ValidateAge::class,
];
Publish the config file:
php artisan vendor:publish --provider="Clumsy\AgeCheck\AgeCheckServiceProvider" --tag="config"
and edit it according to your project. Usually you want to edit the success-url and fail-url which are the urls where the user will get redirected in case of fail or success.
Usage
Create a route group with the age-check middleware in it:
Route::group(
[
'middleware' => ['age-check']
],
function() {
//Your routes goes here...
}
);
This package gives you a basic view with a basic form without styling. You should change the config file to use one of you own and use the partials views provided to help you generate the form.
You can also publish the views and change them to suit your needs:
php artisan vendor:publish --provider="Clumsy\AgeCheck\AgeCheckServiceProvider" --tag="views"
Related Packages
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v0.2.6 | >=5.4.0 | MIT | |
| v0.2.5 | >=5.4.0 | MIT | |
| v0.2.4 | >=5.4.0 | MIT | |
| v0.2.3 | >=5.4.0 | MIT | |
| v0.2.2 | >=5.4.0 | MIT | |
| v0.2.1 | >=5.4.0 | MIT | |
| v0.2.0 | >=5.3.0 | MIT | |
| v0.1.2 | >=5.3.0 | MIT | |
| v0.1.1 | >=5.3.0 | MIT |
