chapabu/codeception-drupal-runserver
Composer 安装命令:
composer require --dev chapabu/codeception-drupal-runserver
包简介
Codeception extension for starting and stopping a Drush server using PHP's built in webserver.
README 文档
README
| Branch | Status |
|---|---|
| Master |
Codeception extension for starting and stopping a Drush server using PHP's built in webserver and the drush runserver command.
Requirements
- Drush
- PHP 5.4 (the Drush server does support PHP 5.3, but I'm not likely to actively test this. Pull requests welcome if this is required :))
Installation
Via Composer
$ composer require chapabu/codeception-drupal-runserver --dev
Usage
paths: tests: . log: _log data: _data helpers: _helpers extensions: enabled: - Codeception\Extension\DrushRunserver config: Codeception\Extension\DrushRunserver: drupalRoot: docroot drushBinary: ../vendor/bin/drush hostname: 127.0.0.1 port: 8080 variables: site_name: My cool site theme_default: my_awesome_theme site_mail: admin@example.com
Configuration options
drupalRoot
drupalRoot: docRoot
The folder (relative to your codecept.yml file) where your Drupal installation resides (default: same directory as codecept.yml).
drushBinary
drushBinary: ../vendor/bin/drush
The path to the Drush binary on your system (default: drush - as if it were installed globally).
hostname
hostname: 127.0.0.1
The address to bind to the server (default: 127.0.0.1).
port
port: 8080
The port number to bind to the server (default: 8888).
variables
variables: site_name: My cool site theme_default: my_awesome_theme site_mail: admin@example.com
A key-value array of variables to override in the$conf array for the running site.
Testing
$ codecept run
Credits
Most of the code for this was lifted from https://github.com/tiger-seo/PhpBuiltinServer, but rejigged to use the drush runserver command.
License
The MIT License (MIT). Please see License File for more information.
chapabu/codeception-drupal-runserver 适用场景与选型建议
chapabu/codeception-drupal-runserver 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 02 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「testing」 「test」 「codeception」 「drupal」 「Drush」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 chapabu/codeception-drupal-runserver 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 chapabu/codeception-drupal-runserver 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 chapabu/codeception-drupal-runserver 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Connection 'Db' codeception module to 'Yii2' module database settings
Mailtrap module for Codeception
Testing Suite For Lumen like Laravel does.
Qase TMS Codeception reporter.
The PHP SDK for Checkmango
Run codeception in multiple modes in mvc structure
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 27
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-16