{"id":41214958,"url":"https://github.com/phore/phore-html","last_synced_at":"2026-01-22T23:58:43.984Z","repository":{"id":57039192,"uuid":"140843486","full_name":"phore/phore-html","owner":"phore","description":"Html Elements and fluent html api","archived":false,"fork":false,"pushed_at":"2023-06-06T12:39:25.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-26T22:59:05.144Z","etag":null,"topics":["html-element","phore-html"],"latest_commit_sha":null,"homepage":"https://infracamp.org/project/phore/","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/phore.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}},"created_at":"2018-07-13T12:18:37.000Z","updated_at":"2023-06-06T12:39:31.000Z","dependencies_parsed_at":"2022-08-24T00:51:16.068Z","dependency_job_id":null,"html_url":"https://github.com/phore/phore-html","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/phore/phore-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phore","download_url":"https://codeload.github.com/phore/phore-html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phore%2Fphore-html/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28675278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-element","phore-html"],"created_at":"2026-01-22T23:58:43.292Z","updated_at":"2026-01-22T23:58:43.977Z","avatar_url":"https://github.com/phore.png","language":"PHP","readme":"# Phore HTML Toolkit\n\n- Fluent API for creating HTML Elements\n- Create, alter, render\n\n## Basic example\n\n```php\n// Create a div element:\n$elem = fhtml(\"div @id=main @class=website\");\n\n// Append a \u003cdiv id=content\u003e to the \n$elem[] = [\n    \"div @id=content\" =\u003e \"Some Content\"\n];\n\n// Append paragraph to content div: \n$elem[\"?#content\"][] = [\"p\" =\u003e \"Some escaped content\"];\n\n// Render full page including html-header\necho $elem-\u003erenderPage(); \n```\nwill output:\n\n```html\n\u003cdiv id=\"main\" class=\"website\"\u003e\n    \u003cdiv id=\"content\"\u003e\n        Some Content\n        \u003cp\u003eSome escaped content\u003c/p\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n\n\n## Creating html structures\n\n\n\n```\n$doc = fhtml(\"div @id=name2 @class=bordered\");\n$doc-\u003ealter();\n```\n\n\n## Rendering Templates\n\n\n\n## Appending to Templates\n\nUse the array append syntax (`$template[] =`) to append elements to \nan existing element:\n\n```\n$t = fhtml();\n\n$t[] = [\"@h1\" =\u003e \"Hello World\"];\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphore%2Fphore-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphore%2Fphore-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphore%2Fphore-html/lists"}