kevinlebrun/colors.php — pull request #1 by nategood (2012-08-19 15:56:07+00:00)
Title: Adds center support

Add support for a `center` method.

- Includes a test coverage
- Supports UTF-8 / multibyte strings
- Supports multiline strings

``` php
center(80)->bg('blue') . PHP_EOL;
echo $c('Hello World!')->center(80)->white()->bold()->bg('blue') . PHP_EOL;
echo $c('This is centered text!')->center(80)->white()->bg('blue') . PHP_EOL;
echo $c('')->center(80)->bg('blue') . PHP_EOL;
```

![screen shot](http://cl.ly/image/2j432g0V0K24/Screen%20Shot%202012-08-19%20at%2011.32.39%20AM.png)

Did not add anything to the example file or documentation.