ldrahnik / view-keeper
Keeper of app views.
Installs: 1 026
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >= 5.4
- ldrahnik/url-matcher: ~2.0
- nette/nette: ~2.3.0
Requires (Dev)
- nette/tester: ~1.3
This package is not auto-updated.
Last update: 2024-12-07 18:29:35 UTC
README
Keeper of app views.
Benefits
- View-keeper is easy way to separate files from logic (e.g. separate to repositories, it has benefits, rights etc.)
- Change location of files is now easier than ever before
Reference
Requirements
ldrahnik/view-keeper requires PHP 5.4 or higher.
Installation
Install keeper to your project using Composer:
$ composer require ldrahnik/view-keeper
Usage
Register extension in config file
extensions: keeper: ViewKeeper\DI\ViewKeeperExtension keeper: controls: foo/controls/<name>/<view> files: foo/<name>/<view>
Is able to set up path via these patterns
<module> # <Backend>Module <name> # <Backend>Module<:Base>Presenter # <Base>Presenter # <UserAdd> <view> # <default>.latte
Suffix is not configurable (still you can change that as param of getView
method) - always will be in the end over dot
And inject
/** @var \ViewKeeper\ViewKeeper @inject */ private $keeper;
Summary
View keeper tries to be ultra-light package and simple to use. You will love it :)
For more information about path enrolment please check url-matcher