Skip to content

Commit

Permalink
Changed namespace to match package and standard, also added PHP 7 req…
Browse files Browse the repository at this point in the history
…uirement because it was already depending on PHP 7
  • Loading branch information
Dick van der Heiden committed Aug 30, 2017
1 parent 195c50f commit 8dc24d4
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 418 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ This package allows you to easily create HTML elements from PHP. It's inspired b
[David Walsh's blogpost](https://davidwalsh.name/create-html-elements-php-htmlelement-class) but further improved.

```$php
use Vdhicts\HtmlElement\HtmlElement;
// Create new html element with attribute name
$selectElement = new HtmlElement('select');
$selectElement->setAttribute('name', 'something');
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
"email": "[email protected]"
}
],
"require": {},
"require": {
"php": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.1",
"phpmd/phpmd": "^2.6"
"phpunit/phpunit": "^6.1"
},
"autoload": {
"psr-4": {"Vdhicts\\Html\\": "src/"}
"psr-4": {"Vdhicts\\HtmlElement\\": "src/"}
}
}
Loading

0 comments on commit 8dc24d4

Please sign in to comment.