{"id":15062260,"url":"https://github.com/codemix/handlebarsphp","last_synced_at":"2025-04-10T10:04:39.573Z","repository":{"id":9297533,"uuid":"11134405","full_name":"codemix/handlebarsphp","owner":"codemix","description":"Transpiles handlebars templates into native PHP templates","archived":false,"fork":false,"pushed_at":"2013-07-06T00:13:49.000Z","size":115,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T08:54:52.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/codemix.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":"2013-07-02T20:26:12.000Z","updated_at":"2019-08-13T15:23:05.000Z","dependencies_parsed_at":"2022-09-02T18:23:46.248Z","dependency_job_id":null,"html_url":"https://github.com/codemix/handlebarsphp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fhandlebarsphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fhandlebarsphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fhandlebarsphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fhandlebarsphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemix","download_url":"https://codeload.github.com/codemix/handlebarsphp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198879,"owners_count":21063627,"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-09-24T23:33:13.540Z","updated_at":"2025-04-10T10:04:39.552Z","avatar_url":"https://github.com/codemix.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HandlebarsPHP\n\n### Note: this is alpha quality software, use at your own risk.\n\nTurns handlebars templates into executable PHP code ahead of time, ships with built in support for Yii 1.x.\nbut allows customisation of output to support different frameworks.\n\n# Installation\n\nInstall via composer, package name is `codemix/handlebarsphp`.\n\n# Differences from HandlebarsJS\n\nHandlebarsPHP aims to be compatible with a subset of HandlebarsJS. For performance reasons it compiles the templates\nahead of time and this necessitates some restrictions.\n\n1. Since it's impossible to tell whether a tag like `{{foo}}` is a helper or a property at compile time, we assume\nthat its a property. We differentiate helpers by looking for arguments, for example `{{foo 1}}` will be interpretted\nas a function call because it has an argument. This means that it is impossible to call a helper with zero arguments.\n\n2. `{{@key}}` and `{{@index}}` always point to the same variable, because `foreach` is used for all iteration.\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemix%2Fhandlebarsphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemix%2Fhandlebarsphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemix%2Fhandlebarsphp/lists"}