linkorb/presenter

Presenter pattern implementation

v1.0.0 2016-10-01 08:38 UTC

This package is auto-updated.

Last update: 2024-11-29 05:20:45 UTC


README

A simple implementation of the Presenter Pattern for PHP

Features

  • Simple BasePresenter implementation to create your own presenter classes
  • Forward any unimplemented methods to the wrapped object
  • Forward any unimplemented getters to the wrapped object
  • A trait to make any model class implement getPresenter
  • Trait uses auto-resolver for finding it's own presenter based on config, classname, or namespace convention

Usage

Please refer to examples/ for usage examples.

License

MIT. Please refer to the license file for details.

Brought to you by the LinkORB Engineering team


Check out our other projects at linkorb.com/engineering.

Btw, we're hiring!