2017 © Pedro Peláez
 

library yii2-stateless

Stateless components factory for Yii2

image

wearesho-team/yii2-stateless

Stateless components factory for Yii2

  • Tuesday, May 22, 2018
  • by Horat1us
  • Repository
  • 3 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 20 Versions
  • 0 % Grown

The README.md

Yii2 Stateless

Latest Stable Version Total Downloads Build Status codecov, (*1)

This package provides single class Wearesho\Yii\Stateless\Factory with: - getRedis - returns Redis connection or null, depends on Redis\ConfigInterface - getSession - return \yii\web\Session or \yii\redis\Session, if Redis available - getCache - returns \yii\caching\FileCache or \yii\redis\Cache, if Redis available - getDb - returns \yii\db\Connection depends on Db\ConfigInterface, (*2)

Note: - Redis\ConfigInterface have Redis\EnvironmentConfig implementation, (*3)

Environment variables to make redis available:, (*4)

Environment variables to instantiate database:, (*7)

  • DB_HOST - database host or ip
  • DB_NAME - database name
  • DB_USER - database user
  • DB_PORT - port for connection (default 3306 for MySQL, 5432 for PostgreSQL)
  • DB_TYPE - type of database (default pgsql)
  • DB_PASSWORD - database user password (default null)

You can copy .env.example to your project, (*8)

Installation

composer require wearesho-team/yii-stateless:^3.0, (*9)

Usage

<?php
// your bootstrap.php file

use Wearesho\Yii\Stateless;

Stateless\Configurator::configure(\Yii::$container);
<?php
// your main.php file
use Wearesho\Yii\Stateless;

$config = [
    // Your Application configuration 
];

return array_merge(Stateless\Configurator::config(\Yii::$container), $config);

For advanced usage, (*10)

License

MIT, (*11)

The Versions

22/05 2018

dev-master

9999999-dev

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

22/05 2018

3.1.0

3.1.0.0

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

11/05 2018

dev-tests/configurator

dev-tests/configurator

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

11/05 2018

dev-tests/factory

dev-tests/factory

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

03/05 2018

3.0.1

3.0.1.0

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

03/05 2018

3.0.0

3.0.0.0

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

20/04 2018

dev-release/3.0.0

dev-release/3.0.0

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

20/04 2018

3.0.0-BETA5

3.0.0.0-beta5

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

20/04 2018

3.0.0-BETA4

3.0.0.0-beta4

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

20/04 2018

3.0.0-BETA3

3.0.0.0-beta3

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

20/04 2018

3.0.0-BETA2

3.0.0.0-beta2

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

20/04 2018

3.0.0-BETA

3.0.0.0-beta

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Letnikow

06/04 2018

2.0.1

2.0.1.0

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

by Alexander Letnikow

06/04 2018

2.0.0

2.0.0.0

Stateless components factory for Yii2

  Sources   Download

MIT

The Requires

 

by Alexander Letnikow

02/04 2018

1.0.5

1.0.5.0

CacheInterface factory for Yii2

  Sources   Download

propriertary

The Requires

 

by Alexander Letnikow

02/04 2018

1.0.4

1.0.4.0

CacheInterface factory for Yii2

  Sources   Download

propriertary

The Requires

 

by Alexander Letnikow

02/04 2018

1.0.3

1.0.3.0

CacheInterface factory for Yii2

  Sources   Download

propriertary

The Requires

 

by Alexander Letnikow

02/04 2018

1.0.2

1.0.2.0

CacheInterface factory for Yii2

  Sources   Download

propriertary

The Requires

 

by Alexander Letnikow

02/04 2018

1.0.1

1.0.1.0

CacheInterface factory for Yii2

  Sources   Download

propriertary

The Requires

 

by Alexander Letnikow

02/04 2018

1.0.0

1.0.0.0

CacheInterface factory for Yii2

  Sources   Download

propriertary

The Requires

 

by Alexander Letnikow