PHP code example of maidmaid / guidle

1. Go to this page and download the library: Download maidmaid/guidle 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/ */

    

maidmaid / guidle example snippets




use Maidmaid\Guidle\Guidle;

$guidle = new Guidle('http://www.guidle.com/...');

foreach ($guidle->getOffers() as $o) {
    // title
    $d = $guidle->getOfferDetail($o);
    echo $guidle->getOfferDetailTitle($d)."\n";;

    // dates
    foreach ($guidle->getOfferDates($o) as $d) {
        echo $guidle->getOfferStartDate($d)."\n";
        echo $guidle->getOfferEndDate($d)."\n";
        echo implode(' ', $guidle->getOfferWeekdaysDate($d))."\n";
    }

    echo "\n";
}