Download the PHP package enm/external-layout without Composer

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

External Layout

This library loads html layouts from remote, modify them for local usage and stores the result into a new file.

Installation

If you want to use the default (guzzle) loader:

Usage

Their are different ways to use this library, depending on your needs.

Simple

The simplest way of usage is to use the layout creator factory with the default guzzle loader (requires guzzlehttp/guzzle). For simplest usage you should build your layout definitions from a config array.

Customized

If you want to customize loading, manipulation or finishing for the layout, you can also use the factory and configure your custom requirements.

Fully Customized

If you want a fully customized implementation (for example for usage with a dependency injection service container), you could create all instances without factory by yourself.

Customization

The library works as follows:

  1. Load contents from source url into a \DomDocument ("loaders")
  2. Manipulate the \DomDocument for example with content replacements or block for your templating ("manipulators")
  3. Finish the layout with simple plain text processing ("finishers")
  4. Store the manipulated and finished html content into the configured file

Loaders

Loaders are responsible for loading the html content of the given uri into a \DomDocument.

You can use the default loader (Enm\ExternalLayout\Loader\GuzzleLoader) which requires an instance of (GuzzleHttp\ClientInterface; composer: guzzlehttp/guzzle) or you can implement the Enm\ExternalLayout\Loader\LoaderInterface by yourself.

Manipulators

Manipulators are responsible for manipulation of the loaded \DomDocument. Manipulators could change contents, remove or add new dom elements or insert blocks for different templating languages (default Twig).

If you want to use more than one manipulator you can add all your manipulators to an instance of Enm\ExternalLayout\Manipulator\ManipulatorChain. A manipulator must implement Enm\ExternalLayout\Manipulator\ManipulatorInterface.

Available manipulators are:

Finishers

Finishers are responsible for cleanup and string replacements which are not possible in a \DomDocument.

If you want to use more than one finisher you can add all your finishers to an instance of Enm\ExternalLayout\Finisher\FinisherChain. A finisher must implement Enm\ExternalLayout\Finisher\FinisherInterface.

Available finishers are:


All versions of external-layout with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
psr/http-message Version ^1.0
symfony/filesystem Version ^4.0
symfony/css-selector Version ^4.0
ext-dom Version *
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 enm/external-layout contains the following files

Loading the files please wait ....