PHP code example of cryode / annotaction
1. Go to this page and download the library: Download cryode/annotaction 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/ */
cryode / annotaction example snippets
use Cryode\Annotaction\Annotation\Route;
/**
* @Route("/blog/post/{postId}", middleware="web", name="blog.post.view")
*/
final class ViewBlogPost
{
public function __invoke($postId)
{
// ...
}
}