jeancsil / skyscanner-vigilant-bundle
Provides constant tracking for the best prices for your next trip
Installs: 42
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.5
- guzzlehttp/guzzle: 6.2.*
- monolog/monolog: 1.9.*
- symfony/class-loader: ^2.3 || ^3.0
- symfony/config: ^2.3.9 || ^3.0
- symfony/console: ^2.3 || ^3.0
- symfony/dependency-injection: ^2.3.3 || ^3.0
- symfony/http-foundation: ^2.3 || ^3.0
- symfony/property-access: ^2.3 || ^3.0
- symfony/symfony: ~2.8 || ~3.1
- symfony/validator: ^2.3 || ^3.0
README
Symfony2 Bundle that provides console commands to keep watching flight deals for you!
Install
composer require jeancsil/skyscanner-vigilant-bundle
OR
Add in your composer.json:
"require": { "jeancsil/skyscanner-vigilant-bundle": "1.*" }
Enable the bundle:
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( ... new Jeancsil\Skyscanner\VigilantBundle\JeancsilSkyscannerVigilantBundle(), ... ); } }
Add these configurations in your parameters.yml file:
jeancsil.skyscanner.api.host: 'http://partners.api.skyscanner.net' jeancsil.skyscanner.api.key: YOUR_API_KEY jeancsil.skyscanner.http.client.config: base_uri: '%jeancsil.skyscanner.api.host%' timeout: 30 headers: Content-Type: application/x-www-form-urlencoded Accept: application/json User-Agent: 'Mozilla/5.0 (Windows NT 10.0; WOW64) (OPTIONAL)'
Documentation
Simply run bin/console skyscanner:vigilant:live_prices --help
to get it running.
Example:bin/console skyscanner:vigilant:live_prices --from=GRU-sky --to=FRA-sky --departure=2016-10-01 --arrival=2016-11-01 --country=BR --currency=BRL --locale=pt-BR
.
You might want to put it in your crontab as well. (and go grab a beer!)
Support
For general support and questions, find me on Twitter as @jeancsil.
Bugs and suggestions: open a ticket.
License
This package is available under the MIT license.