redzjovi / php-hotelbeds-hotel
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 3
Open Issues: 0
pkg:composer/redzjovi/php-hotelbeds-hotel
Requires
- guzzlehttp/guzzle: 6.*.*
Requires (Dev)
- phpunit/phpunit: 5.*.*
- symfony/dotenv: 3.*.*
- symfony/var-dumper: 3.*.*
This package is auto-updated.
Last update: 2025-10-16 16:46:24 UTC
README
Installation
Composer
composer require redzjovi/php-hotelbeds-hotel:dev-master
Laravel
You can publish the migration
and the config/hotelbeds-php.php
with:
php artisan hotelbeds-hotel:install
How to test with PHPUnit
phpunit --filter /test_get_languages$/ phpunit --group types
Add new connection database hotelbeds-hotel
in config/database.php
.
API
Hotel Content API
Types
Languages
use RedzJovi\HotelbedsHotel\Client; use Redzjovi\HotelbedsHotel\Requests\Types\Languages\IndexRequest as TypesLanguagesIndexRequest; $client = new Client( getenv('HOTELBEDS_HOTEL_API_KEY'), getenv('HOTELBEDS_HOTEL_SECRET'), getenv('HOTELBEDS_HOTEL_ENVIRONMENT') ); $request = new TypesLanguagesIndexRequest(); $response = $$client->getLanguages($request);