inquid / yii2-bla-bla-car
yii2 的 Bla bla car API 客户端 :)
dev-master
2018-12-03 06:44 UTC
Requires
- yiisoft/yii2-httpclient: ~2.0.0
This package is auto-updated.
Last update: 2024-08-29 04:41:54 UTC
README
yii2-bla-bla-car
正在开发中!尚未准备好投入生产!
用于使用https://dev.blablacar.com/的API的库
安装
安装此扩展的首选方式是通过composer。
要安装,请执行
$ php composer.phar require inquid/yii2-bla-bla-car
或添加
"inquid/yii2-bla-bla-car": "*"
到你的 composer.json 文件的 "require" 部分。
配置
作为组件配置
$config = [ // ... 'components' => [ 'bla-bla-car' => [ 'class' => 'inquid\yii2-bla-bla-car\BlaBlaCar', 'apiKey' => 'API_KEY' ],
使用
// Lista de Clientes $response = Yii::$app->blablacar->getTrips([ 'from'=>'', 'to'=>'' ]); print_r($response);