{"id":21580639,"url":"https://github.com/ezra-obiwale/laraquick","last_synced_at":"2025-04-09T16:16:54.320Z","repository":{"id":56961010,"uuid":"101999076","full_name":"ezra-obiwale/laraquick","owner":"ezra-obiwale","description":"A collection of classes to be extended/used in laravel apps for quick development","archived":false,"fork":false,"pushed_at":"2025-02-17T07:20:27.000Z","size":342,"stargazers_count":36,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T16:16:42.085Z","etag":null,"topics":["api","guzzle","laravel","php","quick","quickstart","rapid","rest"],"latest_commit_sha":null,"homepage":"https://laraquick.readme.io","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/ezra-obiwale.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-08-31T12:36:34.000Z","updated_at":"2025-02-17T07:20:07.000Z","dependencies_parsed_at":"2024-01-15T15:46:53.160Z","dependency_job_id":"278af476-3e1c-4cdc-873d-8b186a0bf08c","html_url":"https://github.com/ezra-obiwale/laraquick","commit_stats":{"total_commits":237,"total_committers":3,"mean_commits":79.0,"dds":0.008438818565400852,"last_synced_commit":"68924e10156eb6fa83b3a19e6d089ec90bf18a16"},"previous_names":[],"tags_count":176,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezra-obiwale%2Flaraquick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezra-obiwale%2Flaraquick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezra-obiwale%2Flaraquick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezra-obiwale%2Flaraquick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezra-obiwale","download_url":"https://codeload.github.com/ezra-obiwale/laraquick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065285,"owners_count":21041872,"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":["api","guzzle","laravel","php","quick","quickstart","rapid","rest"],"created_at":"2024-11-24T14:09:16.058Z","updated_at":"2025-04-09T16:16:54.287Z","avatar_url":"https://github.com/ezra-obiwale.png","language":"PHP","funding_links":[],"categories":["Packages"],"sub_categories":["Development Tools"],"readme":"# laraquick\n\nA collection of classes to be extended/used in laravel applications for quick\ndevelopment.\n\n## Introduction\n\nThe library contains traits with well documented methods that should be used by\ncontrollers and models to enhance coding speed.\n\n## Installation\n\n```\ncomposer require d-scribe/laraquick\n```\n\n## Dependencies\n\n### \u003e= v1.*\n\n- PHP               \u003e=      7.0\n- Laravel           -       ~5.5\n- Guzzle            -       ~6.0\n\n### v0.*\n\n- PHP               \u003e=     5.6.0\n- Laravel           -      5.4.*\n- Laravel Fractal   -      ^4.0\n- Guzzle            -       ~6.0\n\n## Example\n\nAn example controller for a `Book` model is:\n\n```php\nuse App\\Book;\nuse Laraquick\\Controllers\\Traits\\Api;\n\nclass BookController extends Controller {\n\n    use Api;\n\n    protected function model(): string\n    {\n        return Book::class;\n    }\n\n    // if you have a custom form request class\n    protected function validationRequest(): string\n    {\n        return BookRequest::class;\n    }\n\n    // if you don't have a custom form request class\n    protected function validationRules(array $data, $id = null): array\n    {\n        return [\n            'title' =\u003e 'required|max:200',\n            'author' =\u003e 'required|max:50',\n            'genre' =\u003e 'required'\n        ];\n    }\n}\n\n```\n\nAnd with just the above, the controller would take care of listing (w/ pagination),\nand all `CRUD` operations and give the right JSON responses.\n\n```php\nRoute::httpResource('books', BookController::class);\n```\n\n### What if Web and not API?\n\nOh, that's covered too with the version 1.5 and above. Just swap out the `Api`\ntrait for its `Web` counterpart, and you're good.\n\n## Documentation\n\n[Get a full walk-through](http://laraquick.readme.io)\n\n## Contribution\n\nContributions are absolutely welcome. Create a PR and I'll as swiftly as possible\nmerge it up.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezra-obiwale%2Flaraquick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezra-obiwale%2Flaraquick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezra-obiwale%2Flaraquick/lists"}