2017 © Pedro Peláez
 

library l4-presenter

Presenter class for Laravel 4.

image

anlutro/l4-presenter

Presenter class for Laravel 4.

  • Saturday, March 29, 2014
  • by anlutro
  • Repository
  • 2 Watchers
  • 3 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel 4 Presenter Build Status Latest Version

Installation: composer require anlutro/l4-presenter, (*1)

Pick the latest stable version from packagist or the GitHub tag list., (*2)

WARNING: Backwards compatibility is not guaranteed during version 0.x., (*3)

Presenter

Extend the \c\Presenter class and add methods that start with 'present' to replace the default getters on the underlying object. For example, presentFooBar will be invoked when you try to get $object->foo_bar. If no present method is found, the get is simply passed on to the underlying object., (*4)

Use MyPresenter::make($object) to make it work on Collection objects - this wraps every item in the collection in a presenter and returns the modified collection., (*5)

If your class implements \c\PresentableInterface, this method will be invoked and determine what's returned from \c\Presenter::make()., (*6)

Contact

Open an issue on GitHub if you have any problems or suggestions., (*7)

License

The contents of this repository is released under the MIT license., (*8)

The Versions

29/03 2014

dev-master

9999999-dev

Presenter class for Laravel 4.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andreas Lutro

12/03 2014

0.1.1

0.1.1.0

Presenter class for Laravel 4.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andreas Lutro

13/01 2014

0.1.0

0.1.0.0

Presenter class for Laravel 4.

  Sources   Download

The Requires

 

The Development Requires

by Andreas Lutro