idci / booxi-client-bundle
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.1
- eightpoints/guzzle-bundle: ^8.0
- psr/log: ^1|^2|^3
- symfony/cache: ^6.0
- symfony/console: ^6.0
- symfony/dependency-injection: ^6.0
- symfony/http-kernel: ^6.0
- symfony/options-resolver: ^6.0
- symfony/serializer-pack: ^1.0
This package is auto-updated.
Last update: 2025-05-15 19:36:55 UTC
README
Symfony bundle that provides an api client for Booxi
Installation
Install this bundle using composer :
composer require idci/booxi-client-bundle
Configuration
Create an Eightpoint Guzzle HTTP client
In the file config/packages/eight_points_guzzle.yaml
, create a Booxi API client :
eight_points_guzzle: clients: booxi_api: base_url: 'https://%env(resolve:BOOXI_HOST)%/booking/v1/'
Configure a cache pool
Create a dedicated Booxi cache, or use any of your existing pools :
In the file config/services.yaml
, register your cache pool :
# Redis example app.cache.adapter.redis.booxi: parent: 'cache.adapter.redis' tags: - { name: 'cache.pool', namespace: 'Booxi' }
In the file config/packages/cache.yaml
, define your cache pool :
framework: cache: # ... pools: cache.booxi: public: true
Configure booxi-client-bundle
In config/packages/
, create a idci_booxi_client.yaml
file :
idci_booxi_client: guzzle_http_client_service_alias: 'eight_points_guzzle.client.booxi_api' cache_pool_service_alias: 'cache.booxi' api_key: '%env(string:BOOXI_API_KEY)%' partner_key: '%env(string:BOOXI_PARTNER_KEY)%'
Then, add these environment variable in your .env
file :
###> idci/booxi-client-bundle ###
BOOXI_HOST='api.booxi.eu'
BOOXI_API_KEY=
BOOXI_PARTNER_KEY=
###< idci/booxi-client-bundle ###
To retrieve more informations about Booxi API, go to Booxi API or EU Booxi API.