spaze/url-checker 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

spaze/url-checker

Composer 安装命令:

composer create-project spaze/url-checker

包简介

A command line tool to check URL HTTP code and contents.

README 文档

README

A command line tool to check URL HTTP code and contents.

Install

composer create-project --no-dev spaze/url-checker url-checker

Usage

check.php <url> <expected_http_code> <required_text> <forbidden_text> [OPTIONS]

Options

  • --ignore-case-required-text: Ignore case when looking for the required text. Only ASCII case folding will be done, non-ASCII bytes will be compared by their byte value.
  • --ignore-case-forbidden-text: Ignore case when looking for the forbidden text. Only ASCII case folding will be done, non-ASCII bytes will be compared by their byte value.

The checker sends a request to <url> and checks:

  • If the HTTP status code matches <expected_http_code>
  • If the page contains <required_text>
  • If <forbidden_text> is not present

Example

bin/check.php https://example.com 200 "required" "FAiLuRe" --ignore-case-forbidden-text

Exit codes

The exit code is

  • 1 if the status code doesn't match <expected_http_code>
  • 2 if <required_text> is missing
  • 3 if <forbidden_text> is found
  • 4 if other runtime error occurs

统计信息

  • 总下载量: 1.44k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固