Download the PHP package deefour/presenter without Composer

On this page you can find all versions of the php package deefour/presenter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package presenter

Presenter

Build Status Total Downloads Latest Stable Version License

Object-oriented presentation logic.

Getting Started

Run the following to add Presenter to your project's composer.json. See Packagist for specific versions.

>=PHP5.5.0 is required.

The Resolver

The Deefour\Presenter\Resolver determines the FQN of a presenter class associated with an object. The default behavior of the resolver is to append 'Presenter' to the Article FQN.

This behavior can be customized by passing a callable to the resolver.

The resolver will look for a modelClass() method on an object. If found, the returned FQN will be used instead of the object itself.

Instantiation

Instantiating an instance of a presenter is your responsibility.

If the resulting FQN from the resolver does not match an existing, valid class name, null will be returned or a NotDefinedException will be thrown.

Presenters

The presenters themselves extend Deefour\Presenter\Presenter.

The API

A quick overview of the API available.

A few things to notice:

Automatic Presenter Resolution

When a property or method is resolved through the __get() or __call() methods on the presenter, an attempt will be made to resolve and wrap the return value in a presenter too.

Given the existence of ArticlePresenter, CategoryPresenter, and TagPresenter, the following will be returned

Note: The collection resolution works by looking for an instance of IteratorAggregate. The iterator is used to loop through the collection and generate presenters for each item. An attempt is then made to instantiate a new instance of the original object implementing IteratorAggregate. That is the return value.

If you want access to the raw association, simply request it from the underlying object.

Contribute

Changelog

3.0.1 - November 7, 2017

3.0.0 - July 20, 2017

2.0.0 - February 12, 2017

1.0.0 - October 7, 2015

0.8.0 - August 8, 2015

0.6.2 - June 5, 2015

0.6.0 - May 24, 2015

0.5.0 - April 27, 2015

0.4.0 - March 19, 2015

0.3.0 - March 16, 2015

0.2.3 - February 27, 2015

0.2.2 - February 20, 2015

0.2.0 - February 5, 2015

0.1.0 - November 21, 2014

License

Copyright (c) 2014 Jason Daly (deefour). Released under the MIT License.


All versions of presenter with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
illuminate/support Version ^5.0
deefour/producer Version ^1.1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package deefour/presenter contains the following files

Loading the files please wait ....