{"id":22692942,"url":"https://github.com/ldrahnik/theme-keeper","last_synced_at":"2026-05-03T06:39:43.058Z","repository":{"id":29513880,"uuid":"33052214","full_name":"ldrahnik/theme-keeper","owner":"ldrahnik","description":"Keeper of app themes.","archived":false,"fork":false,"pushed_at":"2017-09-17T20:31:04.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-08T17:43:21.178Z","etag":null,"topics":["deprecated","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-03-28T22:12:08.000Z","updated_at":"2017-09-25T18:18:27.000Z","dependencies_parsed_at":"2022-08-31T20:02:41.524Z","dependency_job_id":null,"html_url":"https://github.com/ldrahnik/theme-keeper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ldrahnik/theme-keeper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldrahnik%2Ftheme-keeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldrahnik%2Ftheme-keeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldrahnik%2Ftheme-keeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldrahnik%2Ftheme-keeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ldrahnik","download_url":"https://codeload.github.com/ldrahnik/theme-keeper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldrahnik%2Ftheme-keeper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32560912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["deprecated","nette","package","php"],"created_at":"2024-12-10T02:08:31.959Z","updated_at":"2026-05-03T06:39:43.045Z","avatar_url":"https://github.com/ldrahnik.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Strongly recommend use [Kappa/ThemesManager](https://github.com/Kappa-org/ThemesManager). ###\nIf you use `Modules` structure [Kappa/ThemesManager](https://github.com/Kappa-org/ThemesManager) is more effective if not that is still better. Forgot on this package it was just attempt. Is deprecated and will not be more developed.\n\n\nldrahnik/~~theme-keeper~~\n======\n\n[![Build Status](https://travis-ci.org/ldrahnik/theme-keeper.svg)](https://travis-ci.org/ldrahnik/theme-keeper)\n[![Latest stable](https://img.shields.io/packagist/v/ldrahnik/theme-keeper.svg)](https://packagist.org/packages/ldrahnik/theme-keeper)\n[![Downloads total](https://img.shields.io/packagist/dt/ldrahnik/theme-keeper.svg?style=flat-square)](https://packagist.org/packages/ldrahnik/theme-keeper)\n\nKeeper of app themes.\n\nRequirements\n------------\n\nldrahnik/theme-keeper requires PHP 5.4 or higher.\n\n- [Nette Framework](https://github.com/nette/nette)\n- [view-keeper](https://github.com/ldrahnik/view-keeper)\n\nInstallation\n------------\n\nInstall theme keeper to your project using  [Composer](http://getcomposer.org/):\n\n```sh\n$ composer require ldrahnik/theme-keeper\n```\n\nUsage\n-----\n\nRegister extension in config file\n\n```sh\nextensions:\n\tthemes: ThemeKeeper\\DI\\ThemeKeeperExtension\n```\n\nExample\n-------\n\n```sh\nthemes:\n\tdefault:\n\t\tthemeDir: %themesDir%/\u003cthemeName\u003e\n\t\tassetsDir: \u003cthemeDir\u003e/assets\n\t\tviews:\n\t\t\tcontrols: \u003cthemeDir\u003e/controls/\u003cname\u003e/\u003cview\u003e\n\t\t\tpresenters: \u003cthemeDir\u003e/presenters/\u003cname\u003e/\u003cview\u003e\n\t\t\tlayouts: \u003cthemeDir\u003e/@\u003cview\u003e\n```\n\n```php\n\t/**\n\t* @var \\ThemeKeeper\\ThemeKeeper \n\t* @inject \n\t*/\n\tprivate $themes;\n\t\n\tpublic function __construct(ThemeKeeper\\ThemeKeeper $themes)\n    {\n\t\t$this-\u003ethemes = $themes;\n    }\n    \n    public function render()\n    {\n    \t$this-\u003etemplate-\u003esetFile($this-\u003ethemes-\u003egetView($this-\u003ename, 'controls'));\n\t\t$this-\u003etemplate-\u003erender();\n\t\t// you can cast getView without getTheme('default') because default name is automatically default\n\t\t// theme for short use as that, if is not set up name 'default', is choosen first theme in order\n    }\n```\n\nIs able to set up path via these patterns (don't count patterns through view-keeper - substitution is done successively)\n``` sh\n\t\u003cthemeName\u003e\n\t\u003cassetsDir\u003e\n\t\u003cthemeDir\u003e\n```\n\nSummary\n-------\n\n- Template-keeper uses View-keeper but view-keeper as extension have still good use, for example Mail templates are the same for entire app.\n- Crossing from small app with [view-keeper](https://github.com/ldrahnik/view-keeper) to something bigger is not hard because is possible to let code as it's, just use another service.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldrahnik%2Ftheme-keeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fldrahnik%2Ftheme-keeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldrahnik%2Ftheme-keeper/lists"}