idci/booxi-client-bundle
最新稳定版本:v1.0.2
Composer 安装命令:
composer require idci/booxi-client-bundle
包简介
README 文档
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.
统计信息
- 总下载量: 131
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: CECILL-C
- 更新时间: 2025-05-13