Download the PHP package pollen-solutions/view without Composer

On this page you can find all versions of the php package pollen-solutions/view. 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 view

View Component

Latest Version PHP Supported Versions

Pollen Solutions View Component is a template engine system.

This is an expandable display template engine that natively integrates Plates and Twig library.

Installation

Fundamentals

About Plates

Plates is a native PHP template system that’s fast, easy to use. It’s inspired by the Twig template engine. Plates is designed for developers who prefer to use native PHP templates over compiled template languages.

Plates is use as default engine in the Pollen Solutions Components Suite.

More informations :

About Twig

Twig is the templating engine that included with Symfony Framework. Twig is a modern template engine for PHP. Twig compiles templates down to plain optimized PHP code.

Twig is natively included with Pollen View component.

More informations :

Third-party Engine

Blade

Blade is the templating engine that included with Laravel Framework.

Blade is not natively included with the Pollen View component, but can easily be added :

More informations :

Mustache

Mustache PHP engine is currently in project and coming soon.

More informations :

Fundamentals

An unified API interface

To respond to the particularity of each of the model display engines, Pollen View benefits from a unified interface this makes it possible to work with different engines via the same API.

Directory and override

Pollen View purposes a different logic from the libraries it inherits.

Each template file included in the template directory can be replaced by a template file with the same name in the override directory.

Extending the template engine

Pollen View also makes it possible to extend the functionalities of the template display engines through an easy interface.

Caching

To facilitate the work of application development, Pollen View allows you to disable the cache of the display template engines that it implements.

It is strongly recommended that you enable the cache when deploying to production.

Using global View

Template file

View call

Creating a new view instance

Simple usage

Template file

View call

Advanced usage

In this example we use a customized template class and the view is configured through the view engine callback.

Customized template class

Template file

View call

Extending a View

Simple method (with a callback)

Template file

View call

Advanced method with View Extension class

View Extension class

Template file

View call


All versions of view with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
league/plates Version ^3.4
pollen-solutions/faker Version ^1.0
pollen-solutions/support Version ^1.0
twig/twig Version ^3.0
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 pollen-solutions/view contains the following files

Loading the files please wait ....