PHP code example of juistdit / manta-php-sdk

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

    

juistdit / manta-php-sdk example snippets




$sdk = new Manta\Sdk;
$session = $sdk->login("[email protected]", "123456789IsNotASafePassword");

$company = $session->getCompany($companyId);

$companies = $session->getCompanies();

$companies = $session->getCompanies();
foreach($companies as $company) {
	echo ' - ', $company->company, PHP_EOL;
}

composer