PHP code example of openbuildings / services-manager
1. Go to this page and download the library: Download openbuildings/services-manager 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/ */
openbuildings / services-manager example snippets
php
echo Service::factory('addthis')->toolbox()
php
if (Service::factory('addthis')->initialized()):
php
echo Service::factory('kissmetrics')->queue(
array('trackClick', '.add-to-favourites', 'clicked on add to favourites in company profile'),
array('trackClick', '.remove-from-favourites', 'clicked on remove from favourites in company profile')
)