gorkalaucirica / redirect-checker
自动URL重定向检查器
v0.3.1
2019-04-12 07:29 UTC
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.3
- symfony/console: ^2.8 || ^3.0
- symfony/yaml: ^2.8 || ^3.0
Requires (Dev)
- phpspec/phpspec: ^3.4
This package is not auto-updated.
Last update: 2024-09-19 09:41:47 UTC
README
自动URL重定向检查器
功能
- 自动测试应用中的URL重定向
- 添加源URL和目标URL以确保重定向正常工作
- 无缝集成到现有项目中
- 简单的YAML文件定义测试
安装和使用
- 使用Composer安装此组件
$ composer require gorkalaucirica/redirect-checker
- 创建您的yaml文件
# tests/redirections/example.yml https://google.com/services: https://www.google.com/services/ http://google.es/preferences: https://www.google.es/preferences http://support.google.com: https://support.google.com/
- 运行命令
$ ./bin/redirect-checker yaml tests/redirections/example.yml
$ ./bin/redirect-checker yaml tests/redirections/example-non-absolute.yml --base-url="https://www.google.com"