{"id":26693861,"url":"https://github.com/slogsdon/php-web-component-ssr","last_synced_at":"2025-04-13T00:34:33.413Z","repository":{"id":57053388,"uuid":"177735864","full_name":"slogsdon/php-web-component-ssr","owner":"slogsdon","description":"Provides server-side rendering support for native web components / custom elements","archived":false,"fork":false,"pushed_at":"2019-08-06T05:21:26.000Z","size":27,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T00:34:08.043Z","etag":null,"topics":["server-side-rendering","web-components"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/slogsdon/web-component-ssr","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/slogsdon.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":"2019-03-26T07:26:27.000Z","updated_at":"2025-04-02T21:03:22.000Z","dependencies_parsed_at":"2022-08-24T04:11:44.074Z","dependency_job_id":null,"html_url":"https://github.com/slogsdon/php-web-component-ssr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slogsdon%2Fphp-web-component-ssr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slogsdon%2Fphp-web-component-ssr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slogsdon%2Fphp-web-component-ssr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slogsdon%2Fphp-web-component-ssr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slogsdon","download_url":"https://codeload.github.com/slogsdon/php-web-component-ssr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650484,"owners_count":21139670,"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":["server-side-rendering","web-components"],"created_at":"2025-03-26T18:27:31.976Z","updated_at":"2025-04-13T00:34:33.394Z","avatar_url":"https://github.com/slogsdon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# web-component-ssr\n\n\u003e Provides server-side rendering support for native web components / custom elements\n\n### Features\n\n- Plain PHP and JavaScript\n- Native [web components](https://developer.mozilla.org/en-US/docs/Web/Web_Components)\n- Minimal dependencies\n\n### Reasoning\n\nPHP is easy to install, if not already present on you computer. PHP runs pretty much everywhere. PHP is flexible.\n\nJavaScript is in a similar boat. It's readily available and flexible. Modern browser JavaScript is more than capable.\n\nThis project also scratches an itch to see how much PHP and JavaScript can work together to handle this problem domain.\n\n## Requirements\n\n- [PHP 7.1+](http://www.php.net/)\n- [Composer](https://getcomposer.org/) (for PHP autoloader only)\n- [`web-component-hydration`](https://www.npmjs.com/package/web-component-hydration)\n\n## Running the demo\n\n```\ncd examples/simple \u0026\u0026 yarn install\ncd ../.. \u0026\u0026 composer start\n```\n\nThis will install a local copy of `web-component-hydration` and call the `start` Composer script defined in `composer.json` and execute the built-in PHP server.\n\nOn page load, PHP will output a template file as HTML. It will also prepare the client-side template. Once the DOM has loaded, the JavaScript will load the web component's custom element and replace all PHP created instances of the template with browser/JavaScript created instances.\n\n## License\n\nThis project is licensed under the MIT License. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslogsdon%2Fphp-web-component-ssr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslogsdon%2Fphp-web-component-ssr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslogsdon%2Fphp-web-component-ssr/lists"}