atannex / intermidiate
Display logic for Laravel, written once: model presenters give every view the same links, labels and dates for a model, and page Presenters prepare view data, so Blade only holds markup.
v2.0.0
2026-10-30 05:01 UTC
Requires
- php: ^8.2
- illuminate/console: ^11.0|^12.0
- illuminate/database: ^11.0|^12.0
- illuminate/filesystem: ^11.0|^12.0
- illuminate/http: ^11.0|^12.0
- illuminate/pagination: ^11.0|^12.0
- illuminate/routing: ^11.0|^12.0
- illuminate/support: ^11.0|^12.0
- illuminate/view: ^11.0|^12.0
- nesbot/carbon: ^2.72|^3.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.18
- livewire/livewire: ^3.5
- orchestra/testbench: ^9.0|^10.0
- phpunit/phpunit: ^11.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Keeps logic out of Laravel's Blade templates. Small PHP classes called presenters prepare everything a page needs (links, labels, dates, lists) so the templates only hold HTML. A model presenter gives every page the same links and labels for a model, and page presenters are matched to their views automatically by name.
Install
composer require atannex/intermidiate