2017 © Pedro Peláez
 

yii2-extension base

The Yii2 base extension to build a modular application platform

image

colibri-platform/base

The Yii2 base extension to build a modular application platform

  • Friday, February 16, 2018
  • by ilhooq
  • Repository
  • 1 Watchers
  • 0 Stars
  • 39 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Colibri base

This is the base extension to build quickly a modular application platform on Yii2 framework., (*1)

Features

  • Environment based configuration
  • Ready to use Application component
  • Web installer to initialize configuration file, database and admin user.
  • User management using dektium/user.
  • Rbac management using dektrium/rbac.
  • Settings management using pheme/settings.

Install

Run the following command to install :, (*2)

composer require colibri-platform/base

Use

This exemple start a Colibri application in your index.php, (*3)

require(__DIR__ . '/vendor/autoload.php');

if (!is_dir(__DIR__ . '/assets')) {
    mkdir(__DIR__ . '/assets');
}

\colibri\base\Env::load(__DIR__ . '/.env');

defined('YII_DEBUG') or define('YII_DEBUG', (boolean) getenv('YII_DEBUG'));
defined('YII_ENV') or define('YII_ENV', getenv('YII_ENV')? getenv('YII_ENV') : 'prod');

require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');

$config = [
    'id' => 'colibri-test',
    'name' => 'Colibri test',
    'basePath' => __DIR__
];

(new \colibri\base\WebApplication($config))->run();

Then start the local php web server to run the application :, (*4)

php -S localhost:8080

Finally go to http://127.0.0.1:8080/ in your browser and follow instruction to finish installation., (*5)

The Versions

16/02 2018

dev-master

9999999-dev https://github.com/ColibriPlatform/base

The Yii2 base extension to build a modular application platform

  Sources   Download

MIT

The Requires

 

yii2 platform modular

16/02 2018