Download the PHP package vardumper/extended-htmldocument without Composer

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

HTML5 Logo PHP Logo

Extended HTML Document Library

Static Badge Code Coverage Latest Stable Version Total Downloads

This library provides a way to work with HTML elements in PHP, offering an object-oriented approach that aligns with the HTML5 specifications. It also provides a way to automatically transform HTML into different templating engines or code for frontend frameworks. It also adds autocompletion to PHP for all HTML5 elements, which is especially useful when working with DOM Documents. It adds additional functionality and a stronger focus on HTML5 while being fully compatible with PHP's DOM\HTMLDocument and DOM\HTMLElement classes.

Installation

TL;DR

This library adds the HTML5 specification to PHP and is fully compatible with DOM\HTMLDocument. You can now instantiate an Anchor without passing a document.

Generated Templates

Templates are generated from the HTML5 schema for every HTML element. These allow for better consistency in your design system(s), support all possible HTML attributes and have basic validations for enum attributes. Files are grouped into inline, block and void elements. For elements with a specific content model, a composed template is generated as well. (eg <table><tr><td>Cell</td><tr></table>)

Blade

Blade templates can be found in templates/blade. The README has more infos and usage examples. Blade templates can also be installed via npm with the @typesafe-html5/blade package.

Each element's template is generated as index.blade.php inside a subdirectory named after the element (e.g. blade/block/div/index.blade.php), which Blade resolves as x-block.div.

The blade-component generator converts a full YAML component definition into a Blade document using <x-block.*>, <x-inline.*> and <x-void.*> component tags. Use it via the watch command — see the README for examples.

React & NextJS

React and NextJS templates can be found in templates/nextjs. See the README file for details. NextJS templates can also be installed via npm with the @typesafe-html5/react package.

Storybook

Storybook with atoms for all HTML5 elements can be seen in the Demo. Files can be found in templates/storybook. There's also a README with more details.

Storybook for Twig

TBD

Storybook for React/NextJS

TBD

Twig

Twig templates for flexible and performant use with include, embed, and use can be found in templates/twig. See the README for more details and usage examples. Twig templates can also be installed via npm with the @typesafe-html5/twig package.

Twig Components Bundle

Generated, typesafe Twig Components for use with Symfony UXs Twig Components can be found in templates/twig-component. See the README for more details and usage examples. Twig templates can also be installed via the Symfony Bundle vardumper/html5-twig-component-bundle package.

Typescript

Typescript templates can be found in templates/typescript. See the README for more details and usage examples. Typescript templates can also be installed via npm with the @typesafe-html5/typescript package.

Documentation

See the Documentation for more.


All versions of extended-htmldocument with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-dom Version *
mnapoli/silly Version ^1.10.0
revolt/event-loop Version ^1.0.9
symfony/yaml Version ^5.4|^7.0|^8.0.12
vardumper/dom-orm Version ^1.4.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 vardumper/extended-htmldocument contains the following files

Loading the files please wait ...