{"id":18771041,"url":"https://github.com/rareloop/lumberjack-validation","last_synced_at":"2025-07-14T07:32:56.321Z","repository":{"id":62533328,"uuid":"121020445","full_name":"Rareloop/lumberjack-validation","owner":"Rareloop","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-28T10:56:49.000Z","size":12,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-26T01:41:14.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Rareloop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-02-10T14:04:17.000Z","updated_at":"2025-04-28T10:56:16.000Z","dependencies_parsed_at":"2024-11-07T19:23:57.267Z","dependency_job_id":"e0227d04-e77e-47c7-ae07-b86de583dc98","html_url":"https://github.com/Rareloop/lumberjack-validation","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"dcf365c65ad90713ec372fa6269eab419960bd45"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Rareloop/lumberjack-validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rareloop%2Flumberjack-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rareloop%2Flumberjack-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rareloop%2Flumberjack-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rareloop%2Flumberjack-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rareloop","download_url":"https://codeload.github.com/Rareloop/lumberjack-validation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rareloop%2Flumberjack-validation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265255375,"owners_count":23735245,"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-07T19:22:58.511Z","updated_at":"2025-07-14T07:32:56.304Z","avatar_url":"https://github.com/Rareloop.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lumberjack Validation\n![CI](https://travis-ci.org/Rareloop/lumberjack-validation.svg?branch=master)\n![Coveralls](https://coveralls.io/repos/github/Rareloop/lumberjack-validation/badge.svg?branch=master)\n\nThis package provides a simple way to validate form input. At it's heart it is a thin wrapper around the Rakit Validation library. For documentation on the types of rules you can use refer to their (Github docs)[https://github.com/rakit/validation.\n\nOnce installed, register the Service Provider in `config/app.php`:\n\n```php\n'providers' =\u003e [\n    ...\n\n    Rareloop\\Lumberjack\\Validation\\ValidationServiceProvider::class,\n\n    ...\n],\n```\n\nYou can now create Form objects that can be used to validate for your form submissions:\n\n## Create a Form Object\n\n```php\nclass ContactForm extends AbstractForm\n{\n    protected $rules = [\n        'name' =\u003e 'required',\n        'email' =\u003e 'required|email'\n    ];\n}\n```\n\n## Use the form to validate input\n\nYour form can be injected into your Lumberjack Controllers and then used this this:\n\n```php\nuse App\\Forms\\ContactForm;\n\nclass IndexController\n{\n    public function handle(ContactForm $form)\n    {\n        if ($form-\u003evalidate($_POST)) {\n            // Everything's good - do something with the input\n        } else {\n            $errors = $form-\u003eerrors();\n            $values = $form-\u003evalues();\n            // Re-show the form with the errors and entered values\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frareloop%2Flumberjack-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frareloop%2Flumberjack-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frareloop%2Flumberjack-validation/lists"}