Download the PHP package mouf/html.renderer without Composer

On this page you can find all versions of the php package mouf/html.renderer. 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 html.renderer

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Coverage Status Scrutinizer Code Quality

What is this package?

This package contains a rendering mechanism to render objects in HTML.

For application developers

You are an application developer? Learn how to use the rendering system with PHP files or Twig templates to render your objects or overload renderers provided by packages.

See the video!

For package developers

You are a package developer? Learn how to use the rendering system to allow other users to overload your renderers easily.

Installation

The easiest way to use this package is through a dependency injection container compatible with container-interop/service-providers.

Once installed, you need to register the Mouf\Html\Renderer\RendererServiceProvider into your container.

If your container supports thecodingmachine/discovery integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register service providers.

Provided services

This service provider provides the following services:

Service name Description
RendererInterface::class The default renderer. An alias to ChainRenderer::class
ChainRenderer::class A composite renderer asking all other renderers in turn if they can render an object.
customRenderers A list of RendererInterface objects at the "custom" level (top most level). This list is consumed by the ChainRenderer
customRenderer A default custom renderer is provided by this package. Out of the box, template files are expected to be in the src/templates directory.
packageRenderers A list of RendererInterface objects at the "package" level (bottom level). This list is consumed by the ChainRenderer. When a package you install has a renderer, it will add the renderer to this list (most of the time using the AbstractPackageRendererServiceProvider
InitRendererFacadeMiddleware::class A PSR-15 middleware that is used to initialize global access to the default renderer. This is needed for the Renderable trait to work.

Extended services

This service provider extends those services:

Name Compulsory Description
MiddlewareListServiceProvider::MIDDLEWARES_QUEUE yes The InitRendererFacadeMiddleware::class registers itself in the list of PSR-15 middlewares.

Mouf package

This package was originally part of Mouf (http://mouf-php.com), an effort to ensure good developing practices by providing a graphical dependency injection framework.

V2 makes the package framework-agnostic, so it can be used in any framework.

Basically, you will find in this package some Renderers. These are classes in charge of rendering other objects. They usually rely on template files, that contain the HTML to be rendered. Renderers can be chained, and the first renderer that knows how to render an object will be in charge of the rendering.

Troubleshooting

Your template or a custom template is not applied.


All versions of html.renderer with dependencies

PHP Build Version
Package Version
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 mouf/html.renderer contains the following files

Loading the files please wait ....