{"id":39750959,"url":"https://github.com/fabyo0/booking-api","last_synced_at":"2026-01-18T11:25:49.613Z","repository":{"id":267972338,"uuid":"736696307","full_name":"fabyo0/booking-api","owner":"fabyo0","description":"A Laravel-based booking API designed to manage and handle property bookings efficiently. Built with modern development practices and a clean architecture.","archived":false,"fork":false,"pushed_at":"2025-07-26T23:06:32.000Z","size":2101,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T02:46:53.606Z","etag":null,"topics":["booking","booking-api","booking-system","laravel-booking"],"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/fabyo0.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2023-12-28T15:59:37.000Z","updated_at":"2025-07-26T23:06:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"58f939c0-7dd0-47e1-919d-9706c2950290","html_url":"https://github.com/fabyo0/booking-api","commit_stats":null,"previous_names":["fabyo0/booking-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fabyo0/booking-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabyo0%2Fbooking-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabyo0%2Fbooking-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabyo0%2Fbooking-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabyo0%2Fbooking-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabyo0","download_url":"https://codeload.github.com/fabyo0/booking-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabyo0%2Fbooking-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28535164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["booking","booking-api","booking-system","laravel-booking"],"created_at":"2026-01-18T11:25:49.532Z","updated_at":"2026-01-18T11:25:49.594Z","avatar_url":"https://github.com/fabyo0.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Booking API\n\n[![Run tests](https://github.com/fabyo0/booking-api/actions/workflows/test-suite.yml/badge.svg)](https://github.com/fabyo0/booking-api/actions/workflows/test-suite.yml)\u0026nbsp;\u0026nbsp;\u0026nbsp;\n[![Static Analysis](https://github.com/fabyo0/booking-api/actions/workflows/larastan-check.yml/badge.svg)](https://github.com/fabyo0/booking-api/actions/workflows/larastan-check.yml)\n\nA Laravel-based booking API designed to manage and handle property bookings efficiently. Built with modern development practices and a clean architecture.\n---\n\n## 🚀 Features\n\n- User authentication (registration, login, logout) with Laravel Sanctum\n- Property management for owners\n- Booking management for users\n- Integration with Spatie Media Library for photo handling\n- Simple property searching functionality\n- RESTful API with structured responses\n- End-to-end API documentation at `/docs/api`\n\n---\n\n## 🛠️ Requirements\n\n- PHP 8.1+\n- Composer\n- MySQL 5.7+\n- Node.js and npm (for front-end or asset handling via Vite)\n\n---\n\n## 🔧 Installation\n\nFollow the steps below to install and set up the project locally:\n\n1. **Clone the Repository**\n   ```bash\n   git clone https://github.com/fabyo0/booking-api.git\n   cd booking-api\n   ```\n\n2. **Install PHP Dependencies**\n   ```bash\n   composer install\n   ```\n\n3. **Install Node.js Dependencies**\n   ```bash\n   npm install\n   ```\n\n4. **Environment Setup**\n   Copy the `.env.example` file to `.env` and adjust the necessary settings:\n   ```bash\n   cp .env.example .env\n   ```\n\n    - Set up your database credentials\n    - Configure Mail \u0026 Queue settings if applicable (`MAIL_*`, `QUEUE_CONNECTION`)\n\n5. **Generate Application Key**\n   ```bash\n   php artisan key:generate\n   ```\n\n6. **Run Database Migrations**\n   ```bash\n   php artisan migrate\n   ```\n\n7. **Seed the Database (If Applicable)**\n   ```bash\n   php artisan db:seed\n   ```\n\n8. **Run the Application**\n   ```bash\n   php artisan serve\n   ```\n\n   Navigate to `http://127.0.0.1:8000` in your browser.\n\n---\n\n## 📖 API Endpoints\n\nThis application provides a comprehensive set of RESTful API endpoints scoped for public and owner-specific operations. Below is a summary of the key endpoints:\n\n### **Authentication**\n| HTTP Method | Endpoint                          | Description         |\n|-------------|-----------------------------------|---------------------|\n| `POST`      | `/api/v1/auth/register`           | User registration   |\n| `POST`      | `/api/v1/auth/login`              | User login          |\n| `POST`      | `/api/v1/logout`                  | User logout         |\n\n---\n\n### **Public**\n| HTTP Method | Endpoint                          | Description                                 |\n|-------------|-----------------------------------|---------------------------------------------|\n| `GET`       | `/api/v1/properties/{property}`   | View a specific property's details         |\n| `GET`       | `/api/v1/apartments/{apartment}`  | View a specific apartment's details (if applicable) |\n| `GET`       | `/api/v1/search`                 | Search properties based on filters         |\n\n---\n\n### **Owner Portal**\n| HTTP Method | Endpoint                          | Description                                 |\n|-------------|-----------------------------------|---------------------------------------------|\n| `GET`       | `/api/v1/owner/properties`        | List all properties owned by the user      |\n| `POST`      | `/api/v1/owner/properties`        | Add a new property                         |\n| `POST`      | `/api/v1/owner/{property}/photos` | Add photos to a property                   |\n| `POST`      | `/api/v1/owner/{property}/photos/{photo}/reorder/{newPosition}` | Reorder photos for a specific property     |\n\n---\n\n### **User Bookings**\n| HTTP Method | Endpoint                          | Description                                 |\n|-------------|-----------------------------------|---------------------------------------------|\n| `GET`       | `/api/v1/user/bookings`           | List all bookings for the authenticated user |\n| `POST`      | `/api/v1/user/bookings`           | Create a new booking                       |\n| `GET`       | `/api/v1/user/bookings/{booking}` | View a specific booking's details          |\n| `PUT`       | `/api/v1/user/bookings/{booking}` | Update a specific booking                  |\n| `DELETE`    | `/api/v1/user/bookings/{booking}` | Cancel/delete a specific booking           |\n\n---\n\n### **API Documentation**\nFull documentation for all API endpoints, input parameters, and response structures is available at:\n\n[http://127.0.0.1:8000/docs/api](http://127.0.0.1:8000/docs/api)\n\nYou can directly view the documentation in your browser.\n\n---\n\n## 🧪 Running Tests\n\nThe project comes with a PHPUnit test suite. To run tests:\n\n```bash\nphp artisan test\n```\n\n*Ensure the `.env.testing` file is properly configured before testing.*\n\n---\n\n## ✨ Key Packages\n\nThis API utilizes several industry-standard Laravel packages:\n\n| Package                                  | Description                                                      |\n|------------------------------------------|------------------------------------------------------------------|\n| [spatie/laravel-medialibrary](https://github.com/spatie/laravel-medialibrary) | Media uploads and handling                                       |\n| [laravel/sanctum](https://laravel.com/docs/10.x/sanctum)             | Authentication via tokens                                        |\n| [nunomaduro/larastan](https://github.com/nunomaduro/larastan)       | Static analysis for Laravel (improves code quality)              |\n| [barryvdh/laravel-ide-helper](https://github.com/barryvdh/laravel-ide-helper) | Auto-generating PHPDoc for autocomplete support                 |\n| [dedoc/scramble](https://github.com/dedoc/scramble)                | API documentation generator for Laravel                         |\n\n---\n\n## 🛡️ Security Vulnerabilities\n\nIf you discover any security vulnerability, please submit it [here](\u003csecurity-email-or-link\u003e) or contact the team directly.\n\n---\n\n## 📜 License\n\nThis project is open-source software licensed under the **MIT License**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabyo0%2Fbooking-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabyo0%2Fbooking-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabyo0%2Fbooking-api/lists"}