PHP code example of se7enxweb / explayouts-content-browser
1. Go to this page and download the library: Download se7enxweb/explayouts-content-browser 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-content-browser example snippets
$browser = new expLayoutsContentBrowser();
// List 25 items under node 43, optionally filtered by a search string
$items = $browser->listItems( 43, 'news', 0, 25 );
// Count items under node 43
$count = $browser->countItems( 43 );
// Load a single item by node ID
$item = $browser->loadItem( 123 );