1. Go to this page and download the library: Download bonnier/sitemanager-sdk 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/ */
bonnier / sitemanager-sdk example snippets
$siteManager = new SiteManager('https://site-manager.test');
use Bonnier/SiteManager/SiteManager;
$siteManager = new SiteManager();
// Retrieve a collection of all apps in SiteManager
$siteManager->app()->getAll();
// Get a specific app from SiteManager
$siteManager->app()->getById(1);
// Retrieve a collection of all brands in SiteManager
$siteManager->brand()->getAll();
// Get a specific brand from SiteManager
$siteManager->brand()->getById(1);
// Retrieve a collection of all categories in SiteManager
$siteManager->category()->getAll();
// Get a specific category from SiteManager
$siteManager->category()->getById(1);
// Get a specific category by its Contenthub ID from SiteManager
$siteManager->category()->getByContenthubId('abc123');
// Get a collection of categories by a specific brand in from SiteManager
$siteManager->category()->getByBrandId(1);
// Retrieve a collection of all the sites in SiteManager
$siteManager->site()->getAll();
// Get a specific site from SiteManager
$siteManager->site()->getById(1);
// Retrieve a collection of all the tags in SiteManager
$siteManager->tag()->getAll();
// Get a specific tag from SiteManager
$siteManager->tag()->getById(1);
// Get a specific tag by its Contenthub ID from SiteManager
$siteManager->tag()->getByContenthubId('abc123');
// Get a collection of tags by a specific brand from SiteManager
$siteManager->tag()->getByBrandId(1);
// Retrieve a collection of all the vocabularies in SiteManager
$siteManager->vocabulary()->getAll();
// Get a specific vocabulary from SiteManager
$siteManager->vocabulary()->getById(1);
// Get a collection of vocabularies by a specific brand from SiteManager
$siteManager->vocabulary()->getByBrandId(1)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.