{"id":16184339,"url":"https://github.com/mattmezza/slim-handlebars-view","last_synced_at":"2026-05-09T16:44:13.640Z","repository":{"id":62525311,"uuid":"85767350","full_name":"mattmezza/slim-handlebars-view","owner":"mattmezza","description":"A view for slim based on handlebars.","archived":false,"fork":false,"pushed_at":"2017-04-03T19:47:56.000Z","size":10,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-12T18:42:57.183Z","etag":null,"topics":["handlebars","php","slim","slim-framework","template","view"],"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/mattmezza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-22T00:26:08.000Z","updated_at":"2017-03-22T00:54:43.000Z","dependencies_parsed_at":"2022-11-02T13:47:33.151Z","dependency_job_id":null,"html_url":"https://github.com/mattmezza/slim-handlebars-view","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mattmezza/slim-handlebars-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmezza%2Fslim-handlebars-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmezza%2Fslim-handlebars-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmezza%2Fslim-handlebars-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmezza%2Fslim-handlebars-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattmezza","download_url":"https://codeload.github.com/mattmezza/slim-handlebars-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmezza%2Fslim-handlebars-view/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278956388,"owners_count":26075238,"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-10-08T02:00:06.501Z","response_time":56,"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":["handlebars","php","slim","slim-framework","template","view"],"created_at":"2024-10-10T07:09:53.978Z","updated_at":"2025-10-08T14:17:52.319Z","avatar_url":"https://github.com/mattmezza.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slim Framework Handlebars View\n\n[![Build Status](https://travis-ci.org/mattmezza/slim-handlebars-view.svg?branch=master)](https://travis-ci.org/mattmezza/slim-handlebars-view)\n\nThis is a Slim Framework view helper built on top of the Handlebars templating component. You can use this component to create and render templates in your Slim Framework application. It works with [handlebars.php by xamin project](https://github.com/XaminProject/handlebars.php).\n\n## Install\n\nVia [Composer](https://getcomposer.org/)\n\n```bash\n$ composer require mattmezza/slim-handlebars-view\n```\n\nRequires Slim Framework 3 and PHP 5.5.0 or newer.\n\n## Usage\n\n```php\n// Create Slim app\n$app = new \\Slim\\App();\n\n// Fetch DI Container\n$container = $app-\u003egetContainer();\n\n// Register Twig View helper\n$container['view'] = new \\Slim\\Views\\Handlebars(\n    'path/to/templates',\n    'partials',\n    [\n        'extension' =\u003e 'hbs' // default is html\n    ]);\n\n// Define named route\n$app-\u003eget('/hello/{name}', function ($request, $response, $args) {\n    return $this-\u003eview-\u003erender($response, 'profile', [\n        'name' =\u003e $args['name']\n    ]);\n})-\u003esetName('profile');\n\n// Run app\n$app-\u003erun();\n```\n\n## Testing\n\n```bash\nphpunit\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Matteo Merola](https://github.com/mattmezza)\n\n## License\n\nThe MIT License (MIT). Please see [License File](license.md) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmezza%2Fslim-handlebars-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattmezza%2Fslim-handlebars-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmezza%2Fslim-handlebars-view/lists"}