diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 68dbf29..cde46bf 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -2,9 +2,7 @@ before_commands: - "composer install --dev --prefer-source" tools: - php_code_coverage: - enabled: true - test_command: phpunit -c phpunit.xml.dist + external_code_coverage: true php_code_sniffer: enabled: true config: diff --git a/.travis.yml b/.travis.yml index 93e0db5..0b745e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,3 +21,5 @@ script: after_script: - php vendor/bin/coveralls -v + - wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a2943ee..8975058 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,11 @@ ## Version 1.1.0 (2014-08-06) -* increased performance of view helper -* added configuration for view helper +* Increased performance of view helper +* Added configuration for view helper ## Version 1.0.0 (2014-06-10) * Exception handling on __toString() function * Added unit tests -* HtmlElement View Helper with view plugin name "html" +* HtmlElement view helper with view plugin name "html" diff --git a/README.md b/README.md index 31cbe2b..3aad8d2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,13 @@ # HtmlElement view helper for Zend Framework 2 +> You want html tags as objects? + +> You want surefire generated html tags and html attributes? + +> You want to generate html tags on the fly? + +> This module comes to the rescue! + [![Build Status](https://travis-ci.org/sandrokeil/HtmlElement.png?branch=master)](https://travis-ci.org/sandrokeil/HtmlElement) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sandrokeil/HtmlElement/badges/quality-score.png?s=17ebfee6d9890d3f43becccc084746fed2fc6707)](https://scrutinizer-ci.com/g/sandrokeil/HtmlElement/) [![Coverage Status](https://coveralls.io/repos/sandrokeil/HtmlElement/badge.png)](https://coveralls.io/r/sandrokeil/HtmlElement) @@ -10,10 +18,10 @@ [![Total Downloads](https://poser.pugx.org/sandrokeil/html-element/downloads.png)](https://packagist.org/packages/sandrokeil/html-element) [![License](https://poser.pugx.org/sandrokeil/html-element/license.png)](https://packagist.org/packages/sandrokeil/html-element) -Zend Framework 2 view helper plugin for generating html element. Use html tags as objects and manipulate html attributes and values. +Zend Framework 2 view helper plugin for generating html tags. Use html tags as objects and manipulate html attributes and values. * **Well tested.** Besides unit test and continuous integration/inspection this solution is also ready for production use. - * **Great foundations.** Based on [Zend Framework 2](https://github.com/zendframework/zf2) + * **Great foundations.** Based on [Zend Framework 2](https://github.com/zendframework/zf2) and [Easy Config](https://github.com/sandrokeil/EasyConfig) * **Every change is tracked**. Want to know whats new? Take a look at [CHANGELOG.md](CHANGELOG.md) * **Listen to your ideas.** Have a great idea? Bring your tested pull request or open a new issue. See [CONTRIBUTING.md](CONTRIBUTING.md) @@ -63,7 +71,7 @@ echo $this->html( ``` ## Performance tweaks -The default bevaviour of html element is maximum security. But if you have thousands of html tags it could be slow. If your html attributes are not from user input, you can disable escaping of html attributes to increase performance. You can also disable escaping of text to unleash the beast. ;-) This is simply done by adding the following lines to your `module.config.php`, but keep security in mind. +The default behaviour of html element is maximum security. But if you have thousands of html tags it could be slow. If your html attributes are not from user input, you can disable escaping of html attributes to increase performance. You can also disable escaping of text to unleash the beast. ;-) This is simply done by adding the following lines to your `module.config.php`, but keep security in mind. ```php