lzo-media/travel-mint

There is no license information available for the latest version (dev-master) of this package.

dev-master 2020-08-25 13:29 UTC

This package is auto-updated.

Last update: 2022-04-25 16:35:21 UTC


README

This is a php client for scrapping data from the travel travelminit.ro website.

How to use

$factory = new TravelMintClient();

//number of pages
$data = $factory->extract(1,2);

foreach ($data as print_r($hotel){

    print_r($hotel->getTitle());
    print_r($hotel->getPhone());
    print_r($hotel->getImage());
    print_r($hotel->getPrice());
    print_r($hotel->getStreet());
    print_r($hotel->getCity());
    print_r($hotel->getRegion());
    print_r($hotel->getCountry());
    print_r($hotel->getLatitude());
    print_r($hotel->getLongitude());
    print_r($hotel->getHours());
    print_r($hotel->getPayments());
    print_r($hotel->getDescription());

}