{"id":18352149,"url":"https://github.com/abgeo/gen-html","last_synced_at":"2026-03-11T05:31:44.502Z","repository":{"id":52413064,"uuid":"198454123","full_name":"ABGEO/gen-html","owner":"ABGEO","description":"PHP Library for generating HTML document","archived":false,"fork":false,"pushed_at":"2021-04-29T21:40:58.000Z","size":29,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T22:22:27.246Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ABGEO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"ABGEO","open_collective":"ABGEO","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/ABGEO"]}},"created_at":"2019-07-23T15:06:00.000Z","updated_at":"2021-05-18T18:52:52.000Z","dependencies_parsed_at":"2022-09-07T17:36:22.370Z","dependency_job_id":null,"html_url":"https://github.com/ABGEO/gen-html","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABGEO%2Fgen-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABGEO%2Fgen-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABGEO%2Fgen-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABGEO%2Fgen-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ABGEO","download_url":"https://codeload.github.com/ABGEO/gen-html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478152,"owners_count":20945258,"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":[],"created_at":"2024-11-05T21:35:00.621Z","updated_at":"2026-03-11T05:31:44.474Z","avatar_url":"https://github.com/ABGEO.png","language":"PHP","funding_links":["https://patreon.com/ABGEO","https://opencollective.com/ABGEO","https://www.paypal.me/ABGEO"],"categories":[],"sub_categories":[],"readme":"# gen-html\nPHP Library for generating HTML document\n\n[![GitHub license](https://img.shields.io/github/license/ABGEO07/gen-html.svg)](https://github.com/ABGEO07/gen-html/blob/master/LICENSE)\n\n[![GitHub release](https://img.shields.io/github/release/ABGEO07/gen-html.svg)](https://github.com/ABGEO07/gen-html/releases)\n\n[![Packagist Version](https://img.shields.io/packagist/v/abgeo/gen-html.svg \"Packagist Version\")](https://packagist.org/packages/abgeo/gen-html \"Packagist Version\")\n\n---\n\n## Installation\n\nYou can install this library with [Composer](https://getcomposer.org/):\n\n- `composer require abgeo/gen-html`\n    \n## Usage\n\nInclude composer autoloader in your main file (Ex.: index.php)\n\n- `require_once __DIR__ . '/../vendor/autoload.php';`\n\n### Classes\n\nThe library has two classes:\n\n* `\\ABGEO\\HTMLGenerator\\Document` - For generating Full HTML5 Document;\n* `\\ABGEO\\HTMLGenerator\\Element` - For generating HTML element;\n\n#### Class `Document`\n\nImport `ABGEO\\HTMLGenerator\\Document` class.\n\n##### Public Methods\n\n- `setLanguage()` - Set document content language (Document::LANG_* constants);\n- `setCharset()` - Set charset for document (Document::CHARSET_* constants);\n- `setTitle()` - Set Document title;\n- `setDescription()` - Set Document description;\n- `setKeywords()` - Set Document keywords;\n- `addStyle()` - Add CSS file path;\n- `setBody()` - Set Document body content;\n- `addScript()` - Set JS file path;\n- `getDocument()` - Get generated HTML code;\n\n**Note: See usage in [example.php](examples/example.php)**\n\n#### Class `Element`\n\nImport `ABGEO\\HTMLGenerator\\Element` class.\n\n##### Public Methods\n\n- `add2Content()` - Add given string to HTML content;\n- `getHtml()` - Get HTML Content;\n- `concatenateElements()` - Concatenate given elements;\n- `createLink()` - Generate a tag;\n- `createArticle()` - Generate article tag;\n- `createBlockquote()` - Generate blockquote tag;\n- `createBreak()` - Generate br tag;\n- `createCode()` - Generate code tag;\n- `createDiv()` - Generate div tag;\n- `createEm()` - Generate em tag;\n- `createForm()` - Generate form tag;\n- `createFooter()` - Generate footer tag;\n- `createHeading()` - Generate h1-h6 tags;\n- `createHeader()` - Generate header tag;\n- `createLine()` - Generate hr tag;\n- `createI()` - Generate i tag;\n- `createImg()` - Generate img tag;\n- `createInput()` - Generate input tag;\n- `createLabel()` - Generate label tag;\n- `createList()` - Generate ol or ul tags;\n- `createNav()` - Generate nav tag;\n- `createParagraph()` - Generate p tag;\n- `createPre()` - Generate pre tag;\n- `createProgress()` - Generate progress tag;\n- `createSection()` - Generate section tag;\n- `createSelect()` - Generate select tag;\n- `createSpan()` - Generate span tag;\n- `createStrong()` - Generate strong tag;\n- `createSub()` - Generate sub tag;\n- `createSup()` - Generate sup tag;\n- `createTable()` - Generate table tag;\n- `createTextarea()` - Generate textarea tag;\n- `clear()` - Clear HTML content;\n\n**Note: See usage in [example.php](examples/example.php)**\n\n## Examples\n\nSee full example in [example.php](examples/example.php) and sample Bootstrap 4 page in \n[bootstrap.php](examples/bootstrap.php).\n\n## Authors\n\n* **Temuri Takalandze** - *Initial work* - [ABGEO](https://abgeo.dev)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabgeo%2Fgen-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabgeo%2Fgen-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabgeo%2Fgen-html/lists"}