{"id":33981199,"url":"https://github.com/frdl/php-templater","last_synced_at":"2026-05-25T20:41:35.443Z","repository":{"id":62507172,"uuid":"201398372","full_name":"frdl/php-templater","owner":"frdl","description":"Templates {{my.var}}  for ['my'=\u003e['var'=\u003e'Hello, World']]","archived":false,"fork":false,"pushed_at":"2020-02-04T06:51:35.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-02T15:43:55.285Z","etag":null,"topics":["php-templater"],"latest_commit_sha":null,"homepage":null,"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/frdl.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-08-09T05:42:53.000Z","updated_at":"2020-02-04T06:50:42.000Z","dependencies_parsed_at":"2022-11-02T10:01:57.145Z","dependency_job_id":null,"html_url":"https://github.com/frdl/php-templater","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/frdl/php-templater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fphp-templater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fphp-templater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fphp-templater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fphp-templater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frdl","download_url":"https://codeload.github.com/frdl/php-templater/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fphp-templater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27699641,"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","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["php-templater"],"created_at":"2025-12-13T03:38:15.946Z","updated_at":"2025-12-13T03:38:16.748Z","avatar_url":"https://github.com/frdl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-templater\nThis package can process and render templates similar to AngularJS.\n\nTemplates {{my.var}}  for ['my'=\u003e['var'=\u003e'Hello, World']]\n\n# Examples\n\n## frdl\\Templater\\SimpleDotNotationReplacer\nBased on regular expression.\n\n````php\n$arr = [\n    'test' =\u003e [\n        'message' =\u003e 'Hello, World',\n    ],\n\n];\n\n\necho \\frdl\\Templater\\SimpleDotNotationReplacer::replace(\\frdl\\Context::create($arr), \n    'Message: {{test.message}}');\n    //Message: Hello, World\n````\n\n## frdl\\Templater\\AdvancedReplacer\nBased on https://github.com/wmde/php-vuejs-templating .\n\n````php\n$arr = [\n    'show' =\u003e false,\n    'test' =\u003e [\n        'message' =\u003e 'Hello, World',\n    ],\n    'items' =\u003e [\n        [ 'property' =\u003e 'value1' ],\n        [ 'property' =\u003e 'value2' ],\n    ],\n];\n\n\necho \\frdl\\Templater\\AdvancedReplacer::replace(\\frdl\\Context::create($arr),   \n  '\u003cdiv\u003e\n     \u003ch1 ng-bind=\"title\"\u003e\u003c/h1\u003e\n     \u003cp\u003eMessage: {{test.message}}\u003c/p\u003e\n     \u003cp ng-show=\"show\"\u003ethis should be hidden\u003c/p\u003e\n     \u003cp ng-if=\"!show\"\u003ethis should be visible\u003c/p\u003e\n     \u003cp\u003e\u003ca ng-repeat=\"item in items\"\u003e{{item.property|ucfirst}}\u003c/a\u003e\u003c/p\u003e\n    \n    \u003c/div\u003e');\n  \n/*\n//Renders to:  \n\u003cdiv\u003e\n     \u003ch1\u003e\u003cp\u003eTemplate Test Title\u003c/p\u003e\u003c/h1\u003e\n     \u003cp\u003eMessage: Hello, World\u003c/p\u003e\n     \n     \u003cp\u003ethis should be visible\u003c/p\u003e\n     \u003cp\u003e\u003ca\u003eValue1\u003c/a\u003e\u003ca\u003eValue2\u003c/a\u003e\u003c/p\u003e\n    \n    \u003c/div\u003e\n\n*/\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrdl%2Fphp-templater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrdl%2Fphp-templater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrdl%2Fphp-templater/lists"}