Skip to content

Commit

Permalink
scrutinizer uses travis code coverage now, updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Keil committed Sep 1, 2014
1 parent 96d09e8 commit 8b1deb1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .scrutinizer.yml
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
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
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"
14 changes: 11 additions & 3 deletions 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)
Expand All @@ -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)

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
@@ -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 8b1deb1

Please sign in to comment.