{"id":21598120,"url":"https://github.com/matfish2/one-validator","last_synced_at":"2025-07-08T00:16:28.115Z","repository":{"id":21722101,"uuid":"25043710","full_name":"matfish2/one-validator","owner":"matfish2","description":"Convert server-side validation to client-side on your Laravel app","archived":false,"fork":false,"pushed_at":"2016-01-25T21:14:05.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T17:45:54.064Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/fish/one-validator","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matfish2.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-10T16:26:53.000Z","updated_at":"2022-12-21T14:12:02.000Z","dependencies_parsed_at":"2022-08-17T16:25:15.974Z","dependency_job_id":null,"html_url":"https://github.com/matfish2/one-validator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matfish2%2Fone-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matfish2%2Fone-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matfish2%2Fone-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matfish2%2Fone-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matfish2","download_url":"https://codeload.github.com/matfish2/one-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244210653,"owners_count":20416500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-24T18:11:20.791Z","updated_at":"2025-03-18T11:29:56.276Z","avatar_url":"https://github.com/matfish2.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/fish/one-validator/v/stable.svg)](https://packagist.org/packages/fish/one-validator) [![Total Downloads](https://poser.pugx.org/fish/one-validator/downloads.svg)](https://packagist.org/packages/fish/one-validator) [![Latest Unstable Version](https://poser.pugx.org/fish/one-validator/v/unstable.svg)](https://packagist.org/packages/fish/one-validator) [![License](https://poser.pugx.org/fish/one-validator/license.svg)](https://packagist.org/packages/fish/one-validator)\n\n# Server-\u003eClient Validation Converter\n\nWhile client-side validation is a standard nowadays, setting it is tedious and anti-DRYful.\nThis Laravel 4+ package will convert your server-side rules to the popular [JQuery validate](http://jqueryvalidation.org/) plugin format, while adding all of the necessary assets to support the Laravel set of rules (including remote rules) and messages (including custom attributes and localization).\nFile and date rules are not supported and will be ignored.\n\n## Installation\n\nBegin by installing this package through Composer. Edit your project's `composer.json` file to require `fish/one-validator`.\n\n\t\"require-dev\": {\n\t\t\"fish/one-validator\": \"dev-master\"\n\t}\n\nNext, update Composer from the Terminal:\n\n    composer update\n\nOnce this operation completes, the final step is to add the service provider. Open `app/config/app.php`, and add a new item to the providers array.\n\n    Fish\\OneValidator\\OneValidatorServiceProvider\n\nNext, publish the assets to your project:\n\n    php artisan validator:init\n\nThe file that handles the validation methods and messages will be placed under `public/one-validator.min.js`.\nBe sure to include the script in your page.\n\nThat's it! You're all set to go.\n\n## Usage\n\nThe syntax is:\n\n    php artisan validator:convert path/to/file [--target=validation.js]\n\nThe first argument is the path to a PHP file with a valid `$rules` array, relative to the `app` folder.\n\nBy default the output will be echoed to the console.\nYou can send the output to a file instead by using the `target` option, providing a path relative to the `app` folder.\n\nRemember to replace the default `.my-form` selector with your own form selector.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatfish2%2Fone-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatfish2%2Fone-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatfish2%2Fone-validator/lists"}