{"id":31917380,"url":"https://github.com/raviyatechnical/laravel-api-generator","last_synced_at":"2026-05-13T23:36:20.748Z","repository":{"id":65957703,"uuid":"603391975","full_name":"raviyatechnical/laravel-api-generator","owner":"raviyatechnical","description":"Quickly generate api controller for your Laravel projects","archived":false,"fork":false,"pushed_at":"2023-08-12T10:06:52.000Z","size":23,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T23:13:04.035Z","etag":null,"topics":["api","api-auth","api-authentication","api-controller","api-rest","artisan","cli","generator","laravel","laravel-api-response","laravel-api-response-helpers"],"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/raviyatechnical.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["bhargavraviya"],"patreon":"raviyatechnical","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-02-18T11:20:06.000Z","updated_at":"2023-04-22T12:49:29.000Z","dependencies_parsed_at":"2023-11-28T17:18:02.982Z","dependency_job_id":null,"html_url":"https://github.com/raviyatechnical/laravel-api-generator","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.09999999999999998,"last_synced_commit":"d1f32217df470f8d7f594b89dc024782428ca8cd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raviyatechnical/laravel-api-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviyatechnical%2Flaravel-api-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviyatechnical%2Flaravel-api-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviyatechnical%2Flaravel-api-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviyatechnical%2Flaravel-api-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raviyatechnical","download_url":"https://codeload.github.com/raviyatechnical/laravel-api-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviyatechnical%2Flaravel-api-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016926,"owners_count":26085908,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","api-auth","api-authentication","api-controller","api-rest","artisan","cli","generator","laravel","laravel-api-response","laravel-api-response-helpers"],"created_at":"2025-10-13T20:29:10.303Z","updated_at":"2025-10-13T20:29:12.012Z","avatar_url":"https://github.com/raviyatechnical.png","language":"PHP","funding_links":["https://github.com/sponsors/bhargavraviya","https://patreon.com/raviyatechnical"],"categories":[],"sub_categories":[],"readme":"\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://www.rajtechnologies.com/ui/images/raj-technologies-logo-top-panel.jpg\" alt=\"Logo\" width=120\u003e  \n\u003ch1 align=\"center\"\u003eLaravel API Generator\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n    Quickly generate rest api for your projects! with  API Response Helpers\n  \u003c/p\u003e\n\u003cbr\u003e\u003cbr\u003e\n\u003c/div\u003e\n\n## Installation\nRequire the Laravel Repository Generator with composer.\n```\ncomposer require raviyatechnical/laravel-api-generator:dev-master --dev\n```\n\n## Usage\nFor usage take the following steps. Generate the api controller and base controller.\n\n### Generating BaseController With Auth (Laravel Sanctum)\nWARNING make you sure that file not exits it is overwrite file\n\nRun the following command.\n```\nphp artisan api:install --auth\n```\nThis will generate the following files:\n\n```\nApp\\Http\\Controllers\\API\\BaseController\nApp\\Http\\Controllers\\API\\Auth\\LoginController.php\nApp\\Http\\Controllers\\API\\Auth\\RegisterController.php\nApp\\Http\\Resources\\AuthResource.php\n```\n\nAdd Route On This Path: routes/web.php \n```\nuse App\\Http\\Controllers\\API\\Auth\\LoginController;\nuse App\\Http\\Controllers\\API\\Auth\\RegisterController;\n...\nRoute::post('register', [RegisterController::class, 'register'])-\u003ename('auth.register');\nRoute::post('login', [LoginController::class, 'login'])-\u003ename('auth.login');\nRoute::post('logout', [LoginController::class, 'logout'])-\u003ename('auth.logout')-\u003emiddleware('auth:sanctum');\nRoute::post('logout-all', [LoginController::class, 'logoutAll'])-\u003ename('auth.logout.all')-\u003emiddleware('auth:sanctum');\n```\n\n\n### Generating BaseController Without Auth\nWARNING make you sure that file not exits it is overwrite file\n\nRun the following command.\n```\nphp artisan api:install\n```\nThis will generate the following files:\n\n```\nApp\\Http\\Controllers\\API\\BaseController\n```\n\n\n### Generating API Controller\nRun the following command.\n```\nphp artisan api:controller UserController\n```\nThis example will generate the following files:\n```\nApp\\Http\\Controllers\\API\\UserController\n```\n## Tech Stack\n\n**Server:** Laravel API\n\n\n## Authors\n\n- [@bhargavraviya](https://github.com/bhargavraviya)\n\n\n## Support\n\nFor support, email raviyatechnical@gmail.com.\n\u003c!-- or join our Slack channel. --\u003e\n\n## 🔗 Links\n[![portfolio](https://img.shields.io/badge/my_portfolio-000?style=for-the-badge\u0026logo=ko-fi\u0026logoColor=white)](https://raviyatechnical.medium.com)\n[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/company/raviyatechnical)\n[![twitter](https://img.shields.io/badge/twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white)](https://twitter.com/raviyatechnical)\n\n## License\n\n[MIT](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraviyatechnical%2Flaravel-api-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraviyatechnical%2Flaravel-api-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraviyatechnical%2Flaravel-api-generator/lists"}