Skip to content

Commit

Permalink
Rename Grouping to Group. (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Feb 21, 2024
1 parent 68c58b2 commit 241e143
Show file tree
Hide file tree
Showing 27 changed files with 80 additions and 82 deletions.
96 changes: 47 additions & 49 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,23 @@

The **HTML** repository is a powerful tool for generating `HTML` code using `PHP`.

It provides a wide range of functionalities, including:
## Creating Widgets

The HTML repository leverages the power of PHP traits to enable you to create custom widgets with ease.

Traits are a way of reusing code in single inheritance languages like PHP, allowing you to group related functionalities
in a consistent way.

The HTML repository provides a set of traits that you can use to compose custom widgets, giving you the flexibility to
create HTML elements that suit your specific needs.

## Generic tags

- [Tag](/docs/tag/Tag.md)

## Builder Class

- [HtmlBuilder](/docs/builder/HtmlBuilder.md)

## Basic HTML Tags

Expand All @@ -19,44 +35,6 @@ The following tags are currently supported:
- [span](/docs/tag/Span.md)
- [svg](/docs/tag/Svg.md)

## Grouping

The repository provides a set of classes for creating groups of elements, including:

- [div](/docs/grouping/Div.md)
- [li](/docs/grouping/Li.md)
- [ol](/docs/grouping/Ol.md)
- [p](/docs/grouping/P.md)
- [ul](/docs/grouping/Ul.md)

## Metadata

The `Metadata` section of a web page contains information about the page, such as its title, description, and keywords.

The repository provides a set of classes for creating metadata, including:

- [meta](/docs/metadata/Meta.md)
- [title](/docs/metadata/Title.md)

## Layout

In web design, the `Layout` section typically refers to a collection of files or components that define the overall
structure and arrangement of a web page. This includes elements such as headers, footers, navigation bars, sidebars, and
other structural components that help organize and present content on the page. The `Layout` section is essential for
creating consistent and visually appealing designs across the entire website, as it establishes the framework
within which individual pages are constructed.

The repository provides a set of classes for creating layouts, including:

- [body](/docs/layout/Body.md)
- [footer](/docs/layout/Footer.md)
- [head](/docs/layout/Head.md)
- [header](/docs/layout/Header.md)
- [html](/docs/layout/Html.md)
- [main](/docs/grouping/Main.md)
- [nav](/docs/layout/Nav.md)
- [section](/docs/layout/Section.md)

## Form control

Provide a comprehensive set of `form` elements and components for building user-friendly and accessible web forms.
Expand Down Expand Up @@ -101,20 +79,40 @@ The following input tags are currently supported:
- [url](/docs/form-control/input/Url.md)
- [week](/docs/form-control/input/Week.md)

## Creating Widgets
## Group

The HTML repository leverages the power of PHP traits to enable you to create custom widgets with ease.
The repository provides a set of classes for creating groups of elements, including:

Traits are a way of reusing code in single inheritance languages like PHP, allowing you to group related functionalities
in a consistent way.
- [div](/docs/group/Div.md)
- [li](/docs/group/Li.md)
- [ol](/docs/group/Ol.md)
- [p](/docs/group/P.md)
- [ul](/docs/group/Ul.md)

The HTML repository provides a set of traits that you can use to compose custom widgets, giving you the flexibility to
create HTML elements that suit your specific needs.
## Metadata

## Generic tags
The `Metadata` section of a web page contains information about the page, such as its title, description, and keywords.

- [Tag](/docs/tag/Tag.md)
The repository provides a set of classes for creating metadata, including:

## Helper Classes
- [meta](/docs/metadata/Meta.md)
- [title](/docs/metadata/Title.md)

## Layout

In web design, the `Layout` section typically refers to a collection of files or components that define the overall
structure and arrangement of a web page. This includes elements such as headers, footers, navigation bars, sidebars, and
other structural components that help organize and present content on the page. The `Layout` section is essential for
creating consistent and visually appealing designs across the entire website, as it establishes the framework
within which individual pages are constructed.

- [HtmlBuilder](/docs/helper/HtmlBuilder.md)
The repository provides a set of classes for creating layouts, including:

- [body](/docs/layout/Body.md)
- [footer](/docs/layout/Footer.md)
- [head](/docs/layout/Head.md)
- [header](/docs/layout/Header.md)
- [html](/docs/layout/Html.md)
- [main](/docs/group/Main.md)
- [nav](/docs/layout/Nav.md)
- [section](/docs/layout/Section.md)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PHPForge\Html\Grouping\Base;
namespace PHPForge\Html\Group\Base;

use PHPForge\Html\Attribute\{Custom\HasAttributes, Input\HasName, Input\HasValue};
use PHPForge\Html\Attribute\{HasClass, HasId, HasLang, HasStyle, HasTabindex, HasTitle};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PHPForge\Html\Grouping\Base;
namespace PHPForge\Html\Group\Base;

use PHPForge\Html\Attribute\{Custom\HasAttributes, Custom\HasTagName, Input\HasName};
use PHPForge\Html\Attribute\{HasClass, HasId, HasLang, HasStyle, HasTabindex, HasTitle};
Expand Down
2 changes: 1 addition & 1 deletion src/Grouping/Div.php → src/Group/Div.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PHPForge\Html\Grouping;
namespace PHPForge\Html\Group;

use PHPForge\Html\Base\AbstractBlockElement;

Expand Down
2 changes: 1 addition & 1 deletion src/Grouping/Li.php → src/Group/Li.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PHPForge\Html\Grouping;
namespace PHPForge\Html\Group;

use PHPForge\Html\Attribute\Input\HasType;

Expand Down
2 changes: 1 addition & 1 deletion src/Grouping/Ol.php → src/Group/Ol.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PHPForge\Html\Grouping;
namespace PHPForge\Html\Group;

use PHPForge\Html\Attribute\{Input\HasType, Tag\HasReversed, Tag\HasStart};

Expand Down
2 changes: 1 addition & 1 deletion src/Grouping/P.php → src/Group/P.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PHPForge\Html\Grouping;
namespace PHPForge\Html\Group;

use PHPForge\Html\Base\AbstractBlockElement;

Expand Down
2 changes: 1 addition & 1 deletion src/Grouping/Ul.php → src/Group/Ul.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PHPForge\Html\Grouping;
namespace PHPForge\Html\Group;

/**
* The `<ul>` HTML element represents an unordered list of items, typically rendered as a bulleted list.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\Div;
namespace PHPForge\Html\Tests\Group\Div;

use PHPForge\Html\Grouping\Div;
use PHPForge\Html\Group\Div;
use PHPForge\Support\Assert;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\Div;
namespace PHPForge\Html\Tests\Group\Div;

use PHPForge\Html\Grouping\Div;
use PHPForge\Html\Group\Div;
use PHPForge\Support\Assert;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\Li;
namespace PHPForge\Html\Tests\Group\Li;

use PHPForge\Html\Grouping\Li;
use PHPForge\Html\Group\Li;
use PHPForge\Support\Assert;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\Li;
namespace PHPForge\Html\Tests\Group\Li;

use PHPForge\Html\Grouping\{Li, Ul};
use PHPForge\Html\Group\{Li, Ul};
use PHPForge\Support\Assert;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Li;
namespace PHPForge\Html\Tests\Group\Li;

use PHPForge\Html\Grouping\Li;
use PHPForge\Html\Group\Li;
use PHPUnit\Framework\TestCase;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\Ol;
namespace PHPForge\Html\Tests\Group\Ol;

use PHPForge\Html\Grouping\{Li, Ol};
use PHPForge\Html\Group\{Li, Ol};
use PHPForge\Support\Assert;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\Ol;
namespace PHPForge\Html\Tests\Group\Ol;

use PHPForge\Html\Grouping\{Li, Ol};
use PHPForge\Html\Group\{Li, Ol};
use PHPForge\Support\Assert;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\Ol;
namespace PHPForge\Html\Tests\Group\Ol;

use PHPForge\Html\Grouping\Ol;
use PHPForge\Html\Group\Ol;
use PHPUnit\Framework\TestCase;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\P;
namespace PHPForge\Html\Tests\Group\P;

use PHPForge\Html\Grouping\P;
use PHPForge\Html\Group\P;
use PHPForge\Support\Assert;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\P;
namespace PHPForge\Html\Tests\Group\P;

use PHPForge\Html\Grouping\P;
use PHPForge\Html\Group\P;
use PHPForge\Support\Assert;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\Ul;
namespace PHPForge\Html\Tests\Group\Ul;

use PHPForge\Html\Grouping\Ul;
use PHPForge\Html\Group\Ul;
use PHPForge\Support\Assert;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\Ul;
namespace PHPForge\Html\Tests\Group\Ul;

use PHPForge\Html\Grouping\{Li, Ul};
use PHPForge\Html\Group\{Li, Ul};
use PHPForge\Support\Assert;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace PHPForge\Html\Tests\Grouping\Ul;
namespace PHPForge\Html\Tests\Group\Ul;

use PHPForge\Html\Grouping\Ul;
use PHPForge\Html\Group\Ul;
use PHPUnit\Framework\TestCase;

/**
Expand Down

0 comments on commit 241e143

Please sign in to comment.