https://github.com/tyrellsys/cakephp-validator
Validator class for CakePHP4
https://github.com/tyrellsys/cakephp-validator
Last synced: about 2 months ago
JSON representation
Validator class for CakePHP4
- Host: GitHub
- URL: https://github.com/tyrellsys/cakephp-validator
- Owner: tyrellsys
- Created: 2020-04-13T10:14:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-21T03:38:46.000Z (10 months ago)
- Last Synced: 2025-09-02T20:43:31.080Z (6 months ago)
- Language: PHP
- Size: 16.6 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CakePHP4 Messages Validator plugin
CakePHP4 Validator that set the validation message
## Requirements
The master branch has the following requirements:
* CakePHP >4.0.0
* PHP 7.2 or greater
## Installation
You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).
The recommended way to install composer packages is:
```
composer require tyrellsys/cakephp-validator
```
no need plugin load
## Config
no configuration
## Model validation
```php
namespace App\Model\Table;
...
class PostsTable extends Table
{
protected $_validatorClass = \Tyrellsys\CakePHPValidator\Validation\Validator::class;
}
```