PHP code example of textcontrol / textcontrol-laminas-reportingcloud

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

    

textcontrol / textcontrol-laminas-reportingcloud example snippets


return [
    'reportingcloud' => [
        'credentials' => [
            'api_key' => 'your-api-key'
        ],
    ],
];

'TextControl\ReportingCloud',

return [
    'Laminas\Router',
    'Laminas\Validator',
    'TextControl\ReportingCloud',
    'Application',
];

use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;

class Factory implements FactoryInterface
{
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        $reportingCloud = $container->get('ReportingCloud');

        // instantiate and return your object here
        
    }
}

$this->reportingCloud();    // returns a \TextControl\ReportingCloud\ReportingCloud instance

$this->reportingCloud();    // returns a \TextControl\ReportingCloud\ReportingCloud instance
bash
/vendor/textcontrol/textcontrol-laminas-reportingcloud/config/reportingcloud.local.php.dist
bash
/config/autoload/reportingcloud.local.php