{"id":22361341,"url":"https://github.com/kei-k23/laravel-ums-api","last_synced_at":"2026-01-31T03:02:48.909Z","repository":{"id":252213463,"uuid":"839763833","full_name":"Kei-K23/laravel-ums-api","owner":"Kei-K23","description":"Laravel 11 user management system API with Passport auth","archived":false,"fork":false,"pushed_at":"2024-08-09T04:07:31.000Z","size":77,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T16:45:03.622Z","etag":null,"topics":["api","laravel","passport","sqlite3","user-management"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"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/Kei-K23.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":"2024-08-08T09:26:49.000Z","updated_at":"2024-12-27T07:45:52.000Z","dependencies_parsed_at":"2024-08-08T11:45:17.431Z","dependency_job_id":"43f3a3fe-3c60-4c51-b494-4bd6bcc037e5","html_url":"https://github.com/Kei-K23/laravel-ums-api","commit_stats":null,"previous_names":["kei-k23/laravel-ums-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kei-K23/laravel-ums-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Flaravel-ums-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Flaravel-ums-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Flaravel-ums-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Flaravel-ums-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kei-K23","download_url":"https://codeload.github.com/Kei-K23/laravel-ums-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Flaravel-ums-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28927773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T02:59:34.861Z","status":"ssl_error","status_checked_at":"2026-01-31T02:59:05.369Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","laravel","passport","sqlite3","user-management"],"created_at":"2024-12-04T16:29:20.457Z","updated_at":"2026-01-31T03:02:48.893Z","avatar_url":"https://github.com/Kei-K23.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Employee Management API\n\nThis is a Laravel 11 backend API for managing customers. The API includes authentication via Laravel Passport and CRUD operations for employee records.\n\n## Requirements\n\n-   PHP \u003e= 8.0\n-   Composer\n-   Laravel \u003e= 10.x\n-   Laravel Passport\n-   MySQL or any other supported database\n\n## Installation\n\n1. **Clone the repository:**\n\n```bash\ngit clone https://github.com/Kei-K23/laravel-ums-api.git\n```\n\n2. **Navigate to the project directory:**\n\n```bash\ncd laravel-ums-api\n```\n\n3. **Install dependencies:**\n\n```bash\ncomposer install\n```\n\n4.  **Setup the environment variables:**\n\n    Copy the `.env.example` file to `.env` and configure your database and other settings.\n\n```bash\ncp .env.example .env\n```\n\n5. **Setup private and public key**\n\n    Setup your own env variables for private and public key in `.env` file for Laravel passport. Key generation website [https://cryptotools.net/rsagen](https://cryptotools.net/rsagen)\n\n6. **Generate application key:**\n\n```bash\nphp artisan key:generate\n```\n\n7.  **Migrate the database:**\n\n```bash\nphp artisan migrate\n```\n\n8.  **Generate passport keys:**\n\n```bash\nphp artisan passport:keys --force\n```\n\n9.  **Setup passport client:**\n\n```bash\nphp artisan passport:client --personal\n```\n\n10. **Run the server:**\n\n```bash\nphp artisan serve\n```\n\n## API Endpoints\n\n### Authentication\n\n-   **Register:** `POST http://localhost:8000/api/auth/register`\n\n    Registers a new user.\n\n#### Request payload\n\n```json\n{\n    \"name\": \"John Doe\",\n    \"email\": \"john@example.com\",\n    \"password\": \"your_password\"\n}\n```\n\n-   **Login:** `POST http://localhost:8000/api/auth/login`\n\n    Login user.\n\n#### Request payload\n\n```json\n{\n    \"email\": \"john@example.com\",\n    \"password\": \"your_password\"\n}\n```\n\n### Customer\n\n-   **Create new customer:** `POST http://localhost:8000/api/customers`\n\n    Create new customers.\n\n#### Request payload\n\n```json\n{\n    \"name\": \"nono\",\n    \"email\": \"nono1@gmail.com\",\n    \"position\": \"USER\",\n},\n```\n\n-   **Get all customers:** `GET http://localhost:8000/api/customers`\n\n    Get all customers.\n\n#### Response payload\n\n```json\n[\n    {\n        \"id\": 1,\n        \"name\": \"nono\",\n        \"email\": \"nono1@gmail.com\",\n        \"position\": \"USER\",\n        \"created_at\": \"2024-08-08T07:50:08.000000Z\",\n        \"updated_at\": \"2024-08-08T13:52:06.000000Z\"\n    },\n    ...\n]\n```\n\n-   **Get employee by id:** `GET http://localhost:8000/api/customers/1`\n\n    Get employee by id.\n\n#### Response payload\n\n```json\n{\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"nono\",\n        \"email\": \"nono1@gmail.com\",\n        \"position\": \"USER\",\n        \"created_at\": \"2024-08-08T07:50:08.000000Z\",\n        \"updated_at\": \"2024-08-08T13:52:06.000000Z\"\n    }\n}\n```\n\n-   **Edit/update the employee:** `PUT http://localhost:8000/api/customers/1`\n\n    Edit/update new employee.\n\n#### Request payload\n\n```json\n{\n    \"name\": \"nono Update\",\n    \"email\": \"nono1@gmail.com\",\n    \"position\": \"USER\",\n},\n```\n\n-   **Delete the customer:** `DELETE http://localhost:8000/api/customers/1`\n\n    Delete the customer.\n\n#### Response payload\n\n```json\n{\n    \"message\": \"Successfully deleted\",\n},\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkei-k23%2Flaravel-ums-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkei-k23%2Flaravel-ums-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkei-k23%2Flaravel-ums-api/lists"}