inquid / yii2-bla-bla-car
Bla bla car Api client for yii2 :)
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2-httpclient: ~2.0.0
This package is auto-updated.
Last update: 2024-11-29 05:09:44 UTC
README
yii2-bla-bla-car
UNDER DEVELOPMENT! NOT READY FOR PRODUCTION!
Librería para usar el API de https://dev.blablacar.com/
Instalación
La forma preferida para instalar esta extensión es a través de composer.
Para instalar, ejecutar
$ php composer.phar require inquid/yii2-bla-bla-car
or agregar
"inquid/yii2-bla-bla-car": "*"
en la sección "require" de tu composer.json.
Configuración
Configurar como componente
$config = [ // ... 'components' => [ 'bla-bla-car' => [ 'class' => 'inquid\yii2-bla-bla-car\BlaBlaCar', 'apiKey' => 'API_KEY' ],
Uso
// Lista de Clientes $response = Yii::$app->blablacar->getTrips([ 'from'=>'', 'to'=>'' ]); print_r($response);