craigpaul/blitz-laravel
最新稳定版本:v0.5.3
Composer 安装命令:
composer require craigpaul/blitz-laravel
包简介
Laravel package for integrating with an internal load testing tool named Blitz
README 文档
README
Installation
You can install the package via composer:
composer require craigpaul/blitz-laravel
The package will automatically register itself, you will however have to explicitly enable it. To do so, update your .env file (or however you are managing environment variables for the environment in question) with the following variable.
BLITZ_ENABLED=true
Usage
To create a new test case, use the make:blitz Artisan command. Tests will be placed within the tests/Blitz directory:
php artisan make:blitz ExampleTest
Once the test has been generated, you may begin writing out your workflow using the scaffolded handle method.
Note
Unlike the way you would write multiple test cases with a framework like PHPUnit in Laravel, each class is it's own unique test case (or workflow).
Blitz provides a very fluent (and hopefully familiar) API for making HTTP requests to your application. There are both JSON and non-JSON methods matching all the regular HTTP verbs available for instructing Blitz on what requests to make to your application.
The same best practices you're used to in your everyday Laravel HTTP tests also apply here. You can begin by "setting up the world", meaning to create any seed data you want to exist for your test.
Important
This data is persisted and used in real time when executing the load tests against your application, so it is advised to model the data and requests based on expected real world usage.
Once you have your data set up, you can move onto making actual requests into your application. This follows the same structure as a typical Laravel HTTP test by calling methods such as get, post, put, patch, or delete (or their JSON counterparts).
Thats all there really is to setting up a basic load test with Blitz. From here, you will want to sign into your running instance of the Blitz UI (local or hosted) and set up the project to begin executing your load tests against whatever environment you desire.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Testing
composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see LICENSE for more information.
craigpaul/blitz-laravel 适用场景与选型建议
craigpaul/blitz-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16.11k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 11 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「blitz」 「craigpaul」 「load testing」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 craigpaul/blitz-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 craigpaul/blitz-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 craigpaul/blitz-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CloudFront cache purger for the Blitz plugin.
Netlify deployer for the Blitz plugin for Craft CMS.
Varnish Cache purger for the Blitz plugin for Craft CMS.
A simple database layer for easy development
A global CDN and reverse proxy cache warmer.
KeyCDN cache purger for the Blitz plugin.
统计信息
- 总下载量: 16.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-11-27