PHP code example of chimera / mapping
1. Go to this page and download the library: Download chimera/mapping 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/ */
chimera / mapping example snippets
declare(strict_types=1);
namespace MyApi\Creation;
use Chimera\Mapping as Chimera;
/**
* @Chimera\Routing\CreateEndpoint(path="/books", command=AddToCollection::class, name="book.create", redirectTo="book.fetch_one")
* @Chimera\ServiceBus\CommandHandler(handles=AddToCollection::class)
*/
final class AddToCollectionHandler
{
// ...
}