chi-php-ug/good-time-playground
最新稳定版本:0.0.0
Composer 安装命令:
composer require chi-php-ug/good-time-playground
包简介
A super-awesome good-time playground!
关键字:
README 文档
README
Welcome to the super-awesome good-time playground for the Chicago PHP User Group!
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!
Into
The Silly Site Morpher is a library that takes a URL and returns the contents after it has undergone some sort of mutation.
The mutations are performed by "morpher providers" found under the Morphers folder.
Installation
Add the following to your composer.json file.
{
"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.
Bathroom Morpher
Replaces random words with bathroom-related words.
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!
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-09