PHP code example of vojtasvoboda / oc-reservations-plugin
1. Go to this page and download the library: Download vojtasvoboda/oc-reservations-plugin 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/ */
vojtasvoboda / oc-reservations-plugin example snippets
$facade = App::make('vojtasvoboda.reservations.facade');
$facade->storeReservation(array $data);
$facade->getReservations();
$facede->getActiveReservations();
$facade->getReservedDates();
$facade->getReservationsByInterval(\Carbon\Carbon $from, \Carbon\Carbon $to);
$facade->isDateAvailable(\Carbon\Carbon $date);
<testsuites>
<testsuite name="Reservation Tests">
<directory>./plugins/vojtasvoboda/reservations/tests</directory>
</testsuite>
</testsuites>