{"id":21467434,"url":"https://github.com/elusivecodes/fyrehtmlhelper","last_synced_at":"2025-07-15T05:31:28.062Z","repository":{"id":62549629,"uuid":"486921124","full_name":"elusivecodes/FyreHTMLHelper","owner":"elusivecodes","description":"FyreHTMLHelper is a free, open-source HTML helper library for PHP.","archived":false,"fork":false,"pushed_at":"2024-06-29T01:49:17.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-06T20:17:02.093Z","etag":null,"topics":["html","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/elusivecodes.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":"2022-04-29T09:54:07.000Z","updated_at":"2024-06-29T01:49:13.000Z","dependencies_parsed_at":"2024-10-26T12:45:25.942Z","dependency_job_id":"05115da1-9986-4ad4-ade3-bc3309b88b61","html_url":"https://github.com/elusivecodes/FyreHTMLHelper","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreHTMLHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreHTMLHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreHTMLHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreHTMLHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elusivecodes","download_url":"https://codeload.github.com/elusivecodes/FyreHTMLHelper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226017543,"owners_count":17560536,"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","php"],"created_at":"2024-11-23T08:18:07.039Z","updated_at":"2025-07-15T05:31:28.051Z","avatar_url":"https://github.com/elusivecodes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FyreHTMLHelper\r\n\r\n**FyreHTMLHelper** is a free, open-source HTML helper library for *PHP*.\r\n\r\n\r\n## Table Of Contents\r\n- [Installation](#installation)\r\n- [Basic Usage](#basic-usage)\r\n- [Methods](#methods)\r\n\r\n\r\n\r\n## Installation\r\n\r\n**Using Composer**\r\n\r\n```\r\ncomposer require fyre/htmlhelper\r\n```\r\n\r\nIn PHP:\r\n\r\n```php\r\nuse Fyre\\Utility\\HtmlHelper;\r\n```\r\n\r\n\r\n## Basic Usage\r\n\r\n- `$config` is a [*Config*](https://github.com/elusivecodes/FyreConfig).\r\n\r\n```php\r\n$html = new HtmlHelper($config);\r\n```\r\n\r\nThe default character set will be resolved from the \"*App.charset*\" key in the *Config*.\r\n\r\n**Autoloading**\r\n\r\nIt is recommended to bind the *HtmlHelper* to the [*Container*](https://github.com/elusivecodes/FyreContainer) as a singleton.\r\n\r\n```php\r\n$container-\u003esingleton(HtmlHelper::class);\r\n```\r\n\r\nAny dependencies will be injected automatically when loading from the [*Container*](https://github.com/elusivecodes/FyreContainer).\r\n\r\n```php\r\n$html = $container-\u003euse(HtmlHelper::class);\r\n```\r\n\r\n\r\n## Methods\r\n\r\n**Attributes**\r\n\r\nGenerate an attribute string.\r\n\r\n- `$options` is an array containing the attributes.\r\n\r\n```php\r\n$attributes = $html-\u003eattributes($options);\r\n```\r\n\r\n**Escape**\r\n\r\nEscape characters in a string for use in HTML.\r\n\r\n- `$string` is the string to escape.\r\n\r\n```php\r\n$escaped = $html-\u003eescape($string);\r\n```\r\n\r\n**Get Charset**\r\n\r\nGet the character set.\r\n\r\n```php\r\n$charset = $html-\u003egetCharset();\r\n```\r\n\r\n**Set Charset**\r\n\r\nSet the character set.\r\n\r\n- `$charset` is a string representing the character set.\r\n\r\n```php\r\n$html-\u003esetCharset($charset);\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyrehtmlhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felusivecodes%2Ffyrehtmlhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyrehtmlhelper/lists"}