{"id":24530817,"url":"https://github.com/binjuhor/php-to-html","last_synced_at":"2026-05-05T17:32:31.731Z","repository":{"id":40443612,"uuid":"377331188","full_name":"binjuhor/php-to-html","owner":"binjuhor","description":"From PHP to HTML","archived":false,"fork":false,"pushed_at":"2023-12-12T01:29:40.000Z","size":212,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-09T14:41:31.557Z","etag":null,"topics":["bash","html","php","scss"],"latest_commit_sha":null,"homepage":"","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binjuhor.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":"2021-06-16T00:55:35.000Z","updated_at":"2024-02-18T17:19:59.000Z","dependencies_parsed_at":"2024-11-29T21:51:03.887Z","dependency_job_id":null,"html_url":"https://github.com/binjuhor/php-to-html","commit_stats":null,"previous_names":["binjuhor/php-to-html"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/binjuhor/php-to-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binjuhor%2Fphp-to-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binjuhor%2Fphp-to-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binjuhor%2Fphp-to-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binjuhor%2Fphp-to-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binjuhor","download_url":"https://codeload.github.com/binjuhor/php-to-html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binjuhor%2Fphp-to-html/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["bash","html","php","scss"],"created_at":"2025-01-22T08:17:47.559Z","updated_at":"2026-05-05T17:32:31.709Z","avatar_url":"https://github.com/binjuhor.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Template PHP and HTML CSS JS project\n\nThis is an HTML project, based in PHP for including the files for quick publish the HTML files\n\n## Install\n\n+ Run `yarn` to install dependency\n+ Run `yarn watch` to watch SCSS files changed\n+ Run `yarn compressed` to compress the CSS file\n+ Run `yarn build` to build HTML files in `./build/export-html`\n\n## Files \u0026 Folders\n\n- `assets` contain SCSS, CSS, Images, JS files\n- `includes` contain included PHP functions file\n- `templates-parts` contain part of PHP files you can call the PHP files in this folder by `template_parts` function with an\n  array variable params.\n- `build.sh` to generate HTML files in `./build` folder\n- `package.json`\n\n## Development\n\nJust clone and do whatever you want with `PHP` and `SCSS` files.\\\nFor example, I have a template named `templates/list-post.php` so in `index.php` file we can call the template and passing data look like this.\n\n```PHP\ntemplate_part('list-post', [\n    'data' =\u003e [\n        [\n            'title' =\u003e 'post 1',\n            'description' =\u003e 'Description 1'\n        ],\n        [\n            'title' =\u003e 'post 2',\n            'description' =\u003e 'Description 2'\n        ],\n        [\n            'title' =\u003e 'post 3',\n            'description' =\u003e 'Description 3'\n        ]\n    ]\n]);\n```\n\nIn template file `templates-parts/list-post.php` can use\n\n```PHP\nif (isset($data)) {\n    foreach ($data as $datum) {\n        echo $datum['title'];\n        echo $datum['description'];\n    }\n}\n```\n\nChange the styles please use `*.scss` in folder `./assets/scss`\n\n### Contact developer\n\n---\n\nEmail: `kiemhd@outlook.com`\n\nTeam: xdevlabs.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinjuhor%2Fphp-to-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinjuhor%2Fphp-to-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinjuhor%2Fphp-to-html/lists"}