diff --git a/README.md b/README.md index 54d791a..6f47166 100644 --- a/README.md +++ b/README.md @@ -45,12 +45,12 @@ Munee caches asset requests server side and returns a `304 Not Modified` on subs ### Step 1: Download/Install Munee using composer -Add `meenie/munee` to your `composer.json` file: +Add `meenie/Munee` to your `composer.json` file: ```js { "require": { - "meenie/munee": "*" + "meenie/Munee": "*" } } ``` @@ -67,7 +67,7 @@ Now install Munee $ php composer.phar install ``` -Make sure the `cache` folder inside `vendor/meenie/munee` is writable +Make sure the `cache` folder inside `vendor/meenie/Munee` is writable ### Step 2: Use Munee in your library @@ -77,7 +77,7 @@ Create a file called `munee.php` that is web accessible and paste in the followi // Include the composer autoload file require 'vendor/autoload.php'; // Echo out the response -echo \munee\Dispatcher::run(new munee\Request()); +echo \Munee\Dispatcher::run(new Munee\Request()); ``` **Note: Update the correct path to the `autoload.php` file** @@ -102,13 +102,13 @@ All LESS & SCSS (SASS is not supported!) files are automatically compiled into C If you would like to run **all css** through the `LESS` compiler, then you will need to pass the `lessifyAllCss` parameter into the `Request` class with the value of `true` when you instantiate it: ```php -echo \munee\Dispatcher::run(new munee\Request(array('css' => array('lessifyAllCss' => true)))); +echo \Munee\Dispatcher::run(new Munee\Request(array('css' => array('lessifyAllCss' => true)))); ``` If you would like to run **all css** through the `scssphp` compiler, then you will need to pass the `scssifyAllCss` parameter into the `Request` class with the value of `true` when you instantiate it: ```php -echo \munee\Dispatcher::run(new munee\Request(array('css' => array('scssifyAllCss' => true)))); +echo \Munee\Dispatcher::run(new Munee\Request(array('css' => array('scssifyAllCss' => true)))); ``` **One Request For All CSS** @@ -207,7 +207,7 @@ CoffeeScript can also be automatically compiled if included in your html. When Build status ------------ -[![Build Status](https://secure.travis-ci.org/meenie/munee.png?branch=master)](http://travis-ci.org/meenie/munee) +[![Build Status](https://secure.travis-ci.org/meenie/Munee.png?branch=master)](http://travis-ci.org/meenie/Munee) Tips & Tricks ------------- @@ -217,7 +217,7 @@ Tips & Tricks If you want to resize images through Munee in your emails, you will need to turn off one of the security features in Munee. This is the Referrer check. To get it working, you can pass in the following option when you instantiate Munee: ```php -echo \munee\Dispatcher::run(new \munee\Request(array( +echo \Munee\Dispatcher::run(new \Munee\Request(array( 'image' => array( 'checkReferrer' => false ) @@ -247,5 +247,5 @@ You will need to do this: If for some reason you would like to prevent Munee from setting any headers, you can pass a second argument in the Dispatcher::run() function with `array('setHeaders' => false)`. ```php -$content = \munee\Dispatcher::run(new \munee\Request(array('files' => '/css/site.css')), array('setHeaders' => false)); +$content = \Munee\Dispatcher::run(new \Munee\Request(array('files' => '/css/site.css')), array('setHeaders' => false)); ``` diff --git a/composer.json b/composer.json index c47daf1..a44a534 100644 --- a/composer.json +++ b/composer.json @@ -4,9 +4,6 @@ "keywords": ["php","less","scss","coffeescript","cache","asset optimisation","asset optimization","asset management","css","javascript","lessphp","scssphp","image manipulation"], "homepage": "http://mun.ee", "license": "MIT", - "replace": { - "meenie/munee": "*" - }, "authors": [ { "name": "Cody Lundquist", diff --git a/config/bootstrap.php b/config/bootstrap.php index ae1016a..65b560c 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -1,10 +1,10 @@ getAllowedParams(); diff --git a/src/Munee/asset/filter/css/Minify.php b/src/Munee/asset/filter/css/Minify.php index 59da806..9b887bb 100644 --- a/src/Munee/asset/filter/css/Minify.php +++ b/src/Munee/asset/filter/css/Minify.php @@ -6,10 +6,10 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\asset\filter\css; +namespace Munee\asset\filter\css; -use munee\asset\Filter; -use munee\Utils; +use Munee\asset\Filter; +use Munee\Utils; /** * Minify Filter for CSS diff --git a/src/Munee/asset/filter/image/Resize.php b/src/Munee/asset/filter/image/Resize.php index 5d67420..e63f612 100644 --- a/src/Munee/asset/filter/image/Resize.php +++ b/src/Munee/asset/filter/image/Resize.php @@ -6,10 +6,10 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\asset\filter\image; +namespace Munee\asset\filter\image; -use munee\asset\Filter; -use munee\ErrorException; +use Munee\asset\Filter; +use Munee\ErrorException; use Imagine\Image\ImageInterface; use Imagine\Image\Box; use Imagine\Image\Color; diff --git a/src/Munee/asset/filter/javascript/Minify.php b/src/Munee/asset/filter/javascript/Minify.php index 7589ba2..8339309 100644 --- a/src/Munee/asset/filter/javascript/Minify.php +++ b/src/Munee/asset/filter/javascript/Minify.php @@ -6,9 +6,9 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\asset\filter\javascript; +namespace Munee\asset\filter\javascript; -use munee\asset\Filter; +use Munee\asset\Filter; /** * Minify Filter for JavaScript diff --git a/src/Munee/asset/type/Css.php b/src/Munee/asset/type/Css.php index a154746..52512aa 100644 --- a/src/Munee/asset/type/Css.php +++ b/src/Munee/asset/type/Css.php @@ -6,10 +6,10 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\asset\type; +namespace Munee\asset\type; -use munee\Utils; -use munee\asset\Type; +use Munee\Utils; +use Munee\asset\Type; use lessc; /** diff --git a/src/Munee/asset/type/Image.php b/src/Munee/asset/type/Image.php index 78aa670..65a2123 100644 --- a/src/Munee/asset/type/Image.php +++ b/src/Munee/asset/type/Image.php @@ -6,11 +6,11 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\asset\type; +namespace Munee\asset\type; -use munee\ErrorException; -use munee\asset\Type; -use munee\Utils; +use Munee\ErrorException; +use Munee\asset\Type; +use Munee\Utils; /** * Handles Images diff --git a/src/Munee/asset/type/JavaScript.php b/src/Munee/asset/type/JavaScript.php index 975afbc..df3254d 100644 --- a/src/Munee/asset/type/JavaScript.php +++ b/src/Munee/asset/type/JavaScript.php @@ -6,9 +6,9 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\asset\type; +namespace Munee\asset\type; -use munee\asset\Type; +use Munee\asset\Type; use CoffeeScript; /** diff --git a/tests/Munee/cases/RequestTest.php b/tests/Munee/cases/RequestTest.php index c4fbfbf..a1a839c 100644 --- a/tests/Munee/cases/RequestTest.php +++ b/tests/Munee/cases/RequestTest.php @@ -6,13 +6,13 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\cases; +namespace Munee\cases; -use munee\Request; -use munee\Utils; +use Munee\Request; +use Munee\Utils; /** - * Tests for the \munee\Request Class + * Tests for the \Munee\Request Class * * @author Cody Lundquist */ @@ -49,7 +49,7 @@ public function testNoFilesQueryStringParam() { $Request = new Request(); - $this->setExpectedException('munee\ErrorException'); + $this->setExpectedException('Munee\ErrorException'); $Request->init(); } @@ -89,7 +89,7 @@ public function testExtensionNotSupported() 'files' => '/js/foo.jpg,/js/bar.js' ); - $this->setExpectedException('munee\ErrorException'); + $this->setExpectedException('Munee\ErrorException'); $Request->init(); } @@ -219,7 +219,7 @@ public function testWrongParamValue() ) ); - $this->setExpectedException('munee\ErrorException'); + $this->setExpectedException('Munee\ErrorException'); $Request->parseParams($allowedParams); } } \ No newline at end of file diff --git a/tests/Munee/cases/ResponseTest.php b/tests/Munee/cases/ResponseTest.php index e2f78eb..4739134 100644 --- a/tests/Munee/cases/ResponseTest.php +++ b/tests/Munee/cases/ResponseTest.php @@ -6,13 +6,13 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\cases; +namespace Munee\cases; -use munee\Response; -use munee\mocks\MockAssetType; +use Munee\Response; +use Munee\mocks\MockAssetType; /** - * Tests for the \munee\Response Class + * Tests for the \Munee\Response Class * * @author Cody Lundquist */ @@ -28,7 +28,7 @@ class ResponseTest extends \PHPUnit_Framework_TestCase */ public function testConstruct() { - $this->setExpectedException('munee\ErrorException'); + $this->setExpectedException('Munee\ErrorException'); new Response(new \stdClass()); } diff --git a/tests/Munee/cases/UtilsTest.php b/tests/Munee/cases/UtilsTest.php index 2248685..a09c492 100644 --- a/tests/Munee/cases/UtilsTest.php +++ b/tests/Munee/cases/UtilsTest.php @@ -6,12 +6,12 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\cases; +namespace Munee\cases; -use munee\Utils; +use Munee\Utils; /** - * Tests for the \munee\Utils Class + * Tests for the \Munee\Utils Class * * @author Cody Lundquist */ diff --git a/tests/Munee/cases/asset/RegistryTest.php b/tests/Munee/cases/asset/RegistryTest.php index 9992279..e45a14b 100644 --- a/tests/Munee/cases/asset/RegistryTest.php +++ b/tests/Munee/cases/asset/RegistryTest.php @@ -6,14 +6,14 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\cases\asset; +namespace Munee\cases\asset; -use munee\asset\Registry; -use munee\mocks\MockRequest; -use munee\mocks\MockAssetType; +use Munee\asset\Registry; +use Munee\mocks\MockRequest; +use Munee\mocks\MockAssetType; /** - * Tests for the \munee\asset\Registry Class + * Tests for the \Munee\asset\Registry Class * * @author Cody Lundquist */ @@ -54,7 +54,7 @@ public function testGetAssetType() */ public function testExtensionNotSupported() { - $this->setExpectedException('munee\ErrorException'); + $this->setExpectedException('Munee\ErrorException'); Registry::getSupportedExtensions('nope'); } @@ -65,7 +65,7 @@ public function testExtensionNotRegistered() { $MockRequest = new MockRequest(); $MockRequest->ext = 'nope'; - $this->setExpectedException('munee\ErrorException'); + $this->setExpectedException('Munee\ErrorException'); Registry::getClass($MockRequest); } diff --git a/tests/Munee/mocks/MockAssetType.php b/tests/Munee/mocks/MockAssetType.php index 0c26280..28c709f 100644 --- a/tests/Munee/mocks/MockAssetType.php +++ b/tests/Munee/mocks/MockAssetType.php @@ -6,9 +6,9 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\mocks; +namespace Munee\mocks; -use munee\asset\Type; +use Munee\asset\Type; /** * Mock Asset Type class for Response Test diff --git a/tests/Munee/mocks/MockRequest.php b/tests/Munee/mocks/MockRequest.php index 319fd66..2f08c4e 100644 --- a/tests/Munee/mocks/MockRequest.php +++ b/tests/Munee/mocks/MockRequest.php @@ -6,9 +6,9 @@ * @license http://opensource.org/licenses/mit-license.php */ -namespace munee\mocks; +namespace Munee\mocks; -use munee\Request; +use Munee\Request; /** * Mock Request class for Response Test