Download the PHP package webignition/html-document-type without Composer

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

For parsing, validating and creating HTML doctype strings (in PHP)

Master build status

Tested against PHP 5.6, 7, 7.1 and 7.2.

Have you ever found yourself thinking:

Does that apply to you? If so, my goodness are you in luck.

Usage

Creating

Parsing

If you already know the component parts of a doctype you might as well just create a string.

What is often more useful is taking an existing doctype string and parsing it into its component parts.

Getting a doctype string from a HTML document

Parsing a doctype string requires a doctype string. One of the most common places to find a doctype string is in a HTML document.

Creating a HtmlDocumentType object from a doctype string

You can extract the doctype string from a HTML document, but what do you then do with it? One option is to create a HtmlDocumentType object.

Validating

Two of the component parts of a doctype are particularly relevant to validation: the fpi and the uri. There are known set of valid fpi values. For each valid fpi, there are a known set of valid uri values.

Need to check that your doctype's fpi is valid that the corresponding uri is valid for that fpi?

Developing

Cloning

You will need git to clone and composer to retrieve dependencies. I'm assuming both are in your path. Adjust as required.

Testing

This project uses phpcs to check for PSR2 coding standards and phpunit for running the tests. Both are installed by composer as dev dependencies.

Composer scripts are present to run CS checks, to run tests or to run both.


All versions of html-document-type with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
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 webignition/html-document-type contains the following files

Loading the files please wait ....