{"id":36981236,"url":"https://github.com/halaxa/zf2-latte","last_synced_at":"2026-01-13T22:51:04.090Z","repository":{"id":16668568,"uuid":"19424269","full_name":"halaxa/zf2-latte","owner":"halaxa","description":"Zf2 module for Latte templating engine integration","archived":true,"fork":false,"pushed_at":"2014-05-13T11:11:09.000Z","size":276,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-09-13T20:13:33.403Z","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/halaxa.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":"2014-05-04T10:31:29.000Z","updated_at":"2023-05-23T19:40:51.000Z","dependencies_parsed_at":"2022-09-15T20:50:14.198Z","dependency_job_id":null,"html_url":"https://github.com/halaxa/zf2-latte","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/halaxa/zf2-latte","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaxa%2Fzf2-latte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaxa%2Fzf2-latte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaxa%2Fzf2-latte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaxa%2Fzf2-latte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halaxa","download_url":"https://codeload.github.com/halaxa/zf2-latte/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaxa%2Fzf2-latte/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-13T22:51:03.332Z","updated_at":"2026-01-13T22:51:04.082Z","avatar_url":"https://github.com/halaxa.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/halaxa/zf2-latte.svg?branch=master)](https://travis-ci.org/halaxa/zf2-latte)\n\n# Latte integration module to Zend Framework 2\n\n[Latte](https://github.com/nette/latte) is state of the art templating system, part of [Nette framework](https://github.com/nette/nette), leaving others behind mainly in powerful XSS defence.\n\n## Work in progress\nThis is not a stable solution yet. Feel free to participate on development:)\n\n## What it does\nBasic latte support works. Zend view helpers work by accessing `$helper` object in template.\n\n```smarty\n{$helper-\u003eheadScript()} {* will be printed and escaped *}\n{?$helper-\u003eheadScript()} {* will not be printed *}\n```\n\nLayouts work. It by default disables native layout in ZF, as Latte has great and simple support for them, also supporting multiple layouts depending on template. If you still want to use default ZF layout system in some actions, you can. It disables is only if latte\ntemplate is active template.\n\nTranslation macro `{_}` is configurable via ['translator_callback'](https://github.com/halaxa/zf2-latte/blob/master/config/module.config.php#L26) key.\n\nLoads `template_map` and `template_path_stack`.\n\nSupports `n:href` which maps to `$helper-\u003eurl()`. Can be used like this even if you use PHP without short array syntax []:\n\n```smarty\n\u003ca n:href=\"application, [controller =\u003e application, action =\u003e index]\"\u003elink\u003c/a\u003e\n```\n\n## What it does not (yet)\nMacros like `control`, `form` and similar are not present, as they are based on Nette internal components.\n\n## Installation\nThis is [composer](http://getcomposer.org) package. For **library instalation** include into your `composer.json` following line\n```json\n\"require\": {\n    \"halaxa/zf2-latte\": \"dev-master\"\n}\n```\nFor **development installation** and running tests you can do something like:\n```bash\ncomposer create-project halaxa/zf2-latte zf2-latte dev-master --prefer-source --no-install --keep-vcs\ncd zf2-latte\ncomposer install --prefer-dist --dev\n./vendor/bin/tester test/tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalaxa%2Fzf2-latte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalaxa%2Fzf2-latte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalaxa%2Fzf2-latte/lists"}