{"id":24959579,"url":"https://github.com/arxcode40/html5-php","last_synced_at":"2025-03-28T21:16:34.097Z","repository":{"id":274763289,"uuid":"922839096","full_name":"arxcode40/html5-php","owner":"arxcode40","description":"Generate HTML5 element using PHP","archived":false,"fork":false,"pushed_at":"2025-01-29T08:05:00.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T08:35:21.251Z","etag":null,"topics":["html","html5","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arxcode40.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-27T07:02:12.000Z","updated_at":"2025-01-29T08:05:03.000Z","dependencies_parsed_at":"2025-01-29T08:35:25.420Z","dependency_job_id":"95ccb984-30cb-4d07-a809-863cb0bbb7bf","html_url":"https://github.com/arxcode40/html5-php","commit_stats":null,"previous_names":["arxcode40/html5-php"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxcode40%2Fhtml5-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxcode40%2Fhtml5-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxcode40%2Fhtml5-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxcode40%2Fhtml5-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arxcode40","download_url":"https://codeload.github.com/arxcode40/html5-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246100580,"owners_count":20723479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","html5","php"],"created_at":"2025-02-03T07:47:31.476Z","updated_at":"2025-03-28T21:16:34.062Z","avatar_url":"https://github.com/arxcode40.png","language":"PHP","readme":"# HTML5 PHP\n\n## Description\nHelper for generate HTML5 element.\n\n## Syntax\n```php\nhtml5(\n    string $tag = 'doctype',\n    array $attributes = [],\n    mixed ...$children\n): string\n```\n\n## Parameters\n#### tag\n\nThe HTML5 tag.\n\n#### attributes\n\nThe HTML5 attributes.\n\n#### children\n\nThe HTML5 children.\n\n## Return Values\nReturn the HTML5 element.\n\n## Examples\n**Example #1: Basic example**\n\n```php\necho html5('div', ['class' =\u003e 'row'],\n    html5('div', ['class' =\u003e ['col-sm-8', 'col-md-6']], '')\n);\n```\n```html\n\u003cdiv class=\"row\"\u003e\n    \u003cdiv class=\"col-sm-8 col-md-6\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\n**Example #2: Doctype declaration**\n```php\necho html5();\n```\n```html\n\u003c!DOCTYPE html\u003e\n```\n\n**Example #3: Multiple children**\n```php\necho html5('ul', [],\n    html5('li', [], ''),\n    html5('li', [], '')\n);\n```\n```html\n\u003cul\u003e\n    \u003cli\u003e\u003c/li\u003e\n    \u003cli\u003e\u003c/li\u003e\n\u003c/ul\u003e\n```\n\n**Example #4: Self-closing tags**\n```php\necho html5('input', [\n    'required' =\u003e true,\n    'style' =\u003e [\n        'display' =\u003e 'block'\n    ],\n    'type' =\u003e 'text'\n]);\n```\n```html\n\u003cinput required style=\"display:block;\" type=\"text\"\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farxcode40%2Fhtml5-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farxcode40%2Fhtml5-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farxcode40%2Fhtml5-php/lists"}