{"id":16175450,"url":"https://github.com/app-generator/api-server-laravel","last_synced_at":"2026-03-05T19:02:40.357Z","repository":{"id":46072629,"uuid":"382551554","full_name":"app-generator/api-server-laravel","owner":"app-generator","description":"Laravel API Server - Open-Source API Server | AppSeed","archived":false,"fork":false,"pushed_at":"2021-11-16T19:39:34.000Z","size":145,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-23T16:02:57.113Z","etag":null,"topics":["api-rest","appseed","appseed-sample","laravel"],"latest_commit_sha":null,"homepage":"https://appseed.us/boilerplate-code/laravel-boilerplate","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/app-generator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-03T07:15:52.000Z","updated_at":"2024-04-05T04:50:08.000Z","dependencies_parsed_at":"2022-09-11T03:10:43.643Z","dependency_job_id":null,"html_url":"https://github.com/app-generator/api-server-laravel","commit_stats":null,"previous_names":[],"tags_count":3,"template":true,"template_full_name":null,"purl":"pkg:github/app-generator/api-server-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fapi-server-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fapi-server-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fapi-server-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fapi-server-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/api-server-laravel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fapi-server-laravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30144700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T16:58:46.102Z","status":"ssl_error","status_checked_at":"2026-03-05T16:58:45.706Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-rest","appseed","appseed-sample","laravel"],"created_at":"2024-10-10T04:44:52.296Z","updated_at":"2026-03-05T19:02:40.313Z","avatar_url":"https://github.com/app-generator.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# [Laravel API Server](https://appseed.us/boilerplate-code/laravel-boilerplate)\n\nSimple Laravel API Server with JWT authentication, and **SQLite** persistence - Provided by **AppSeed** [App Generator](https://appseed.us) and [UPDIVISION](https://updivision.com/?ref=appseed).\n\n\n\u003cbr /\u003e\n\n\u003e Features:\n\n- [API Definition](https://docs.appseed.us/boilerplate-code/api-unified-definition) - the unified API structure implemented by this server\n- Simple, intuitive codebase - can be extended with ease.  \n- **Stack**: PHP 7.4+ / Laravel / Doctrine\n- JWT Authentication \n\n\u003cbr /\u003e\n\n\u003e Can be used with other [React Starters](https://appseed.us/apps/react) for a complete **Full-Stack** experience:\n\n| [React Node JS Berry](https://appseed.us/product/react-node-js-berry-dashboard) | [React Node Soft Dashboard](https://appseed.us/product/node-js-react-soft-dashboard) | [React Node Datta Able](https://github.com/app-generator/react-datta-able) |\n| --- | --- | --- |\n| [![React Node JS Berry](https://user-images.githubusercontent.com/51070104/124934742-aa392300-e00d-11eb-83bf-28d8b8704ec8.png)](https://appseed.us/product/react-node-js-berry-dashboard) | [![React Node Soft Dashboard](https://user-images.githubusercontent.com/51070104/137918158-54b20cce-1ac8-4279-ab89-aac0353ff7d3.png)](https://appseed.us/product/node-js-react-soft-dashboard) | [![React Node Datta Able](https://user-images.githubusercontent.com/51070104/125737710-834a9e6f-c39b-4f3b-a42a-9583ce2ce1da.png)](https://github.com/app-generator/react-datta-able)\n\n\u003cbr /\u003e\n\n![Laravel API Server - Open-source Nodejs Starter provided by AppSeed.](https://user-images.githubusercontent.com/51070104/141784950-b63f71bb-192e-4851-af6b-1b7a99226c9f.jpg)\n\n\u003cbr /\u003e\n\n## Requirements\n\n- PHP 7.4+\n- Extensions (check the #Troubleshooting section for installation info)\n  - `php-xml`\n  - `php7.4-sqlite`\n  \n\u003cbr /\u003e\n\n## How to use the code\n\n**Step #1** - Clone the project\n\n```bash\n$ git clone https://github.com/app-generator/api-server-laravel.git\n$ cd api-server-laravel\n```\n\n**Step #2** - Install dependencies\n\n```bash\n$ composer install\n$ cp .env.example .env \n$ php artisan key:generate\n```\n\n**Step #3** - Generate a `secret` key used by JWT Authentication Flow\n\n```\n$ php artisan jwt:secret\n```\n\n**Step #4** - Set up the database\n\n```bash\n$ touch database/database.sqlite\n$ php artisan migrate\n```\n\n**Step #5** - Start the server\n\n```bash\n$ php -S localhost:5000 server.php\n```\n\n\u003cbr /\u003e\n\n## Troubleshooting\n\nTo have a successful compilation of this product, make sure you have the following PHP extensions installed and enabled:\n\n- `php-xml` - required by Php-Unit\n- `php7.4-sqlite` - The SQLite driver required by Laravel ORM\n\n```bash\n$ # Php XML - required by Php Unit\n$ sudo apt install php-xml php-cli php-mbstring php7.4-sqlite\n```\n\n\u003cbr /\u003e\n\n## Codebase Structure\n\n```bash\n\u003c ROOT \u003e\n     | \n     |-- app/          # Implements APP Bussiness Logic                    \n     |-- config/       # Configuration\n     |-- public/       # Public folder                         \n     |-- routes/       # Application ROutes                        \n     |-- tests/        # Tests                              \n     | \n     |-- server.php    # API Entry Point\n     |-- .env          # Specify the ENV variables\n     |                        \n     |-- ************************************************************************\n```\n\n\u003cbr /\u003e\n\n## API\n\nFor a fast set up, use this POSTMAN file: [api_sample]([api_sample](https://github.com/app-generator/api-unified-definition/blob/main/api.postman_collection.json))\n\n\u003e **Register** - `api/users/register`\n\n```\nPOST api/users/register\nContent-Type: application/json\n\n{\n    \"username\":\"test\",\n    \"password\":\"pass\", \n    \"email\":\"test@appseed.us\"\n}\n```\n\n\u003cbr /\u003e\n\n\u003e **Login** - `api/users/login`\n\n```\nPOST /api/users/login\nContent-Type: application/json\n\n{\n    \"password\":\"pass\", \n    \"email\":\"test@appseed.us\"\n}\n```\n\n\u003cbr /\u003e\n\n\u003e **Logout** - `api/users/logout`\n\n```\nPOST api/users/logout\nContent-Type: application/json\nauthorization: JWT_TOKEN (returned by Login request)\n\n{\n    \"token\":\"JWT_TOKEN\"\n}\n```\n\n\u003cbr /\u003e\n\n---\n**[Laravel API Server](https://appseed.us/boilerplate-code/laravel-boilerplate)** - provided by AppSeed [App Generator](https://appseed.us)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fapi-server-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fapi-server-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fapi-server-laravel/lists"}