Download the PHP package gobline/presenter without Composer

On this page you can find all versions of the php package gobline/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 component

The Presenter component allows you to decorate your model objects with methods used by your views. A typical example used to demonstrate the use for presenters, is a presenter method formatting a date from the model in a more readable format for the user.

Gobline\Presenter\Presenter

By decorating your model objects with a instance, you will be able to access private/protected fields as you would access a public field, as long as there is a getter defined.

This is simply done by PHP's magic methods and .

In order to add behavior to your model objects for view formatting, you will have to create your own presenter:

Gobline\Presenter\PresenterFactoryInterface

A presenter factory is useful when your presenter requires dependencies. You inject the dependencies once in the factory, and the factory will create the presenter on demand with all its required dependencies.

You would then typically inject this factory into the object that will return the decorated model instances to the view. That object can now return decorated model instances like the following:

Gobline\Presenter\CollectionPresenter

When the view needs to display data from an array of model instances, we then need to wrap this array in order to return our presenters (decorated model instances) for each array access. The collection wrapper requires a presenter factory in order to return the right presenters.

Gobline\Presenter\PresenterTrait

The presenter trait allows your private/protected properties to be accessed as public properties.

Installation

You can install the Presenter component using the dependency management tool Composer. Run the require command to resolve and download the dependencies:


All versions of presenter with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
doctrine/collections Version ^1.3
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 gobline/presenter contains the following files

Loading the files please wait ....