Download the PHP package panda/dom without Composer

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

Dom Package

Note: [READ-ONLY] Subtree split of the Panda Ui Package

The Dom Package allows you to easily manipulate DOM Elements.

StyleCI Latest Stable Version Total Downloads License

Introduction

Panda Ui DOM component is a backend ui handler/renderer engine that enables generating including xml content in a more structured way.

This component is extending the normal DOM structure that is offered by the language itself, including some of the following classes:

This is the main reason why this component is so powerful, providing extra, faster and more clever functionality using existing components.

This package is able to create html pages using the DOM structure fast and easy. Some of the features include:

Installation

Through the composer

Add the following line to your composer.json file:

DOM

DOM Handlers

We built Ui component with the ability to be extensible and configurable. For this reason we have inserted handlers and factories which can be replaced, just by using the interfaces provided.

In order to be able to manipulate DOM elements in any way, including elements that we create but also elements that we can retrieve from a Document (using xpath), we had to create an independent structure of handlers that can manipulate DOM without actually being part of it.

Building a DOM tree can be a painful process using only native functions, that's why we created DOMHandler, to replace a multi-line functionality with a single-line function call.

DOMHandler is responsible for applying simple DOM manipulations to xml documents, generic enough for all the document types. Let's see some examples here:

Adding an attribute:

The previous example might not say much, but moving on to more functionality, we have the following functions available:

DOM Factories

After describing the structure with DOMPrototype and DOMItem, we are here to introduce the DOM Factories. DOM Factories are used to create DOM items with simple calls without the need to create extra objects like the DOMDocument or the DOMHandler. These factories are not replacing the functionality of a container, but they just provide an interface for creating all the elements needed from a single class.

The DOM Factory class is the smallest form of factory which provides one public function for building a simple DOMElement, the buildElement() function. The DOM Factory expects a DOMPrototype to be set with the setDOMDocument() function so that it can create all the elements needed.

Mainly the factories are accessible through the DOMPrototype, where we provide it as a dependency in the constructor. The Document is responsible for initializing the factory and connecting it to the current document.

Extending DOM

Two are the base classes of the entire component, which extend php objects:

DOMItem:

DOMPrototype:

Both of the objects are using two basic interfaces for handling the entire functionality and are standing there like observers for the building. Those are the DOMHandler and DOMFactory interfaces.

DOMPrototype

The DOMPrototype object is the base object for XML Documents (and HTML Documents). It provides some basic functionality and the rest is being handled by a DOMHandler and a DOMFactory.

The DOMPrototype object has the following functionalities:

The above functions support the basic Document object. However you can perform more tasks using the DOMHandler and create more elements using the DOMFactory object.

DOMItem

The basic root element for creating DOM elements is the DOMItem basic object. DOMItem extends the given php functionality of a DOMElement and provides a better way to manipulate the item writing less code. The object supports the following functionality:

The DOMItem constructor accepts a DOMPrototype (document) so that it can be associated with it and it can be handled by a client (otherwise it will be a read-only object). The Document itself requires a DOMHandler. The DOMItem uses this DOMHandler to manipulate itself using all the previous functions. Basically all these functions are being handled by the DOMHandler and not the DOMItem itself.

Every DOMItem that is being created is being appended to the given document so that we can edit it.


All versions of dom with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
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 panda/dom contains the following files

Loading the files please wait ....