Download the PHP package tourze/server without Composer

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

服务器模块

在很多时候,php在项目中都不能单独存在。对于web项目,大部分情况需要搭配nginx/apache等web服务器。

传统的PHP开发方式,在一些特定场景下,会显得很力不从心,如:

  1. 长链接服务
  2. 需要持久化对象或请求的服务

幸好现在有swoole和workerman这类服务端框架存在。

本人相对来说比较熟悉workerman,所以在平时使用时,会偏向选择workerman。

那既然有了workerman,为什么还要写这个模块呢?在我看来,workerman虽然很好,但是还不能做到开箱即用,而且一些使用方法上,个人也很不习惯。

所以我希望在workerman之上再封装一层,在整合了workerman强大功能的同时,为用户提供更高的便捷性。

安装

首先需要下载和安装composer,具体请查看官网的Download页面

在你的composer.json中增加:

"require": {
    "tourze/server": "^1.0"
},

或直接执行

composer require tourze/server:"^1.0"

建议在main.php配置文件中加入:

以保证输出的header正确。

使用

复制start.phpconfig/main.php到你的项目目, 并按照说明配置好config/main.php中的server节.


All versions of server with dependencies

PHP Build Version
Package Version
Requires tourze/base Version ^1.0
workerman/workerman Version ^3.1
league/climate Version ^3.2
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 tourze/server contains the following files

Loading the files please wait ....