jeancsil/skyscanner-vigilant-bundle

Provides constant tracking for the best prices for your next trip

1.0.16 2016-09-19 21:55 UTC

This package is not auto-updated.

Last update: 2024-04-27 17:37:12 UTC


README

Skyscanner Vigilant Bundle

Latest Stable Version

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.