lapinskas/roadrunner-ubiquity
Composer 安装命令:
composer require lapinskas/roadrunner-ubiquity
包简介
RoadRunner and Ubiquity integration
关键字:
README 文档
README
Makes the fastest PHP framework even faster.
Installation
Automatic installation
Just tell Ubiquity to run with RoadRunner
$ Ubiquity serve -t=roadrunner
All required components (except of PHP-CGI) will be installed at the first launch.
Manual installation
If you need package for your own projects, just require it via composer
$ composer require lapinskas/roadrunner-ubiquity
Dependencies
Ubiquity
Get Ubiquiry Framework if you have not done it yet
PHP-CGI
php-cgi 7.4 is required for this package.
Please note it's php-cgi, not php, so most probably you have not it installed by default.
php-cgi installation on Ubuntu 18.04 LTS
As of today, PHP 7.4 is not available in Ubuntu default repositories. In order to install it, you will have to get it from third-party repositories.
$ sudo add-apt-repository ppa:ondrej/php
Then update and upgrade to PHP 7.4
$ sudo apt update
and install php-cgi
$ sudo apt-get install php7.4-cgi
Usage
As an example of a basic usage, let's create default Ubiquity project and run it using RoadRunner
Create sample Ubiquity project
Let's create new project called 'firstProject' in a folder of your choice. Flag -a adds rather powerful UbiquityMyadmin application that we can use for usage testing.
$ Ubiquity new firstProject -a
$ cd firstProject
Note: if Ubiquity is not in your path, you can find it at ~/.composer/vendor/phpmv/ubiquity-devtools/src/Ubiquity
Run Ubiquity
Tell Ubiquity to run using RoadRunner
$ Ubiquity serve -t=roadrunner
Alternative - Run RoadRunner directly
Run RoadRunner in debug mode
$ ./rr serve -v -d
Open UbiquityMyadmin page
Open admin page of Ubiquity application in your browser http://127.0.0.1:8090/Admin
Ubiquity application is exactly the same and could be run using command "Ubiquity serve", NGINX or Apache servers. The only change is the entry point of the application.
Benchmarking
Each worker takes some time for the bootstraping / initialization for the very first request. The consecutive requests do not require the bootstraping that results in much faster processing after all workers have been initialized.
Please feel free to run some benchmarking tests of RoadRunner+Ubiquity vs NGINX+Ubiquity or Apache+Ubiquity. Preliminary tests have shown more than 100% increase in the number of requests per second and twice quicker response time.
Changelog
Changelog can be found here.
License
This is open-sourced software licensed under the MIT License.
lapinskas/roadrunner-ubiquity 适用场景与选型建议
lapinskas/roadrunner-ubiquity 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.13k 次下载、GitHub Stars 达 9, 最近一次更新时间为 2020 年 02 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ubiquity」 「roadrunner」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 lapinskas/roadrunner-ubiquity 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lapinskas/roadrunner-ubiquity 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 lapinskas/roadrunner-ubiquity 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A JQuery and UI library for php and php MVC frameworks
Make Codeigniter4 work on Roadrunner Server.
Supercharge your Lumen application's performance.
RoadRunner <-> Lumen Integration
RoadRunner bridge for Laravel applications
A local docker environment skeleton for RoadRunner
统计信息
- 总下载量: 3.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-16