{"id":19697140,"url":"https://github.com/janit/twigriot","last_synced_at":"2025-09-23T15:23:24.955Z","repository":{"id":69358448,"uuid":"42386718","full_name":"janit/twigriot","owner":"janit","description":"POC implementation of Rendering Riot.js tags in Twig","archived":false,"fork":false,"pushed_at":"2015-09-23T09:20:27.000Z","size":180,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-26T04:25:36.084Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.symfony.fi/twigriot","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-13T06:55:03.000Z","updated_at":"2022-08-28T02:42:55.000Z","dependencies_parsed_at":"2023-02-22T20:45:23.951Z","dependency_job_id":null,"html_url":"https://github.com/janit/twigriot","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/janit%2Ftwigriot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janit%2Ftwigriot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janit%2Ftwigriot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janit%2Ftwigriot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janit","download_url":"https://codeload.github.com/janit/twigriot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251494093,"owners_count":21598233,"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-11T19:37:19.330Z","updated_at":"2025-09-23T15:23:19.912Z","avatar_url":"https://github.com/janit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twigriot\nPOC implementation of Rendering Riot.js tags in Twig.\n\nTwig is everywhere. eZ Platform, Bolt, Drupal 8 and other popular projects have adopted it. At the same time Node.js and Web Components have risen to popularity. This repo demonstrates merging the popular PHP templating library Twig to Riot js, a lightweight React-like library with Node.js.\n\nThis Proof of Concept (POC) implementation of a twig function to render Riot.js (https://github.com/riot/riot) components on the server side using an example Yandex Maps component (https://www.symfony.fi/entry/build-a-web-component-with-riot-js-and-yandex-maps).\n\nRead the article describing the internals: https://www.symfony.fi/entry/rendering-riot-js-tags-in-twig-using-node-js\n\n## Install\n\nThe application is a pretty standard bare bones PHP application. You'll need node and npm installed for rendering as well. Once you've checked out the code, run composer and NPM installs.\n\n```bash\ncurl -s http://getcomposer.org/installer | php\nphp composer.phar install\nnpm i\n```\n\nThis is by no means an optimal setup nor will I take any responsibility for running this in production.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanit%2Ftwigriot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanit%2Ftwigriot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanit%2Ftwigriot/lists"}