Download the PHP package se7enxweb/explayouts-site-api without Composer

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

Exponential Layouts Site API

General description

Exponential Layouts Site API (explayouts_site_api) is the Site API bridge between Exponential Layouts and expsite_api on Exponential Legacy / Exponential 6. It lets the layouts stack work with expSiteApiContent / expSiteApiLocation value objects instead of raw content/location objects: loading them by ID, converting them to content browser items, generating URLs for them and providing them as block parameter values.

This extension is an Exponential Legacy port inspired by netgen-layouts/layouts-ibexa-site-api and provides the following capabilities:

Features

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

Version

Copyright

License

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

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

Exponential Layouts Site 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 Site 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 Site 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 Site API in LICENSE.md. If not, see http://www.gnu.org/licenses/.

Using Exponential Layouts Site 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 exist for using the Exponential Layouts Site API extension:

Exponential version

PHP version

Extension dependencies

Installation

Installation is the standard extension procedure: place the extension in extension/explayouts_site_api, activate it after its dependencies via ActiveExtensions[] (or ActiveAccessExtensions[] for a single siteaccess), regenerate autoloads with php bin/php/ezpgenerateautoloads.php -e and clear caches with php bin/php/ezcache.php --clear-all --purge --allow-root-user.

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

Usage

The extension ships five classes:

Class File Purpose
expLayoutsSiteApiItemValueLoader classes/explayoutssiteapiitemvalueloader.php Loads content/location value objects by ID or remote ID
expLayoutsSiteApiValueConverter classes/explayoutssiteapivalueconverter.php Converts Site API value objects to expLayoutsContentBrowserItem
expLayoutsSiteApiItemValueUrlGenerator classes/explayoutssiteapiitemvalueurlgenerator.php Generates URL aliases for Site API value objects
expLayoutsSiteApiValueObjectProviderContent classes/explayoutssiteapivalueobjectprovidercontent.php Block parameter provider returning expSiteApiContent
expLayoutsSiteApiValueObjectProviderLocation classes/explayoutssiteapivalueobjectproviderlocation.php Block parameter provider returning expSiteApiLocation

A quick example:

Resolving a block's picked item for rendering:

A practical tip: content object IDs and node IDs overlap numerically, so pass 'content' or 'location' explicitly to load() whenever the ID space is known instead of relying on auto-detection.

The full usage guide in doc/USAGE.md covers the complete API of all five classes, usage scenarios (block rendering, importing references by remote ID, CLI usage under the bootstrap) and the three customization layers of this stack: the settings layer (the INI configuration cascade — repository behaviour is configured in expsite_api, not here), the template layer (rendering happens in your layouts block templates, overridden through the design cascade) and the PHP layer (subclassing any of the five classes, e.g. overriding expLayoutsSiteApiItemValueUrlGenerator::generate() or reassigning the protected service properties of the loader).

Documentation

Document Description
INSTALL.md Requirements, dependencies and step-by-step activation instructions
doc/USAGE.md Full API reference, usage scenarios and the settings/template/PHP customization layers
doc/FAQ.md Frequently asked questions and answers
doc/TODO.md Known gaps and planned improvements
doc/SUPPORT.md Where and how to get help
LICENSE.md The complete GNU General Public License agreement

Troubleshooting

Read the FAQ

Use our support systems


All versions of explayouts-site-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0 || ^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-site-api contains the following files

Loading the files please wait ...