PHP code example of innobrain / laravel-openimmo
1. Go to this page and download the library: Download innobrain/laravel-openimmo 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/ */
innobrain / laravel-openimmo example snippets
use Innobrain\OpenImmo\Facades\OpenImmoService;
$xml = File::get('path/to/openimmo.xml');
$openImmo = OpenImmoService::deserializeObjectFromXml($xml);
$xml = OpenImmoService::serializeObjectIntoXml($openImmo);
$json = OpenImmoService::serializeObjectIntoJson($openImmo);
use Innobrain\OpenImmo\Dtos\OpenImmo;
use function Innobrain\OpenImmo\Helpers\getProvider;
use function Innobrain\OpenImmo\Helpers\getContactPerson;
$openImmo = new OpenImmo;
getProvider($openImmo)->setProviderNumber('myProvider');
getContactPerson($openImmo)->setName('John Doe');