stevegrunwell/runkit7-installer
Composer 安装命令:
composer require --dev stevegrunwell/runkit7-installer
包简介
Installer for PHP's runkit and runkit7 extensions
README 文档
README
This package enables you to automate the installation of Runkit7 in development and CI environments, for projects that require the flexibility offered by runkit.
What is Runkit7?
Runkit7 is the unofficial fork of PHP's runkit extension, upgraded to work with PHP 7.0 and above.
With runkit, developers can dynamically redefine code behavior at run-time (often referred to as "monkey-patching"). While it's usually a very bad idea to do in production environments, monkey-patching can be useful in scenarios where tests need to do things like redefine constants or remove functions.
Installation
In order to use the Runkit7 installer, your target environment must support PECL and PEAR.
You may install the Runkit7 Installer package via Composer:
$ composer require --dev stevegrunwell/runkit7-installer
Then, either in a development environment or as part of your CI workflow, run the install-runkit.sh script:
$ ./vendor/bin/install-runkit.sh
Note: If you receive permission issues, you may need to run the command above prefixed with
sudo.
If you wish to install a specific version of Runkit7, you may pass the version number to the script as an argument:
$ ./vendor/bin/install-runkit.sh 1.0.5b1
License
Copyright 2018 Steve Grunwell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
stevegrunwell/runkit7-installer 适用场景与选型建议
stevegrunwell/runkit7-installer 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 81.9k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2018 年 03 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「testing」 「runkit」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 stevegrunwell/runkit7-installer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 stevegrunwell/runkit7-installer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 stevegrunwell/runkit7-installer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Mocking utility for PHP functions and WordPress plugin API
Fork for PoP of: Faker (fzaninotto/faker) for WordPress via Brain Monkey
Faker (phpfaker/faker) for WordPress via Brain Monkey
PHPUnit extension that uses runkit to mock PHP functions (both user-defined and system)
Testing Suite For Lumen like Laravel does.
PHPUnit extension to Mock PHP internal functions using Runkit.
统计信息
- 总下载量: 81.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 10
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-30