xsist10/wtw

PHP 的 WhatTheWhat 克隆

dev-master 2014-02-19 19:11 UTC

This package is auto-updated.

Last update: 2024-09-18 20:02:02 UTC


README

Build Status

PHP 的 WhatTheWhat 克隆。

风味

内联

此脚本将 WhatTheWhat 检查器内联加载到您的代码中,以便您可以设置查找错误级别的设置。这可能会引起代码冲突或自动加载问题。

转储

此脚本获取脚本的标准错误并检查它。没有代码冲突的风险,但没有内联版本的精细控制。

入门

安装

通过 Composer

{
    "require": {
        "xsist10/wtw": "~1.0"
    }
}

直接下载

wget https://github.com/xsist10/wtw/raw/master/wtw.phar
wget https://github.com/xsist10/wtw/raw/master/wtw-inline.phar

用法

$ ./wtw.phar script.php
$ ./wtw-inline.phar script.php

更改搜索引擎

$ ./wtw.phar script.php --search=StackOverflow
$ ./wtw.phar script.php --search=DuckDuckGo

$ ./wtw-inline.phar script.php --search=StackOverflow
$ ./wtw-inline.phar script.php --search=DuckDuckGo

捕获严格消息

$ ./wtw-inline.phar script.php -s

捕获警告

$ ./wtw-inline.phar script.php -w

捕获已弃用通知

$ ./wtw-inline.phar script.php -d

测试

$ phpunit

贡献

有关详细信息,请参阅 CONTRIBUTING

鸣谢

许可证

MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件