PHP code example of loppep / peppol-directory-client
1. Go to this page and download the library: Download loppep/peppol-directory-client 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/ */
loppep / peppol-directory-client example snippets
use Http\Discovery\Psr18Client;
use Loppep\PeppolDirectoryClient\Enum\Environment;
use Loppep\PeppolDirectoryClient\PeppolDirectoryClient;
$directory = new PeppolDirectoryClient(
new Psr18Client(),
Environment::production()
);
$directory->search('DE343985244');
use Http\Discovery\Psr18Client;
use Loppep\PeppolDirectoryClient\Data\IdType;
use Loppep\PeppolDirectoryClient\Enum\Environment;
use Loppep\PeppolDirectoryClient\PeppolDirectoryClient;
$directory = new PeppolDirectoryClient(
new Psr18Client(),
Environment::production()
);
$directory->get(
new IdType(
$scheme = 'iso6523-actorid-upis',
$value = '9930:de343985244'
)
);
use Http\Discovery\Psr18Client;
use Loppep\PeppolDirectoryClient\Data\IdType;
use Loppep\PeppolDirectoryClient\Enum\Environment;
use Loppep\PeppolDirectoryClient\PeppolDirectoryClient;
$directory = new PeppolDirectoryClient(
new Psr18Client(),
Environment::production()
);
$directory->isRegistered(
new IdType(
$scheme = 'iso6523-actorid-upis',
$value = '9930:de343985244'
)
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.