Download the PHP package thinkcmf/cmf-swoole without Composer

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

ThinkCMF Swoole 扩展

本扩展是基于topthink/think-swoole优化,方便ThinkCMF用户快速使用上swoole,原则上你可以使用相同的代码同时支持PHP-FPMSwoole。 它让你的项目同时拥有swoole的高性能和ThinkPHP快速开发的特性,你可以开发高性能的API服务,也可以拥有 websocket。

安装 swoole

详细的 swoole安装可以参考swoole官方文档,https://wiki.swoole.com/wiki/page/6.html

安装 ThinkCMF

详细的ThinkCMF安装可以参考ThinkCMF安装文档,https://www.kancloud.cn/thinkcmf/doc5_1/957743

安装 cmf-swoole扩展

启动 swoole

cd到程序根目录,执行如下命令:

swoole启动后会输出如下内容:

此时 swoole就启动成功了! swoole默认端口是9501,监听所有 ip。在浏览器中输入 swoole所在主机的 ip加端口9501,就可以访问页面了。 如果想关闭,只要按 CTRL+C组合键就可以关闭 swoole了。

守护进程方式启动 swoole

同样cd到程序根目录,但要执行如下命令:

此 swoole会以后台守护进程的方式运行,要想停止 swoole就要使用下面的命名了:

指定IP和端口号

默认IP是0.0.0.0,默认端口是9501

指定swoole IP

指定swoole端口

重启 swoole

优雅重载swoole

此种方式会平滑地重启所有 worker进程

Swoole API

启动 swoole api服务

swoole下 RESTful和普通 web服务是分开的;默认 IP:0.0.0.0,默认端口:9502

同样支持守护模式

指定 IP和端口

停止api服务

重启api服务

重载api服务

项目案例

ThinkCMF WebSocket Demo:

WebSocket演示插件 http://im.yyw66.cn/ws.html

更新日志

5.1.4

5.1.3


All versions of cmf-swoole with dependencies

PHP Build Version
Package Version
Requires topthink/framework Version ~5.1.20
jeremeamia/superclosure Version ^2.4
xavier/xcron-expression Version ^0.11
topthink/think-queue Version ^2.0
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 thinkcmf/cmf-swoole contains the following files

Loading the files please wait ....