{"id":30041655,"url":"https://github.com/agkloop/tajchallenge","last_synced_at":"2026-04-26T19:32:00.944Z","repository":{"id":120978673,"uuid":"126662752","full_name":"agkloop/TajChallenge","owner":"agkloop","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-25T17:47:27.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T07:51:35.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/agkloop.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,"zenodo":null}},"created_at":"2018-03-25T03:53:59.000Z","updated_at":"2018-04-06T16:11:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"b54ee2ef-d7b0-4d31-be88-badb0d0bad38","html_url":"https://github.com/agkloop/TajChallenge","commit_stats":null,"previous_names":["agkloop/tajchallenge","ahmedgoudaa/tajchallenge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agkloop/TajChallenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agkloop%2FTajChallenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agkloop%2FTajChallenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agkloop%2FTajChallenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agkloop%2FTajChallenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agkloop","download_url":"https://codeload.github.com/agkloop/TajChallenge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agkloop%2FTajChallenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32310804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"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":[],"created_at":"2025-08-07T02:51:12.819Z","updated_at":"2026-04-26T19:32:00.902Z","avatar_url":"https://github.com/agkloop.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tajawal Hotel Rest api task \n[![Build Status](https://travis-ci.org/AhmedGoudaa/TajawalHotelTask.svg?branch=master)](https://travis-ci.org/AhmedGoudaa/TajawalHotelTask) \u003ca href=\"https://codeclimate.com/github/AhmedGoudaa/TajawalHotelTask/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/4a94f2424b03afc677c7/maintainability\" /\u003e\u003c/a\u003e\n\nThis RESTful API to allow search in the given inventory by any of the following:\n- Hotel [Name] =\u003e TajawalHotelTask/public/search?name=Le Meridien \n- Destination [City] =\u003e TajawalHotelTask/public/search?city=cairo\n- Price range [ex: $100:$200] =\u003e TajawalHotelTask/public/search?priceFrom=100\u0026priceTo=200\n- Date range [ex: 10-10-2020:15-10-2020] =\u003e TajawalHotelTask/public/search?dateFrom=10-10-2020\u0026dateTo=15-10-2020\n\nand allow sorting by:\n\n- Hotel Name   =\u003e TajawalHotelTask/public/search?orderBy=name\u0026orderType=asc\n- Price        =\u003e TajawalHotelTask/public/search?orderBy=price\u0026orderType=desc\n\n\nand allow multi search criterias and sorting\n- [Name] [price range] [date range] [Price Sort desc] TajawalHotelTask/public/search?name=Le Meridien \u0026 priceFrom=70 \u0026 priceTo=100 \u0026 dateFrom=01-10-2020 \u0026 dateTo=12-10-2020 \u0026 orderBy=price \u0026 orderType=desc\n    \n    \n### Project structure\n\n- Presentation layer -\u003e [lumen controllers](https://github.com/AhmedGoudaa/TajawalHotelTask/blob/master/app/Http/Controllers/HotelController.php)\n- Tajawal Bounded Context . separate  module for hotel search and ordering [tajawalBContext](https://github.com/AhmedGoudaa/TajawalHotelTask/tree/master/tajawalBContext).\n    - [Contracts ](https://github.com/AhmedGoudaa/TajawalHotelTask/tree/master/tajawalBContext/Contracts ) has all contracts or interfaces.\n    - [Base layer ](https://github.com/AhmedGoudaa/TajawalHotelTask/tree/master/tajawalBContext/Base)that has all abstractions and My custom laravel [collection](https://github.com/AhmedGoudaa/TajawalHotelTask/blob/master/tajawalBContext/Base/Collection.php).\n    - [Domain layer](https://github.com/AhmedGoudaa/TajawalHotelTask/tree/master/tajawalBContext/Domain) (business layer) that has all search and ordering logic with domain models.\n        - Models [Hotel].\n        - Services [HotelService - HotelCriteriaCreator].\n    - [Infrastructure](https://github.com/AhmedGoudaa/TajawalHotelTask/tree/master/tajawalBContext/Infrastructure) has all libraries dependent code\n        - [Criterias] ordering and sorting\n        - [Repositories] HotelRepo\n        - [Validation Rules] search rules\n        - [HotelDataSource]  fetching hotels using rest api\n        - [HotelCollectionMapper] Mapping hotels fetched from rest api from json to a Collection of Hotel object\n        - [ValidatorService] Validation request data by laravel validation with [Validation Rules]\n        \n        \n        \n\n\n### Installation : \n    - composer install in the project directory\n    \n### test :\n    - ./vendor/bin/phpunit  in the project directory\n        ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagkloop%2Ftajchallenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagkloop%2Ftajchallenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagkloop%2Ftajchallenge/lists"}