{"id":19934428,"url":"https://github.com/motokraft/html-element","last_synced_at":"2025-08-30T18:10:34.317Z","repository":{"id":39857586,"uuid":"486880903","full_name":"motokraft/html-element","owner":"motokraft","description":"Работа с DOM деревом на PHP","archived":false,"fork":false,"pushed_at":"2023-06-22T14:29:53.000Z","size":150,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-24T15:00:29.811Z","etag":null,"topics":["composer","html","html-element","html5","php","php8","shortcode"],"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/motokraft.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-29T07:38:56.000Z","updated_at":"2024-03-24T15:00:29.812Z","dependencies_parsed_at":"2024-11-12T23:16:52.150Z","dependency_job_id":"a2d4219f-3991-427f-bb7b-3635a6a8b582","html_url":"https://github.com/motokraft/html-element","commit_stats":{"total_commits":50,"total_committers":1,"mean_commits":50.0,"dds":0.0,"last_synced_commit":"81318252a7cd63cc8bd98f18cf5e815d78a2be8f"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motokraft%2Fhtml-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motokraft%2Fhtml-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motokraft%2Fhtml-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motokraft%2Fhtml-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/motokraft","download_url":"https://codeload.github.com/motokraft/html-element/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241361394,"owners_count":19950379,"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":["composer","html","html-element","html5","php","php8","shortcode"],"created_at":"2024-11-12T23:16:48.194Z","updated_at":"2025-03-01T11:45:31.050Z","avatar_url":"https://github.com/motokraft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Работа с DOM деревом на PHP\n\n![Package version](https://img.shields.io/github/v/release/motokraft/html-element)\n![Total Downloads](https://img.shields.io/packagist/dt/motokraft/html-element)\n![PHP Version](https://img.shields.io/packagist/php-v/motokraft/html-element)\n![Repository Size](https://img.shields.io/github/repo-size/motokraft/html-element)\n![License](https://img.shields.io/packagist/l/motokraft/html-element)\n\n## Установка\n\nБиблиотека устанавливается с помощью пакетного менеджера [**Composer**](https://getcomposer.org/)\n\nДобавьте библиотеку в файл `composer.json` вашего проекта:\n\n```json\n{\n    \"require\": {\n        \"motokraft/html-element\": \"^1.0\"\n    }\n}\n```\n\nили выполните команду в терминале\n\n```\n$ php composer require motokraft/html-element\n```\n\nВключите автозагрузчик Composer в код проекта:\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n```\n\n## Константа \"DEBUG\"\nЭта константа определяет построение DOM дерева. Не забудьте определить эту константу в своем приложении.\n\n```php\ndefine('DEBUG', true);// Учитываются уровни вложенности html-элементов\ndefine('DEBUG', false);// Однострочный вывод без разрывов строк\n```\n\n## Пример инициализации\n\n```php\nuse \\Motokraft\\HtmlElement\\HtmlElement;\n\n$div = new HtmlElement('div');\necho $div;// \u003cdiv\u003e\u003c/div\u003e\n```\n\n## Документация\n\nПерейдите на страницу [**Wiki**](https://github.com/motokraft/html-element/wiki) что бы получить подробную документацию об использовании библиотеки с примерами.\n\n## Лицензия\n\nЭта библиотека находится под лицензией MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotokraft%2Fhtml-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmotokraft%2Fhtml-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotokraft%2Fhtml-element/lists"}