PHP code example of alchemy / rest-bundle
1. Go to this page and download the library: Download alchemy/rest-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/ */
alchemy / rest-bundle example snippets
class MyController
{
public function index(\DateTimeInterface $from, \DateTimeInterface $to)
{
// Do something with those dates...
}
}
class MyController
{
public function index(PaginationOptions $pagination, SortOptions $sort)
{
// Do something...
}
}