1. Go to this page and download the library: Download se7enxweb/explayouts-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
se7enxweb / explayouts-api example snippets
$loader = new expLayoutsEzValueLoader();
$converter = new expLayoutsEzValueConverter();
$generator = new expLayoutsEzValueUrlGenerator();
$node = $loader->load( 456 ); // eZContentObjectTreeNode
$item = $converter->convert( $node ); // expLayoutsContentBrowserItem
$url = $generator->generateAbsolute( $node ); // prefixed with SiteSettings/SiteURL
$contextProvider = new expLayoutsEzContentContextProvider();
$context = $contextProvider->getContext( $module, $viewParameters );
// array: siteaccess, node_id, object_id, location (node or false),
// content (object or false), content_type_identifier
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.