PHP Classes

File: tests/testapp/web/index.php

Recommend this page to a friend!
  Classes of Insolita   Yii2 Fractal   tests/testapp/web/index.php   Download  
File: tests/testapp/web/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Yii2 Fractal
Components to implement API based on JSON:API
Author: By
Last change:
Date: 2 months ago
Size: 324 bytes
 

Contents

Class file image Download
<?php

defined
('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'test');

require
dirname(__DIR__, 3) . '/vendor/autoload.php';
require
dirname(__DIR__, 3) . '/vendor/yiisoft/yii2/Yii.php';

$config = require dirname(__DIR__) . '/config/api.php';

(new
yii\web\Application($config))->run();