The super-awesome good-time playground
, (*1)
Welcome to the super-awesome good-time playground for the Chicago PHP User Group!, (*2)
This package is a great way to pratice contributing to open source. If you see soemthing misspelled in the README, or maybe a test isn't passing, or you want to add a new feature, feel free to submit your own PR!, (*3)
Into
The Silly Site Morpher is a library that takes a URL and returns the contents after it has undergone some sort of mutation., (*4)
The mutations are performed by "morpher providers" found under the Morphers
folder., (*5)
Installation
Add the following to your composer.json
file., (*6)
{
"require": {
"chi-php-ug/good-time-playground": "~0.0"
}
}
Usage
use ChiPhp\Playground\SillySiteMorpher;
use ChiPhp\Playground\Morphers\BathroomMorpher;
$ssm = new SillySiteMorpher('http://example.com');
$morpher = new BathroomMorpher();
$content = $ssm->morph($morpher);
echo $content; // Now with some bathroom flare!
Supported Morphers
There are a number of morphers you can use to make a silly site., (*7)
Bathroom Morpher
Replaces random words with bathroom-related words., (*8)
use ChiPhp\Playground\Morphers\Bathroom;
$morpher = new BathroomMorpher();
Add your own!
We've love to add more silly morphers to the package. Code your morpher to the MorpherInterface
and add documentation for it!, (*9)
Contributing
Please see CONTRIBUTING for details., (*10)
Credits
License
The MIT License (MIT). Please see License File for more information., (*11)