hampel/systemtest
Composer 安装命令:
composer require hampel/systemtest
包简介
Laravel package for testing or troublshooting various subsystems
README 文档
README
This package provides a number of console commands to test various subsystems (email, logging, notifications, etc) of a Laravel system in production. It is primarily intended for troubleshooting issues on a newly deployed application or if you've moved to a new server - identifying permissions errors and such.
By Simon Hampel
Installation
To install using composer, run the following command:
composer require hampel/systemtest
Usage
Once installed, new artisan console commands will become available:
Ensure that mail has been configured and then run the test:mail console command with a destination email address as
the parameter.
artisan test:mail foo@example.com
TODO: add support for sending via the mail queue
Log
Run the test:log console command to write a series of logs covering all severities to the default log file.
The --channel option can be used to specify any other configured logging channel.
artisan test:log --channel=syslog
Filesystem
Run the test:file console command to list all files available on the default disk.
The --disk option can be used to specify any other configured disk (eg local or public).
artisan test:file --disk=public
Note that no files are written to the disk.
Cache
Run the test:cache console command to write test writing to and retrieving from the default cache store.
The --store option can be used to specify any other configured cache store.
artisan test:cache --store=array
The test will generate a random key, write it to the cache (provided the key doesn't already exist), increment the value, then retrieve and delete the key - checking that the returned value is as expected.
Schedule
Run the test:schedule console command to output details of scheduled commands to the console.
Upload
Run the test:upload <path> console command to upload the file at <path> to your default filesystem disk and report
back on the time taken.
The --disk option can be used to specify any configured disk (eg local or s3).
artisan test:file /path/to/foo.jpg --disk=s3
Note that the file will be uploaded to the root of the disk and then deleted - so both write and delete permissions are required.
A large test file such as those used by the Linode Speedtest are good for testing upload speeds.
Notifications
Run the test:notification <channel> <destination> console command to send a notification to the selected channel.
Currently supported channels are mail and slack. The destination must also be specified, for mail that would be the
email address to send to and for Slack it would be the inbound webhook URL.
For example:
artisan test:notification mail foo@example.com artisan test:notification slack https://hooks.slack.com/services/...
Be sure to check your inbox or Slack channel for a test notification message.
hampel/systemtest 适用场景与选型建议
hampel/systemtest 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 139 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 03 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「logging」 「filesystem」 「cache」 「email」 「test」 「notifications」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hampel/systemtest 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hampel/systemtest 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hampel/systemtest 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A SDK for working with B2 cloud storage.
repository php library
A PHP class providing static methods for reading, writing, copying, moving, and deleting files and directories, MIME type detection, image size detection, and file permission management
The flysystem adapter for yandex disk rest api.
A Zend Framework module that sets up Monolog for logging in applications.
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
统计信息
- 总下载量: 139
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-12