{"id":22692941,"url":"https://github.com/ldrahnik/view-keeper","last_synced_at":"2026-04-29T04:39:13.837Z","repository":{"id":26666289,"uuid":"30122794","full_name":"ldrahnik/view-keeper","owner":"ldrahnik","description":"Keeper of app views.","archived":false,"fork":false,"pushed_at":"2017-09-17T20:29:25.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T05:35:57.507Z","etag":null,"topics":["nette","package","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ldrahnik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-31T19:06:48.000Z","updated_at":"2017-09-17T20:10:49.000Z","dependencies_parsed_at":"2022-07-25T16:00:16.200Z","dependency_job_id":null,"html_url":"https://github.com/ldrahnik/view-keeper","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ldrahnik/view-keeper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldrahnik%2Fview-keeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldrahnik%2Fview-keeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldrahnik%2Fview-keeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldrahnik%2Fview-keeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ldrahnik","download_url":"https://codeload.github.com/ldrahnik/view-keeper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldrahnik%2Fview-keeper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261243221,"owners_count":23129596,"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":["nette","package","php"],"created_at":"2024-12-10T02:08:31.936Z","updated_at":"2026-04-29T04:39:08.794Z","avatar_url":"https://github.com/ldrahnik.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ldrahnik/view-keeper\n======\n\n[![Build Status](https://travis-ci.org/ldrahnik/view-keeper.svg)](https://travis-ci.org/ldrahnik/view-keeper)\n[![Latest stable](https://img.shields.io/packagist/v/ldrahnik/view-keeper.svg)](https://packagist.org/packages/ldrahnik/view-keeper)\n[![Downloads total](https://img.shields.io/packagist/dt/ldrahnik/view-keeper.svg?style=flat-square)](https://packagist.org/packages/ldrahnik/view-keeper)\n\nKeeper of app views.\n\nBenefits\n-------\n\n- View-keeper is easy way to separate files from logic (e.g. separate to repositories, it has benefits, rights etc.)\n- Change location of files is now easier than ever before\n\nReference\n-------\n\n- [Anee - track manager for sharing tracks and photos](https://github.com/anee/anee)\n- [TodoMVC - example nette project](https://github.com/ldrahnik/nette-todomvc)\n\n\nRequirements\n------------\n\nldrahnik/view-keeper requires PHP 5.4 or higher.\n\n- [Nette Framework](https://github.com/nette/nette)\n- [url-matcher](https://github.com/ldrahnik/url-matcher)\n\nInstallation\n------------\n\nInstall keeper to your project using  [Composer](http://getcomposer.org/):\n\n```sh\n$ composer require ldrahnik/view-keeper\n```\n\nUsage\n-----\n\nRegister extension in config file\n\n```sh\nextensions:\n\tkeeper: ViewKeeper\\DI\\ViewKeeperExtension\n\nkeeper:\n\tcontrols: foo/controls/\u003cname\u003e/\u003cview\u003e\n\tfiles: foo/\u003cname\u003e/\u003cview\u003e\n```\n\nIs able to set up path via these patterns\n\n```sh\n\t\u003cmodule\u003e\t\t# \u003cBackend\u003eModule\n\t\u003cname\u003e\t\t\t# \u003cBackend\u003eModule\u003c:Base\u003ePresenter\n\t\t\t\t\t# \u003cBase\u003ePresenter\n\t\t\t\t\t# \u003cUserAdd\u003e\n\t\u003cview\u003e \t\t\t# \u003cdefault\u003e.latte\n```\n\nSuffix is not configurable (still you can change that as param of `getView` method) - always will be in the end over dot\n\nAnd inject\n\n```php\n\t/** @var \\ViewKeeper\\ViewKeeper @inject */\n\tprivate $keeper;\n```\n\nSummary\n-------\nView keeper tries to be ultra-light package and simple to use. You will love it :)\n\nFor more information about path enrolment please check [url-matcher](https://github.com/ldrahnik/url-matcher)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldrahnik%2Fview-keeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fldrahnik%2Fview-keeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldrahnik%2Fview-keeper/lists"}