1. Go to this page and download the library: Download innovato/eboekhouden 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/ */
innovato / eboekhouden example snippets
$mutation = $eBoekhouden->getMutationsByMutationsByInvoiceNumber($invoiceNumber);
if (isset($mutation->Mutaties->cMutatieList)) {
// Mutation with $invoiceNumber exists
}
$mutation = new Mutation();
$mutation->setKind("FactuurVerstuurd"); // FactuurOntvangen, FactuurVerstuurd, FactuurbetalingOntvangen, FactuurbetalingVerstuurd, GeldOntvangen, GeldUitgegeven
$mutation->setDate(date('Y-m-d'));
$mutation->setAccount(1000); // Ledger account code
$mutation->setRelationCode("BAR"); // Must match existing Relation
$mutation->setInvoiceNumber("INV-500"); // Must be unique
$mutation->setTermOfPayment(30); // In days
$mutation->setMutationLines([
[
'BedragInvoer' => 100,
'BedragExclBTW' => 100,
'BedragBTW' => 21,
'BedragInclBTW' => 121,
'BTWCode' => 'HOOG_VERK_21', // Check documentation chapter 4
'BTWPercentage' => 21,
'TegenrekeningCode' => 1000,
]
]);
$eBoekhouden->addMutation($mutation);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.