{"id":19144368,"url":"https://github.com/piotrpress/templater","last_synced_at":"2026-02-23T16:10:37.983Z","repository":{"id":57041810,"uuid":"350801046","full_name":"PiotrPress/templater","owner":"PiotrPress","description":"This library is a simple template engine file loader with variable support.","archived":false,"fork":false,"pushed_at":"2024-09-15T16:41:47.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T11:29:09.223Z","etag":null,"topics":["display","php","php-template-engine","render","template","template-engine","templater","templates"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"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/PiotrPress.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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-03-23T17:33:10.000Z","updated_at":"2024-09-15T16:41:23.000Z","dependencies_parsed_at":"2024-11-09T07:46:48.227Z","dependency_job_id":null,"html_url":"https://github.com/PiotrPress/templater","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"8644c21a2ce3f4f42f2defe4e5289a5734423445"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/PiotrPress/templater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrPress%2Ftemplater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrPress%2Ftemplater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrPress%2Ftemplater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrPress%2Ftemplater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiotrPress","download_url":"https://codeload.github.com/PiotrPress/templater/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrPress%2Ftemplater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275583364,"owners_count":25490651,"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-09-17T02:00:09.119Z","response_time":84,"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":["display","php","php-template-engine","render","template","template-engine","templater","templates"],"created_at":"2024-11-09T07:34:40.565Z","updated_at":"2025-09-17T10:48:18.377Z","avatar_url":"https://github.com/PiotrPress.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Templater\n\nThis library is a simple template engine file loader with variable support.\n\n## Installation\n\n```console\ncomposer require piotrpress/templater\n```\n\n## Usage\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse PiotrPress\\Templater;\nuse PiotrPress\\Templater\\Template;\n\n$templater = new Templater( __DIR__ . '/templates' );\n\n// Example #1\n$templater-\u003edisplay( 'template', [\n    'var1' =\u003e 'value1',\n    'var2' =\u003e 'value2'\n] );\n\n// Example #2\necho $templater-\u003erender( 'template', [\n    'var1' =\u003e 'value1',\n    'var2' =\u003e 'value2'\n] );\n\n// Example #3\necho new Template( __DIR__ . '/templates/template.php', [\n    'var1' =\u003e 'value1',\n    'var2' =\u003e 'value2'\n] );\n```\n\n**Note:** All Errors in templates will be converted to Exceptions.\n\n## License\n\n[GPL3.0](license.txt)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrpress%2Ftemplater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotrpress%2Ftemplater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrpress%2Ftemplater/lists"}