Registry / utility / robclancy-presenter

robclancy-presenter

JSON →
library3.0.0phppackagistunverified

Decorate your objects using presenters. Primarily to keep presentation logic out of your models.

composer require robclancy/presenter
INSTALL
IMPORT
SIG · ROBCLANCY-PRESENTE
R
robclancy-presenter
utilityphpv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Presenter
use RobClancy\Presenter\Presenter;

Create a presenter for a model.

use RobClancy\Presenter\Presenter; class UserPresenter extends Presenter { public function fullName() { return $this->first_name . ' ' . $this->last_name; } }
Debug
Known issues
gotchaDeprecated in favor of Laravel's built-in presenters
fix
Consider using Laravel's presenters or view composers.
affects: >=3.0
Upgrade
Version history
3.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
robclancy-presenter — pip install robclancy-presenter · libregistry