{"id":36279426,"url":"https://github.com/tyrellsys/cakephp3-messages-validator","last_synced_at":"2026-01-11T09:02:06.435Z","repository":{"id":57074318,"uuid":"217000780","full_name":"tyrellsys/cakephp3-messages-validator","owner":"tyrellsys","description":"CakePHP3 Validator that set the validation message","archived":false,"fork":false,"pushed_at":"2020-03-26T02:40:09.000Z","size":35,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-20T02:48:08.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tyrellsys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-23T07:57:00.000Z","updated_at":"2019-11-28T05:38:08.000Z","dependencies_parsed_at":"2022-08-24T14:55:07.462Z","dependency_job_id":null,"html_url":"https://github.com/tyrellsys/cakephp3-messages-validator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tyrellsys/cakephp3-messages-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrellsys%2Fcakephp3-messages-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrellsys%2Fcakephp3-messages-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrellsys%2Fcakephp3-messages-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrellsys%2Fcakephp3-messages-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyrellsys","download_url":"https://codeload.github.com/tyrellsys/cakephp3-messages-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrellsys%2Fcakephp3-messages-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28298875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T08:21:30.231Z","status":"ssl_error","status_checked_at":"2026-01-11T08:21:26.882Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-11T09:02:05.685Z","updated_at":"2026-01-11T09:02:06.397Z","avatar_url":"https://github.com/tyrellsys.png","language":"PHP","readme":"# CakePHP3 Messages Validator plugin\n\nCakePHP3 Validator that set the validation message\n\n## Requirements\n\nThe master branch has the following requirements:\n\n* CakePHP \u003e=3.6.0,\u003c4.0.0\n* PHP 5.6.0 or greater\n\n## Installation\n\nYou can install this plugin into your CakePHP application using [composer](http://getcomposer.org).\n\nThe recommended way to install composer packages is:\n\n```\ncomposer require tyrellsys/cakephp3-messages-validator\n```\n\nLoad your pligin load Tyrellsys/CakePHP3MessagesValidator\n```\nbin/cake plugin load Tyrellsys/CakePHP3MessagesValidator\n```\nor by manually putting `$this-\u003eaddPlugin('Tyrellsys/CakePHP3MessagesValidator')` in your `Application.php`.\n\n## Config\n\nset messages `messagesValidator.messages`.\n\nconfig/messages.php\n\n```php\nreturn [\n    'messagesValidator' =\u003e [\n        'messages' =\u003e [\n            'required' =\u003e 'required messages',\n            'notEmpty' =\u003e 'notEmpty messages',\n            'maxLength' =\u003e 'maxLength messages',\n        ]\n    ]\n];\n\n// for po file setting\n__d('validation', 'required messages');\n__d('validation', 'notEmpty messages');\n__d('validation', 'maxLength messages');\n\n// fieldName for po file setting\n__d('validation', 'fieldName');\n\n```\n\n\nand putting `config/bootstrap.php`.\n```\nConfigure::load('messages');\n```\n\n## Model validation\n\n```php\nnamespace App\\Model\\Table;\n\n...\n\nclass PostsTable extends Table\n{\n    protected $_validatorClass = \\Tyrellsys\\CakePHP3MessagesValidator\\Validation\\Validator::class;\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyrellsys%2Fcakephp3-messages-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyrellsys%2Fcakephp3-messages-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyrellsys%2Fcakephp3-messages-validator/lists"}