PHP code example of ruudk / moneybird-bundle

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

    

ruudk / moneybird-bundle example snippets


$moneybird = $this->container->get('moneybird.api');

$contactService = $moneybird->getService('Contact');

$contacts = $contactService->getAll();
foreach($contacts AS $contact) {
    echo $contact->name . "<br>";
}
 php

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new Ruudk\MoneybirdBundle\RuudkMoneybirdBundle(),
    );
}