Download the PHP package joomla/renderer without Composer
On this page you can find all versions of the php package joomla/renderer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download joomla/renderer
More information about joomla/renderer
Files in joomla/renderer
Package renderer
Short Description Joomla Renderer Package
License LGPL-2.1-or-later
Homepage https://github.com/joomla-framework/renderer
Informations about the package renderer
The Renderer Package
Interfaces
Renderer\RendererInterface
Renderer\RendererInterface
is an interface to provide a common rendering API.
Classes
Renderer\MustacheRenderer
Renderer\PhpEngineRenderer
Renderer\PlatesRenderer
Renderer\TwigRenderer
All classes except PlatesRenderer
extend the parent rendering engine classes to enable those engines to implement the RendererInterface
.
Usage
Renderer\RendererInterface
classes can be instantiated in the same manner as their parent implementations, please refer to the vendor documentation for further details.
To assist with using these classes, example service providers are shared in this repository's samples folder, as well as the sample configuration which these providers are dependent upon.
Example Use Case
An example use of the Renderer\RendererInterface
is provided here. In this example, our controller class builds a view class based on Joomla\View\ViewInterface
and injects the required dependencies.
Sample Controller:
The view class in this example is extended from this sample class which extends \Joomla\View\AbstractView
:
The view class for our view as established in the above sample controller:
Installation via Composer
You can simply run the following from the command line: