Download the PHP package jstormes/html-gateway without Composer

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

HtmlGateway

A simple Html Gateway library.

Usage

PHP is itself a template engine. Rather than reinvent the wheel, I used PHP itself as the template language and wrapped it in design patterns I liked. This package is my favorite design pattern packaged in a nice composer format.

There are three core concepts in this pattern, templates, helpers, and post back processing.

A template is nothing more than an arbitrary text file wrapped in a PHP class. This lets us use PHP interspersed inside the text. Templates can be included inside templates allowing the text to be built in blocks. If this sounds familiar, it is. This is basically what PHP does. As this template is inside a PHP object it has it’s "scope" set to $this->. It would be very bad practice to use anything outside the scope directly in a template.

Command Line Docker Quick Start:

Example of instantiating a template:

Example of including a template inside a template:

Example using for formatting email message:

A helper is a class that contains logic that you want to use over and over. Such logic might include translating between languages or displaying dates and currencies in a local format.

Example of a translate helper:

Example of a date helper:

Demo video at:

Blog Post at:

Unit testing

To build the unit testing environment run:

docker-composer run build

To run the unit tests at the command line run:

docker-compose run phpunit

Unit testing with PhpStorm:

Video of Unit Testing:

GitHub Page:

https://github.com/jstormes/HtmlGateway

Packagist Page:

https://packagist.org/packages/jstormes/html-gateway


All versions of html-gateway with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
http-interop/http-server-middleware Version ^1.0.0
zendframework/zend-hydrator Version ^2.3
zendframework/zend-servicemanager Version ^3.3
zendframework/zend-filter Version ^2.7
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 jstormes/html-gateway contains the following files

Loading the files please wait ....