PHP code example of chinahub / yii2-shortlink

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

    

chinahub / yii2-shortlink example snippets


'controllerMap' => [
	'api' => [
		'class' => 'chinahub\shortlink\ApiController'
	],
]

http://i-web.com/api