{"id":13617005,"url":"https://github.com/symfony/templating","last_synced_at":"2025-05-14T04:07:35.225Z","repository":{"id":50480207,"uuid":"1398668","full_name":"symfony/templating","owner":"symfony","description":"Provides all the tools needed to build any kind of template system","archived":false,"fork":false,"pushed_at":"2024-10-27T13:53:11.000Z","size":679,"stargazers_count":1027,"open_issues_count":0,"forks_count":18,"subscribers_count":4,"default_branch":"6.4","last_synced_at":"2025-05-03T07:39:24.125Z","etag":null,"topics":["component","php","symfony","symfony-component"],"latest_commit_sha":null,"homepage":"https://symfony.com/templating","language":"PHP","has_issues":false,"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/symfony.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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},"funding":{"github":"fabpot","tidelift":"packagist/symfony/symfony","custom":"https://symfony.com/sponsor"}},"created_at":"2011-02-22T18:07:06.000Z","updated_at":"2025-03-05T09:35:36.000Z","dependencies_parsed_at":"2022-08-24T13:37:59.473Z","dependency_job_id":"a0627037-94a2-4fec-830b-079357943df5","html_url":"https://github.com/symfony/templating","commit_stats":{"total_commits":345,"total_committers":88,"mean_commits":"3.9204545454545454","dds":0.6956521739130435,"last_synced_commit":"e27b6ea8d737cb0dfd41b2f5f055c9ed677afa33"},"previous_names":[],"tags_count":549,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftemplating","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftemplating/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftemplating/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Ftemplating/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony","download_url":"https://codeload.github.com/symfony/templating/tar.gz/refs/heads/6.4","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254069216,"owners_count":22009511,"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":["component","php","symfony","symfony-component"],"created_at":"2024-08-01T20:01:35.808Z","updated_at":"2025-05-14T04:07:35.192Z","avatar_url":"https://github.com/symfony.png","language":"PHP","funding_links":["https://github.com/sponsors/fabpot","https://tidelift.com/funding/github/packagist/symfony/symfony","https://symfony.com/sponsor"],"categories":["PHP"],"sub_categories":[],"readme":"Templating Component\n====================\n\nThe Templating component provides all the tools needed to build any kind of\ntemplate system.\n\nIt provides an infrastructure to load template files and optionally monitor them\nfor changes. It also provides a concrete template engine implementation using\nPHP with additional tools for escaping and separating templates into blocks and\nlayouts.\n\nGetting Started\n---------------\n\n```\n$ composer require symfony/templating\n```\n\n```php\nuse Symfony\\Component\\Templating\\Loader\\FilesystemLoader;\nuse Symfony\\Component\\Templating\\PhpEngine;\nuse Symfony\\Component\\Templating\\Helper\\SlotsHelper;\nuse Symfony\\Component\\Templating\\TemplateNameParser;\n\n$filesystemLoader = new FilesystemLoader(__DIR__.'/views/%name%');\n\n$templating = new PhpEngine(new TemplateNameParser(), $filesystemLoader);\n$templating-\u003eset(new SlotsHelper());\n\necho $templating-\u003erender('hello.php', ['firstname' =\u003e 'Fabien']);\n\n// hello.php\nHello, \u003c?= $view-\u003eescape($firstname) ?\u003e!\n```\n\nResources\n---------\n\n * [Contributing](https://symfony.com/doc/current/contributing/index.html)\n * [Report issues](https://github.com/symfony/symfony/issues) and\n   [send Pull Requests](https://github.com/symfony/symfony/pulls)\n   in the [main Symfony repository](https://github.com/symfony/symfony)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Ftemplating","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony%2Ftemplating","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Ftemplating/lists"}