Download the PHP package maxbond/allcultureapi without Composer
On this page you can find all versions of the php package maxbond/allcultureapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download maxbond/allcultureapi
More information about maxbond/allcultureapi
Files in maxbond/allcultureapi
Download maxbond/allcultureapi
More information about maxbond/allcultureapi
Files in maxbond/allcultureapi
Vendor maxbond
Package allcultureapi
Short Description An easy to use API for all.culture.ru
License MIT
Package allcultureapi
Short Description An easy to use API for all.culture.ru
License MIT
Keywords culture.ruall.culture.ru
Please rate this library. Is it a good library?
Informations about the package allcultureapi
AllCultureAPI
PHP API wrapper for russian culture events database all.culture.ru
Usage:
install via composer: composer require maxbond/allcultureapi
use Maxbond\AllCultureAPI\Api;
use Maxbond\AllCultureAPI\CurlRequest;
$api = new Api(new CurlRequest);
$dateTime = new DateTime();
$periodStart = $dateTime->format('Y-m-d');
$dateTime->add(new DateInterval('P1D'));
$periodEnd = $dateTime->format('Y-m-d');
//Set limit to 10 events
$api->setLimit(10);
//Events from date
$api->setStart($periodStart);
//Events to date
$api->setEnd($periodEnd);
try {
$events = $api->getEvents();
} catch (Exception $e) {
echo 'error:'.$e->getMessage();
}
var_dump($events);
All versions of allcultureapi with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7
The package maxbond/allcultureapi contains the following files
Loading the files please wait ....