PHP code example of domtomproject / wubookapi-bundle

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

    

domtomproject / wubookapi-bundle example snippets


new Kamwoz\WubookAPIBundle\WubookAPIBundle(),

//some controller
//fetch bookings from last week
$dateFrom = new \DateTime("-1 week");
$dateTo = new \DateTime();
$bookingArrays = $this->get('wubook_api.booking_handler')->fetchBookings($dateFrom, $dateTo);