Download the PHP package dhii/php-template without Composer

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

Dhii - Php Template

Build Status Code Climate Test Coverage Latest Stable Version

A concrete PHP (PHTML) template implementation.

Details

This is an implementation of the Dhii output renderer standard; specifically, the template. It allows consuming file-based PHP templates using an abstract interface. Now it's possible to outsource your rendering to standardized, stateless PHP template files, and use them just like any other template, without knowing where the content comes from.

Because this implementation is based on PHP files, it was decided to separate the concern of rendering a template from the concern of evaluating a PHP file, because the latter is useful on its own, and because it would make the template implementation thinner and cleaner.

Usage

Below examples explain how a template factory could be configured, and used to produce a standards-compliant template. Then that template is rendered with context. Please note the following:

  1. The file at path template.php is used to produce the output.
  2. Context members are retrieved by $c('key').
  3. It is possible to use the uc function with $f('uc').
  4. The default context member time is present in the template, even though it was not explicitly supplied at render time.

Configuration, usually in a service definition

Consumption, usually somewhere in controller-level code

template.php

Resulting output


All versions of php-template with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
dhii/output-renderer-interface Version ^0.4
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 dhii/php-template contains the following files

Loading the files please wait ....