{"id":18036669,"url":"https://github.com/tareq1988/lumen-starter","last_synced_at":"2025-03-27T08:30:45.146Z","repository":{"id":141689841,"uuid":"137512894","full_name":"tareq1988/lumen-starter","owner":"tareq1988","description":"Lumen framework starter app","archived":false,"fork":false,"pushed_at":"2018-06-23T08:17:11.000Z","size":76,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T10:51:08.186Z","etag":null,"topics":["authentication","laravel","lumen-framework"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tareq1988.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-06-15T17:03:35.000Z","updated_at":"2023-08-09T21:46:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1e4868a-0459-4c88-b21d-9c22908c6484","html_url":"https://github.com/tareq1988/lumen-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tareq1988%2Flumen-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tareq1988%2Flumen-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tareq1988%2Flumen-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tareq1988%2Flumen-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tareq1988","download_url":"https://codeload.github.com/tareq1988/lumen-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245809631,"owners_count":20676024,"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":["authentication","laravel","lumen-framework"],"created_at":"2024-10-30T12:13:53.710Z","updated_at":"2025-03-27T08:30:45.140Z","avatar_url":"https://github.com/tareq1988.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lumen Starter\n\nA starter package to use it with [Vue Lumen Starter](https://github.com/tareq1988/vue-lumen-starter).\n\n## Packages Added\n\n* [laravel-cors](https://github.com/barryvdh/laravel-cors)\n* [spatie/laravel-fractal](https://github.com/spatie/laravel-fractal)\n\n## Installation\n\n1. Clone the repository: `git clone https://github.com/tareq1988/lumen-starter.git`\n1. Copy `.env.example` as `.env` file and set the Database credentials\n1. Set approprite `APP_URL`. In case using with [Vue Lumen Starter](https://github.com/tareq1988/vue-lumen-starter), set it to the Vue App URL.\n1. Install Dependencies: `composer install`\n1. Run migration: `php artisan migrate`\n1. Run Seeder: `php artisan db:seed`\n\nDone!\n\n## REST API\n\n### Authentication\n\n\u003cdetails\u003e\n\u003csummary\u003eView contents\u003c/summary\u003e\nSend Authorization bearer token to send authenticated request\n\n```http\nAuthorization: bearer \u003cAPI_TOKEN\u003e\n```\n\u003c/details\u003e\n\n### Register an User\n\n\u003cdetails\u003e\n\u003csummary\u003eView contents\u003c/summary\u003e\n\n`[POST /register]`\n\nParams:\n\n```\n - `first_name` (string) - Users first name\n - `last_name` (string) - The last name\n - `email` (string) - The user email\n - `password` (string) - The password\n - `password_confirmation` (string) - The confirmation password\n```\n\nResponse Code:\n - ✅ 201: On registration success\n - ❌ 422: On validation failure\n\n\u003c/details\u003e\n\n### Login\n\n\u003cdetails\u003e\n\u003csummary\u003eView contents\u003c/summary\u003e\n\n`[POST /login]`\n\nParams:\n\n```\n - `email` (string) - The user email\n - `password` (string) - The password\n```\n\nResponse Code:\n - ✅ 200: On login success\n - ❌ 401: On failure\n\n\u003c/details\u003e\n\n### Fetch current user profile\n\n\u003cdetails\u003e\n\u003csummary\u003eView contents\u003c/summary\u003e\n\n`[GET /me]`\n\nResponse Code:\n - ✅ 200: On success\n - ❌ 401: On failure\n\n\u003c/details\u003e\n\n### Update the current user profile\n\n\u003cdetails\u003e\n\u003csummary\u003eView contents\u003c/summary\u003e\n\n`[POST /me]`\n\nParams:\n\n```\n - `first_name` (string) - Users first name\n - `last_name` (string) - The last name\n```\n\nResponse Code:\n - ✅ 200: On login success\n - ❌ 422: On validation failure\n\n\u003c/details\u003e\n\n### Change the password\n\n\u003cdetails\u003e\n\u003csummary\u003eView contents\u003c/summary\u003e\n\n`[POST /me/password]`\n\nParams:\n\n```\n - `current` (string) - The current password\n - `password` (string) - New password\n - `password_confirmation` (string) - The new confirmation password\n```\n\nResponse Code:\n - ✅ 200: On success\n - ❌ 422: On validation failure\n\n\u003c/details\u003e\n\n### Request Password Reset\n\n\u003cdetails\u003e\n\u003csummary\u003eView contents\u003c/summary\u003e\n\n`[POST /password/request]`\n\nParams:\n\n```\n - `email` (string) - The email\n```\n\nResponse Code:\n - ✅ 200: On success\n - ❌ 422: On validation failure\n\n\u003c/details\u003e\n\n### Reset Password\n\n\u003cdetails\u003e\n\u003csummary\u003eView contents\u003c/summary\u003e\n\n`[POST /password/reset]`\n\nParams:\n\n```\n - `email` (string) - The email\n - `token` (string) - The forgot password token\n - `password` (string) - New password\n - `password_confirmation` (string) - The new confirmation password\n```\n\nResponse Code:\n - ✅ 200: On success\n - ❌ 422: On validation failure\n\n\u003c/details\u003e\n\n## Credits\n\n[Tareq Hasan](https://tareq.co)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftareq1988%2Flumen-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftareq1988%2Flumen-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftareq1988%2Flumen-starter/lists"}