Download the PHP package se7enxweb/explayouts-api without Composer

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

Exponential Layouts API

General description

Exponential Layouts API (explayouts_api) provides the public PHP API adapters bridging Exponential content to Exponential Layouts for Exponential 6. This extension provides the integration-facing helper classes that load, validate, convert and link eZContentObject / eZContentObjectTreeNode values for the layouts stack — for example turning a node into an expLayoutsContentBrowserItem for the content picker, or resolving the content context of the current request for the layout resolver.

It is an Exponential Legacy port inspired by the netgen/layouts-ibexa package: it covers the roles of that bundle's content providers, value converters/loaders, URL generators and validators as plain PHP classes without a Symfony service container.

This extension provides the following capabilities:

Features

The following features are provided by the Exponential Layouts API extension:

Version

Copyright

License

Exponential Layouts API is licensed under the GNU General Public License.

The complete license agreement is included in the LICENSE.md file.

Exponential Layouts API is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License or at your option a later version.

Exponential Layouts API is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

The GNU GPL gives you the right to use, modify and redistribute Exponential Layouts API under certain conditions. The GNU GPL license is distributed with the software, see the file LICENSE.md.

It is also available at http://www.gnu.org/licenses/gpl.txt

You should have received a copy of the GNU General Public License along with Exponential Layouts API in LICENSE.md. If not, see http://www.gnu.org/licenses/.

Using Exponential Layouts API under the terms of the GNU GPL is free (as in freedom).

For more information or questions please contact [email protected]

Requirements

The following requirements exists for using the Exponential Layouts API extension:

Exponential version

PHP version

Sibling extensions

Installation

In short: place the extension in extension/explayouts_api, activate it via site.ini [ExtensionSettings] ActiveExtensions[] (or per siteaccess via ActiveAccessExtensions[]), then regenerate autoloads and clear all caches. The extension ships no INI settings, modules or templates — only the adapter classes plus an autoloads/explayouts_api_autoload.php class map. Exponential 6 can also load extensions from additional directories declared via site.ini [ExtensionSettings] AdditionalExtensionDirectories[], if you keep suite extensions outside the default extension/ directory.

See INSTALL.md for the full step-by-step installation instructions.

Usage

All classes are stateless helpers; instantiate them directly.

Class Purpose
expLayoutsEzContentProvider Load eZContentObject by content id (loadContent), by node id (loadContentByNodeId) or as a normalized info array (loadContentInfo)
expLayoutsEzValueLoader Load an eZContentObjectTreeNode by node id (load), content id (loadByContentId) or remote id (loadByRemoteId)
expLayoutsEzValueConverter Convert a node/object into an expLayoutsContentBrowserItem (convert) or plain array (convertToArray)
expLayoutsEzValueUrlGenerator Relative (generate) and absolute (generateAbsolute) URLs for an item, node or object
expLayoutsEzContentContextProvider Content context of the current request (getContext): siteaccess, node/object id, location, content, content type identifier
expLayoutsEzRemoteIdConverter Map remote ids to object/node ids (toObjectId, toNodeId) and back (toRemoteId)
expLayoutsEzContentValidator Validate content id, location id, content type identifier and section id
expLayoutsEzContentTypeMapper List content types (getContentTypes), resolve names and identifiers (getName, getIdentifierById)
expLayoutsEzSectionMapper List sections (getSections), resolve names and ids (getName, getIdByIdentifier)

A typical picker/integration flow — load a node, convert it and generate its URL:

Resolving the content context of the current request, useful when deciding which layout applies:

See doc/USAGE.md for exhaustive scenarios covering all nine classes with real signatures — loading content and locations, converting to content browser items, URL generation, remote ids, validation, content type and section mapping — plus the full customization guide covering the settings layer (the core site.ini values read through the INI cascade), the template layer (none here by design) and the PHP layer (subclassing the adapters, keeping the expLayoutsContentBrowserItem contract).

Documentation

Document Description
INSTALL.md Step-by-step installation: activation, autoloads, sibling extensions
doc/USAGE.md PHP examples with real signatures for all adapters, customization layers
doc/FAQ.md Answers to the most common questions and problems
doc/TODO.md Known gaps and planned improvements
doc/SUPPORT.md How and where to get help
LICENSE.md The complete GNU General Public License agreement

Troubleshooting

Read the FAQ

Use our support systems


All versions of explayouts-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1 || ^8.2 || ^8.3 || ^8.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 se7enxweb/explayouts-api contains the following files

Loading the files please wait ...