Download the PHP package dionyang25/yii2-swoole-plugin without Composer

On this page you can find all versions of the php package dionyang25/yii2-swoole-plugin. 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 yii2-swoole-plugin

yii2-swoole-plugin

一个用于在swoole上运行yii2项目的composer包,类似的其实是有的,自己写了一个简单版的。

composer包安装

composer包地址

https://packagist.org/packages/dionyang25/yii2-swoole-plugin

如何启动

  1. 配置console设置(config/console.php),在component中添加组件

这里可以加入对swoole的配置,支持的配置如下(下图为默认配置)

  1. 准备入口文件,该入口文件主要是设置你的YII应用服务器的启动参数,最终返回一个合并的启动数组配置即可

  2. 添加console启动控制器

  3. 需要修改nginx配置如下,注意,如果在yii2中启用pathinfo模式,那么三个额外的header必须要添加,否则无法正确匹配路由。 示例如下:

  4. 控制台使用如下命令启动

All versions of yii2-swoole-plugin with dependencies

PHP Build Version
Package Version
No informations.
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 dionyang25/yii2-swoole-plugin contains the following files

Loading the files please wait ....