Skip to content

Commit 876f4e9

Browse files
Move HTMLBuilder::class to ui-awesome/html-core package. (#7)
1 parent a4a54e8 commit 876f4e9

File tree

7 files changed

+3
-373
lines changed

7 files changed

+3
-373
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Change Log
22

3-
## 0.1.3 Under development
3+
## 0.2.0 March 30, 2024
4+
5+
- Enh #7: Move `HTMLBuilder::class` to `ui-awesome/html-core` package (@terabytesoftw)
46

57
## 0.1.2 March 25, 2024
68

README.md

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -87,52 +87,6 @@ private array $attributes = ['class' => 'btn'];
8787
$classes = CssClasses::add($this->attributes, ['btn-primary', 'btn-lg'], true);
8888
```
8989

90-
### Create a new `HTML` element
91-
92-
To create a new `HTML` element, you can use the `HTMLBuilder::class` with the `createTag()` method.
93-
94-
Allowed arguments are:
95-
96-
- `tag` (string) - The tag name.
97-
- `content` (string) - The content of the tag.
98-
- `attributes` (array) - The attributes of the tag.
99-
100-
```php
101-
<?php
102-
103-
declare(strict_types=1);
104-
105-
use UIAwesome\Html\Helper\HTMLBuilder;
106-
?>
107-
108-
<?= HTMLBuilder::createTag('div', 'Hello, World!', ['class' => 'container']) ?>
109-
```
110-
111-
### Create a new `HTML` block element
112-
113-
To create a new `HTML` block element, you can use the `HTMLBuilder::class` with the `beginTag()` and `endTag()` methods.
114-
115-
Allowed arguments for `beginTag()` method are:
116-
117-
- `tag` (string) - The tag name.
118-
- `attributes` (array) - The attributes of the tag.
119-
120-
Allowed arguments for `endTag()` method are:
121-
122-
- `tag` (string) - The tag name.
123-
124-
```php
125-
<?php
126-
127-
declare(strict_types=1);
128-
129-
use UIAwesome\Html\Helper\HTMLBuilder;
130-
131-
<?= HTMLBuilder::beginTag('div', ['class' => 'container']) ?>
132-
Hello, World!
133-
<?= HTMLBuilder::endTag('div') ?>
134-
```
135-
13690
### Convert regular expression to pattern
13791

13892
The `Utils::class` helper can be used to normalize a regular expression.

src/Base/AbstractHTMLBuilder.php

Lines changed: 0 additions & 203 deletions
This file was deleted.

src/HTMLBuilder.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/HTMLBuilderExceptionTest.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

tests/HTMLBuilderTest.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

tests/Provider/TagProvider.php

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)