Skip to content

Commit

Permalink
Merge pull request #3 from sandrokeil/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
sandrokeil committed Sep 1, 2014
2 parents c9b0de2 + 8b1deb1 commit 9c3049f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
4 changes: 1 addition & 3 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
# 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)
[![HHVM Status](http://hhvm.h4cc.de/badge/sandrokeil/html-element.svg)](http://hhvm.h4cc.de/package/sandrokeil/html-element)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/f105b7da-8af5-42c8-995e-9eb842070746/mini.png)](https://insight.sensiolabs.com/projects/f105b7da-8af5-42c8-995e-9eb842070746)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/be3b8aac-da7b-4ae1-a842-82ffca2712d0/mini.png)](https://insight.sensiolabs.com/projects/be3b8aac-da7b-4ae1-a842-82ffca2712d0)
[![Latest Stable Version](https://poser.pugx.org/sandrokeil/html-element/v/stable.png)](https://packagist.org/packages/sandrokeil/html-element)
[![Dependency Status](https://www.versioneye.com/user/projects/53615cc9fe0d07fa670000cb/badge.png)](https://www.versioneye.com/user/projects/53615cc9fe0d07fa670000cb)
[![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)

Expand Down Expand Up @@ -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
<?php
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sandrokeil/html-element",
"description": "Zend Framework 2 view helper plugin to use html tags like objects and to render them.",
"description": "Zend Framework 2 (zf2) view helper plugin to use html tags like objects and to render them.",
"homepage": "https://github.com/sandrokeil/HtmlElement",
"license": "BSD-3-Clause",
"type": "library",
Expand Down

0 comments on commit 9c3049f

Please sign in to comment.