Download the PHP package wearesho-team/yii2-stateless without Composer
On this page you can find all versions of the php package wearesho-team/yii2-stateless. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wearesho-team/yii2-stateless
More information about wearesho-team/yii2-stateless
Files in wearesho-team/yii2-stateless
Download wearesho-team/yii2-stateless
More information about wearesho-team/yii2-stateless
Files in wearesho-team/yii2-stateless
Vendor wearesho-team
Package yii2-stateless
Short Description Stateless components factory for Yii2
License MIT
Package yii2-stateless
Short Description Stateless components factory for Yii2
License MIT
Please rate this library. Is it a good library?
Informations about the package yii2-stateless
Yii2 Stateless
This package provides single class Wearesho\Yii\Stateless\Factory
with:
getRedis
- returns Redis connection or null, depends on Redis\ConfigInterfacegetSession
- return\yii\web\Session
or\yii\redis\Session
, if Redis availablegetCache
- returns\yii\caching\FileCache
or\yii\redis\Cache
, if Redis availablegetDb
- returns\yii\db\Connection
depends on Db\ConfigInterface
Note:
- Redis\EnvironmentConfig implementation
Environment variables to make redis available:
- REDIS_HOSTNAME - required
- REDIS_DATABASE - required
- REDIS_PASSWORD - default empty
-
REDIS_PORT - default 6379
- Db\EnvironmentConfig implementation
Environment variables to instantiate database:
- 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
Installation
composer require wearesho-team/yii-stateless:^3.0
Usage
For advanced usage
License
MIT
All versions of yii2-stateless with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2.0
horat1us/environment-config Version ^1.2.1
yiisoft/yii2 Version ^2.0.14
yiisoft/yii2-redis Version ~2.0
horat1us/environment-config Version ^1.2.1
yiisoft/yii2 Version ^2.0.14
yiisoft/yii2-redis Version ~2.0
The package wearesho-team/yii2-stateless contains the following files
Loading the files please wait ....