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.
Vendor dhii Package php-template Short Description A concrete PHP (PHTML) template implementation. License
MIT
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.
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:
The file at path template.php is used to produce the output.
Context members are retrieved by $c('key').
It is possible to use the uc function with $f('uc').
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
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 ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.