PHP code example of taguz91 / yii2-api-template

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

    

taguz91 / yii2-api-template example snippets

bash
# Init the application dev or prod
$ php yii init
# Generate tables in sqlite 
$ php run migrate
# Run the application
$ php yii serve --docroot="api/web/"