PHP code example of sunsgne / annotations

1. Go to this page and download the library: Download sunsgne/annotations 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/ */

    

sunsgne / annotations example snippets


#[AutoController(prefix: '/test')]
// 在此controller下定义的路由前缀都会为`prefix`参数