{"id":19691550,"url":"https://github.com/omnicode/lara-form","last_synced_at":"2025-04-29T09:31:12.909Z","repository":{"id":57031332,"uuid":"100109816","full_name":"omnicode/lara-form","owner":"omnicode","description":"Laravel Forms with Form-Tampering protection","archived":false,"fork":false,"pushed_at":"2019-11-19T06:40:08.000Z","size":357,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T02:04:48.374Z","etag":null,"topics":["form","laravel","security","tampering"],"latest_commit_sha":null,"homepage":"","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/omnicode.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":"2017-08-12T12:04:57.000Z","updated_at":"2024-04-19T10:24:13.000Z","dependencies_parsed_at":"2022-08-23T18:50:48.080Z","dependency_job_id":null,"html_url":"https://github.com/omnicode/lara-form","commit_stats":null,"previous_names":[],"tags_count":114,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnicode%2Flara-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnicode%2Flara-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnicode%2Flara-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnicode%2Flara-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omnicode","download_url":"https://codeload.github.com/omnicode/lara-form/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251473222,"owners_count":21595025,"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":["form","laravel","security","tampering"],"created_at":"2024-11-11T19:09:45.779Z","updated_at":"2025-04-29T09:31:12.455Z","avatar_url":"https://github.com/omnicode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Lara Form - Laravel Form Package with Form Tampering protection\n\nLaraForm is a Laravel Form wrapper with convenient methods, that includes **Form Tampering protection** and prevents double form submission.\n\n## Contents\n\n2. \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\n3. \u003ca href=\"#quick-start\"\u003eQuick start\u003c/a\u003e\n3. \u003ca href=\"#security\"\u003eSecurity\u003c/a\u003e\n4. \u003ca href=\"#helpers\"\u003eHelpers\u003c/a\u003e\n    * \u003ca href=\"#form-create\"\u003eCreate Form\u003c/a\u003e\n    * \u003ca href=\"#form-text-input\"\u003eText Input\u003c/a\u003e\n    * \u003ca href=\"#form-textarea\"\u003eTextarea\u003c/a\u003e\n    * \u003ca href=\"#form-select\"\u003eSelect\u003c/a\u003e\n    * \u003ca href=\"#form-checkbox\"\u003eCheckbox\u003c/a\u003e\n    * \u003ca href=\"#form-radio\"\u003eRadio Buttons\u003c/a\u003e\n    * \u003ca href=\"#form-hidden\"\u003eHidden\u003c/a\u003e\n    * \u003ca href=\"#form-password\"\u003ePassword\u003c/a\u003e\n    * \u003ca href=\"#form-close\"\u003eclose\u003c/a\u003e\n    * \u003ca href=\"#form-buttons\"\u003ebuttons\u003c/a\u003e\n5. \u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\n\n\n## \u003ca id=\"installation\"\u003e\u003c/a\u003eInstallation\n\nAt `composer.json` of your Laravel installation, add the following require line:\n\n``` json\n{\n    \"require\": {\n        \"omnicode/lara-form\": \"~0.0\"\n    }\n}\n```\n\nRun `composer update` to add the package to your Laravel app.\n\n### Laravel 5.0\n\nAt `config/app.php`, add the Service Provider and the Facade:\n\n```php\n    'providers' =\u003e [\n        // ...\n\t'LaraForm\\ServiceProvider\\LaraFormServiceProvider'\n    ]\n\n\t//...\n\n    'aliases' =\u003e [\n        'LaraForm' =\u003e 'LaraForm\\Facades\\LaraForm'\n    ]\n```\n\n### Laravel 5.1+\n\nAt `config/app.php`, add the Service Provider and the Facade:\n\n```php\n    'providers' =\u003e [\n        LaraForm\\ServiceProvider\\LaraFormServiceProvider::class,\n    ]\n\n    //...\n\n    'aliases' =\u003e [\n        'LaraForm' =\u003e LaraForm\\Facades\\LaraForm::class,\n    ]\n```\n\n## \u003ca id=\"quick-start\"\u003e\u003c/a\u003eQuick start\n\nTo create a simple form\n\n```php\n{!! LaraForm::create($model, ['action' =\u003e route('posts.create') ]) !!}\n\t\t\t\t\t\n{!! LaraForm::input('email') !!}\n\n{!! LaraForm::submit('Submit') !!}\n\n{!! LaraForm::end() !!}\n```\n\n## \u003ca id=\"security\"\u003e\u003c/a\u003eSecurity\n\nLaraForm has form tampering protection, this ensures that\n\n- Unknown fields cannot be added to the form\n- Existing fields cannot be removed from the form\n- Values of hidden inputs cannot be changed\n\nPlease note, however, that it will not prevent adding new values to select dropdown or radio buttons - this information should be validated by Laravel Validations\n\nIt also prevents submitting the same form twice (server side implementation)\n\n\n## \u003ca id=\"helpers\"\u003e\u003c/a\u003eHelpers\n\n### \u003ca id=\"form-create\"\u003e\u003c/a\u003eCreate Form\n\n@TODO\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnicode%2Flara-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomnicode%2Flara-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnicode%2Flara-form/lists"}