PHP code example of projectivemotion / wizzair-scraper

1. Go to this page and download the library: Download projectivemotion/wizzair-scraper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

projectivemotion / wizzair-scraper example snippets


~/projects/php/WizzairScraper $ php -f demo/wizzair.php BFS VNO 2016-12-07 2016-12-09
Using Parameters: BFS - VNO / 2016-12-07 - 2016-12-09

{
    "outboundFlights": [],
    "returnFlights": [
        {
            "departureStation": "VNO",
            "arrivalStation": "BFS",
            "carrierCode": "W6",
            "flightNumber": "8013",
            "flightSellKey": "W6~8013~ ~~VNO~12\/09\/2016 18:15~BFS~12\/09\/2016 19:30~",
            "departureDateTime": "2016-12-09T18:15:00",
            "arrivalDateTime": "2016-12-09T19:30:00",
            "fares": [
                {
                    "fareSellKey": "0~PW~~PWZZC~WZZC~~10~X",
                    "basePrice": {
                        "amount": 17.49,
                        "currencyCode": "GBP"
                    },
                    "discountedPrice": {
                        "amount": 17.49,
                        "currencyCode": "GBP"
                    },
                    "bundle": "BASIC",
                    "fareDiscountType": "none",
                    "wdc": true
                },
                {
                    "fareSellKey": "0~PW~~PWZZC~WZZC~~10~X",
                    "basePrice": {
                        "amount": 35.49,
                        "currencyCode": "GBP"
                    },
                    "discountedPrice": {
                        "amount": 35.49,
                        "currencyCode": "GBP"
                    },
                    "bundle": "MIDDLE",
                    "fareDiscountType": "none",
                    "wdc": true
                },
                {
                    "fareSellKey": "0~PW~~PWZZC~WZZC~~10~X",
                    "basePrice": {
                        "amount": 52.74,
                        "currencyCode": "GBP"
                    },
                    "discountedPrice": {
                        "amount": 52.74,
                        "currencyCode": "GBP"
                    },
                    "bundle": "PLUS",
                    "fareDiscountType": "none",
                    "wdc": true
                },
                {
                    "fareSellKey": "0~P~~PREG~REG1~~8~X",
                    "basePrice": {
                        "amount": 25.99,
                        "currencyCode": "GBP"
                    },
                    "discountedPrice": {
                        "amount": 25.99,
                        "currencyCode": "GBP"
                    },
                    "bundle": "BASIC",
                    "fareDiscountType": "none",
                    "wdc": false
                },
                {
                    "fareSellKey": "0~P~~PREG~REG1~~8~X",
                    "basePrice": {
                        "amount": 43.99,
                        "currencyCode": "GBP"
                    },
                    "discountedPrice": {
                        "amount": 43.99,
                        "currencyCode": "GBP"
                    },
                    "bundle": "MIDDLE",
                    "fareDiscountType": "none",
                    "wdc": false
                },
                {
                    "fareSellKey": "0~P~~PREG~REG1~~8~X",
                    "basePrice": {
                        "amount": 61.24,
                        "currencyCode": "GBP"
                    },
                    "discountedPrice": {
                        "amount": 61.24,
                        "currencyCode": "GBP"
                    },
                    "bundle": "PLUS",
                    "fareDiscountType": "none",
                    "wdc": false
                }
            ],
            "infantLimitExceeded": {
                "limitExceeded": false,
                "isBlocking": true
            },
            "wheelchairLimitExceeded": {
                "limitExceeded": false,
                "isBlocking": true
            },
            "oxyLimitExceeded": {
                "limitExceeded": false,
                "isBlocking": true
            },
            "sportsEquipmentLimitExceeded": {
                "limitExceeded": false,
                "isBlocking": false
            }
        }
    ],
    "outboundBundles": null,
    "returnBundles": [
        {
            "code": "BASIC",
            "ancillaryServices": [
                "bundle-ancillary-online-check-in",
                "bundle-ancillary-small-cabin-baggage"
            ]
        },
        {
            "code": "MIDDLE",
            "ancillaryServices": [
                "bundle-ancillary-online-check-in",
                "bundle-ancillary-seat-selection",
                "bundle-ancillary-large-cabin-baggage",
                "bundle-ancillary-light-checked-in-baggage"
            ]
        },
        {
            "code": "PLUS",
            "ancillaryServices": [
                "bundle-ancillary-seat-selection",
                "bundle-ancillary-large-cabin-baggage",
                "bundle-ancillary-heavy-checked-in-baggage",
                "bundle-ancillary-wizz-flex",
                "bundle-ancillary-wizz-account-refund",
                "bundle-ancillary-priority-boarding",
                "bundle-ancillary-small-personal-item",
                "bundle-ancillary-airport-check-in"
            ]
        }
    ],
    "currencyCode": "GBP",
    "arrivalStationCurrencyCode": "EUR",
    "isDomestic": false
}