{"id":20791201,"url":"https://github.com/sikessem/dom","last_synced_at":"2025-03-12T00:43:53.670Z","repository":{"id":57050612,"uuid":"349089816","full_name":"Sikessem/dom","owner":"Sikessem","description":"Handle HTML5 and CSS3 easily","archived":false,"fork":false,"pushed_at":"2021-07-20T16:24:03.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-18T10:44:46.301Z","etag":null,"topics":["code-builder","code-generator","css","frontend","html","php-lib","sikessem","ske"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sikessem.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":"2021-03-18T13:45:07.000Z","updated_at":"2023-06-24T21:40:42.000Z","dependencies_parsed_at":"2022-08-24T05:10:52.540Z","dependency_job_id":null,"html_url":"https://github.com/Sikessem/dom","commit_stats":null,"previous_names":["sikessem/dom","siguici/dom.php","sikessem/endscript","sikessel/dom"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sikessem%2Fdom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sikessem%2Fdom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sikessem%2Fdom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sikessem%2Fdom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sikessem","download_url":"https://codeload.github.com/Sikessem/dom/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243136238,"owners_count":20241988,"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":["code-builder","code-generator","css","frontend","html","php-lib","sikessem","ske"],"created_at":"2024-11-17T15:42:19.803Z","updated_at":"2025-03-12T00:43:53.649Z","avatar_url":"https://github.com/Sikessem.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP DOM\n\nHandle HTML5 and CSS3 easily\n\nAn example to see how the code works :\n\n\nThe ```Styper``` code\n\n```Styper\n\u003chtml\u003e\n[lang=\"fr\"]\n{color:red;}\n(\n    \u003chead\u003e\n    (\n        \u003cmeta\u003e[charset=\"UTF-8\"]\n        \u003ctitle\u003e(Styper source)\n    )\n    \u003cbody\u003e\n    (\n        \u003cp\u003e[id=\"main-content\"]{color:blue}(Welcome to Styper !)\n    )\n)\n```\n\n\nThe equivalent ```HTML5``` code\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"fr\"\u003e\n    \u003chead\u003e\n        \u003cmeta charset=\"UTF-8\"/\u003e\n        \u003ctitle\u003eStyper source\u003c/title\u003e\n        \u003cstyle\u003e\n        html\n        {\n            color: red;\n        }\n        p#main-content\n        {\n            color: blue;\n        }\n        \u003c/style\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003cp\u003eWelcome to Styper !\u003c/p\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n\nThe equivalent ```PHP5``` code\n\n```php\n\u003c?php use Styper\\Document;\nrequire 'vendor/autoload.php';\n$document = new Document('html', 5);\n$document-\u003esetAttribute('lang', 'fr');\n$document-\u003esetProperty('color', 'red');\n$document-\u003ehead-\u003emeta-\u003echarset = 'UTF-8';\n$document-\u003etitle = 'Welcome to Styper !';\n$p = $document-\u003ecreateElement('p');\n$p-\u003esetAttribute('id', 'main-content');\n$p-\u003esetProperty('color', 'red');\n$p-\u003esetContent('Welcome to Styper !');\n$document-\u003eprepend($p, $body);\n$document-\u003esave();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsikessem%2Fdom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsikessem%2Fdom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsikessem%2Fdom/lists"}