New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

sukohi/agnomen

A PHP package mainly developed for Laravel to set attributes for error messages of when failing validation.
24

Larablocks Analysis

sukohi/agnomen works with Laravel 5 (latest release 1.0.1, Aug 20, 2015), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not 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: Aug 20, 2015)
  • 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: Aug 20, 2015.
  • No releases in the last 12 months.
  • First released: Aug 20, 2015.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require sukohi/agnomen
Latest Version:1.0.1
Laravel:5
Last Updated:Aug 20, 2015
Links: GitHub  ·  Packagist
Maintainer: Sukohi

Agnomen

A PHP package mainly developed for Laravel to set attributes for error messages of when failing validation.

Installation

Add this package name in composer.json

"require": {
  "sukohi/agnomen": "1.*"
}

Execute composer command.

composer update

Usage

At first, add AgnomenTrait to App/Http/Requests/Request.php like this.

<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Sukohi\Agnomen\AgnomenTrait;

abstract class Request extends FormRequest
{
    use AgnomenTrait;

    private $attribute_names = [
        'email' => 'YOUR-TEXT-1',
        'password' => 'YOUR-TEXT-2',
        'accepted' => 'YOUR-TEXT-3'
    ];

}

And make your own Request using the following command.

php artisan make:request *****Request
  • see here for the details

then add your validation rules there like this.

public function rules()
{
    return [
        'email' => 'required',
        'password' => 'required', 
        'accepted' => 'accepted'
    ];
}

Now if your application respond error messages, :attribute will be replaced with $attribute_names values.
See here for the details

e.g.)

The :attribute field is required. => The YOUR-TEXT-1 field is required.

License

This package is licensed under the MIT License.

Copyright 2015 Sukohi Kuhoh

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released Laravel License
1.0.1 ~5.0
1.0.0 ~5.0