Download the PHP package bearlord/esd-yii without Composer

On this page you can find all versions of the php package bearlord/esd-yii. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package esd-yii

esd-yii

esd-yii是ESD【EasySwooleDistributed】的一个扩展、包含了pdo的plugin。

魔改了Yii2(v2.0.17)、已最小的改动兼容了ESD的用法。

魔改内容:

包含:Connection、Query、Model、ActiveRecord、Validator、I18n、 helpers、 Di、Component、Logger、Sectuirty、Cache、Redis、User、Identity、behaviors、events。

未包含内容:Request、Response、Controller、Router、View、data、Cookie、Session、Asset、Console、ErrorHandle、migrations等。

说明:

1.

Yii2是BSD协议。作者保留了原版协议、原作者、原注释。命名空间做了修改、部分代码注释与实际用法不一样、忽略注释中的命名空间即可、IDE可正常提示。

2.

初衷是想搬过来Query、Model、ActiveRecord、Validator、I18n。Component、Di必须包含。底层代码中有大量的Di、Logger、Cache部分、避免大幅改动、一并搬过来。behaviors、events也未做删除。

3.

Cache部分,去除了XCache、ApcCache、MemCache。

PHP7中未找到XCache的方法。

ESD中Redis是协程操作,如果用Memcache一样需要连接池与协程,不如直接用Redis的。

Redis Cache采用 yiisoft/yii2-redis 的扩展。链接部分改为ESD的Redis的连接池。

4.

Yii2的Request、Response、Cookie、Session,均替换成了ESD的。

CSRF TOKEN部分,迁移过来,未完全测试通过。[v0.1],前后端分离的项目,暂时不用担心。

原理:

启动ESD时,启动【ESD\Yii\PdoPlugin\PdoPlugin】插件,启动PDO连接池,同时运行YII2的Application单例

用法:

用法:

1配置

文件:resources/application-local.yml

配置redis、session,然后配置esd-yii部分。

参考Yii2的配置,按照YML的格式,进行填写即可。

Yii2的数据库链接,主从,主主连接也照搬过来了,同时每个主、从单独实现了连接池,数量通过参数poolMaxNumber设定。

【按要求,ESD的YML配置,key值不能用驼峰,需要转换为下划线。我为了尽量与Yii的一致,没有转。】

2. Query

语法与Yii2一样。

3.Model 与 Validator

文件:app\Model\YiiCustomer.php

Controller部分

4. 多语言

通过配置文件 resources/application-local.yml,esd-yii2的language可实现语言,用法、提示语与Yii2一样,未做修改。


All versions of esd-yii with dependencies

PHP Build Version
Package Version
Requires esd/esd-server Version ~0.1
ezyang/htmlpurifier Version ^4.10.0
cebe/markdown Version ^1.2.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bearlord/esd-yii contains the following files

Loading the files please wait ....