psx/engine
Composer 安装命令:
composer require psx/engine
包简介
Engine to support multiple web server types
关键字:
README 文档
README
About
The engine package provides multiple ways to run your PSX app in different environments. By default it uses the web server engine which is designed for classical web servers like Apache or Nginx. But in the PHP world there are lots of alternative web server solutions which can also improve the performance of your app.
Engines
-
Apache/NGINX
Classical web server like Apache or NGINX which uses either FCGI or includes PHP as module (Apache). This engine is included by default.
- Class:
PSX\Engine\WebServer\Engine
- Class:
-
Amp
A HTTP server completely written in PHP
- Github: https://github.com/amphp/http-server
- Package:
psx/engine-amp - Class:
PSX\Engine\Amp\Engine
-
Swoole
The HTTP server written as PHP extension in C/C++
- Github: https://github.com/swoole/swoole-src
- Package:
psx/engine-swoole - Class:
PSX\Engine\Swoole\Engine
-
Roadrunner
The HTTP server written in GO and uses
- Github: https://github.com/spiral/roadrunner
- Package:
psx/engine-roadrunner - Class:
PSX\Engine\Roadrunner\Engine
Usage
To use a different engine simply require the package through composer. Then you need to adjust your index.php and use the fitting engine class.
require_once(__DIR__ . '/../vendor/autoload.php'); $container = require_once(__DIR__ . '/../container.php'); $engine = null; # adjust the engine class $environment = \PSX\Framework\Environment\Environment::fromContainer($container, $engine); $environment->serve();
psx/engine 适用场景与选型建议
psx/engine 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 29.61k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2020 年 08 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「engine」 「PSX」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 psx/engine 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 psx/engine 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 psx/engine 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Engine of the PSX framework
A SilverStripe module to optimise the Meta, crawling, indexing, and sharing of your website content (forked from Cyber-Duck/Silverstripe-SEO)
A Processor for Markup written in PHP. Allows extraction of Markup into a data structure, orchestrated nested manipulation of said structure, and output as (optimized) Markup.
Allow KoolReport to use twig template engine to render view
Simple template engine
统计信息
- 总下载量: 29.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 14
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2020-08-08