xsist10 / wtw
Whatthewhat clonse for PHP
dev-master
2014-02-19 19:11 UTC
Requires
- php: >=5.3.2
- aura/cli: 2.*@dev
This package is auto-updated.
Last update: 2024-12-18 20:45:54 UTC
README
A PHP clone of WhatTheWhat.
Flavours
Inline
This script loads the WhatTheWhat checker inline with your code so you can set levels on what kind of errors you're looking for. This can cause problems with code conflicts or autoloading issues.
Dump
This script takes the standard error of the script and checks that. No chance of code conflicts but does not have the refined control of the inline version.
Getting Started
Install
Via Composer
{ "require": { "xsist10/wtw": "~1.0" } }
Direct Download
wget https://github.com/xsist10/wtw/raw/master/wtw.phar wget https://github.com/xsist10/wtw/raw/master/wtw-inline.phar
Usage
$ ./wtw.phar script.php $ ./wtw-inline.phar script.php
Change the search engine
$ ./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
Catch strict messages
$ ./wtw-inline.phar script.php -s
Catch warnings
$ ./wtw-inline.phar script.php -w
Catch deprecated notices
$ ./wtw-inline.phar script.php -d
Testing
$ phpunit
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.