PHP code example of syno / cint

1. Go to this page and download the library: Download syno/cint 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/ */

    

syno / cint example snippets


use Syno\Cint\ProfilingData\Resources\Campaign;
...

class Test
{
    private Campaign $campaignResource;

    public function __construct(Campaign $campaignResource)
    {
        $this->campaignResource = $campaignResource;
    }
    
    public function fetchCampaigns()
    {
        foreach ($this->campaignResource->fetchAll() as $apiCampaign) {
            print_r($apiCampaign);
        }
    }
}