{"id":15524262,"url":"https://github.com/exussum12/trip-advisor","last_synced_at":"2025-06-15T11:06:47.272Z","repository":{"id":56980720,"uuid":"98821564","full_name":"exussum12/trip-advisor","owner":"exussum12","description":"PHP client for the reviews API","archived":false,"fork":false,"pushed_at":"2024-07-17T10:54:35.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T11:06:45.623Z","etag":null,"topics":["client","review","tripadvisor"],"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/exussum12.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}},"created_at":"2017-07-30T20:02:31.000Z","updated_at":"2024-07-17T10:53:55.000Z","dependencies_parsed_at":"2025-03-05T10:33:28.200Z","dependency_job_id":"f217456c-8e7b-4dd1-9a40-593fc891da2c","html_url":"https://github.com/exussum12/trip-advisor","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/exussum12/trip-advisor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exussum12%2Ftrip-advisor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exussum12%2Ftrip-advisor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exussum12%2Ftrip-advisor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exussum12%2Ftrip-advisor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exussum12","download_url":"https://codeload.github.com/exussum12/trip-advisor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exussum12%2Ftrip-advisor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259964327,"owners_count":22938724,"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":["client","review","tripadvisor"],"created_at":"2024-10-02T10:50:16.823Z","updated_at":"2025-06-15T11:06:47.247Z","avatar_url":"https://github.com/exussum12.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trip Advisor Review Client\n[![Build Status](https://travis-ci.org/exussum12/trip-advisor.svg?branch=master)](https://travis-ci.org/exussum12/trip-advisor)\n[![Coverage Status](https://coveralls.io/repos/github/exussum12/trip-advisor/badge.svg?branch=master)](https://coveralls.io/github/exussum12/trip-advisor?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/exussum12/trip-advisor/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/exussum12/trip-advisor/?branch=master)\n\n\nThis is designed to be an easy way in php to use the reviews API from TripAdvisor.\n\nThis can be installed using composer for example\n\n    composer require exussum12/trip-advisor\n    \n Then the most simple method of getting the reviews is as follows\n \n```php\n$reviews = new exussum12\\TripAdvisor\\Reviews('your key', 'your secret');\nforeach ($reviews-\u003eget() as $review) {\n    //handle review\n}\n```\n\nThe API is paged at a maximum of 1000 reviews per page, This is all handled transparently and will page internally\nonly requesting new data when it is required.\n\nYou can set the page size by doing `$reviews-\u003elimit(50);` This will request smaller chucks.\nIf you only want a certain size of data use `$reviews-\u003eget()-\u003egetArray()` which will only send one request.\n\nIf you are trying to update existing data, use a date range, eg  `$reviews-\u003esince(new DateTime('2017-01-01'))`\n\nThis will only return the newer reviews.\n# Options\nAll options can be chained, together for example\n\n```php\n$reviews-\u003eoffset(100)-\u003elimit(50)-\u003esince(new DateTime('2017-01-31'));\nforeach ($reviews-\u003eget() as $review) {\n    //handle review\n}\n```\n\n# Exceptions\nA few things can go wrong in this process, The exceptions are named as well as I can think of, All exceptions extend\nfrom `exussum12\\TripAdvisor\\Exceptions\\BaseException`.\n\nThe reviews which come back are immutable, So trying to write to any review will throw an exception (ImmutableObjectException)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexussum12%2Ftrip-advisor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexussum12%2Ftrip-advisor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexussum12%2Ftrip-advisor/lists"}