PHP code example of fproject / yii2-restx
1. Go to this page and download the library: Download fproject/yii2-restx 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/ */
fproject / yii2-restx example snippets
[
'class' => 'fproject\rest\UrlRule',
'controller' => 'user',
]
[
'class' => 'fproject\rest\UrlRule',
'controller' => ['user', 'post'],
'except' => ['delete'],
]