PHP code example of umbalaconmeogia / yii2-api

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

    

umbalaconmeogia / yii2-api example snippets


'migrate' => [
	'class' => 'yii\console\controllers\MigrateController',
	'migrationPath' => [
		'@console/migrations',
		'@vendor/umbalaconmeogia/yii2-api/src/migrations',
	],
],

'controllerMap' => [
	'migrate' => [
		'class' => 'yii\console\controllers\MigrateController',
		'migrationPath' => null, // disable non-namespaced migrations if app\migrations is listed below
		'migrationNamespaces' => [
			'console\migrations', // Common migrations for the whole application
			'umbalaconmeogia\yii2api\migrations', // Migrations for the specific extension
		],
	],
],

'controllerMap' => [
	'migrate' => [
		'class' => 'yii\console\controllers\MigrateController',
		'migrationPath' => null, // disable non-namespaced migrations if app\migrations is listed below
		'migrationNamespaces' => [
			'app\migrations', // Common migrations for the whole application
			'umbalaconmeogia\yii2api\migrations', // Migrations for the specific extension
		],
	],
],