-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b8f914f
Showing
27 changed files
with
1,228 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
composer.lock | ||
/vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Change Log | ||
|
||
## [1.0.0] - 2023-10-25 | ||
|
||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# e-Boekhouden.nl Api Client | ||
|
||
## Installing | ||
|
||
```bash | ||
composer require onetoweb/eboekhouden | ||
``` | ||
|
||
## Usage | ||
|
||
See [Documentation](docs/index.rst) | ||
|
||
## Change Log | ||
|
||
See [Change Log](CHANGELOG.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "onetoweb/eboekhouden", | ||
"description": "e-Boekhouden.nl API Client", | ||
"keywords": [ | ||
"api", | ||
"php", | ||
"e-boekhouden.nl", | ||
"e-boekhouden" | ||
], | ||
"type": "library", | ||
"homepage": "https://github.com/onetoweb/eboekhouden", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Jonathan van 't Ende", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.1.0", | ||
"symfony/polyfill-php81": "^1.28" | ||
}, | ||
"require-dev": { | ||
"symfony/error-handler": "^5.1" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Onetoweb\\Eboekhouden\\": "src/" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.. _top: | ||
.. title:: Administration | ||
|
||
`Back to index <index.rst>`_ | ||
|
||
============== | ||
Administration | ||
============== | ||
|
||
.. contents:: | ||
:local: | ||
|
||
|
||
List Administrations | ||
```````````````````` | ||
|
||
.. code-block:: php | ||
$result = $client->administration->list(); | ||
`Back to top <#top>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.. _top: | ||
.. title:: Articles | ||
|
||
`Back to index <index.rst>`_ | ||
|
||
======== | ||
Articles | ||
======== | ||
|
||
.. contents:: | ||
:local: | ||
|
||
|
||
List Articles | ||
````````````` | ||
|
||
.. code-block:: php | ||
$result = $client->article->list([ | ||
'ArtikelID' => '', | ||
'ArtikelOmschrijving' => '', | ||
'ArtikelCode' => '', | ||
'GroepOmschrijving' => '', | ||
'GroepCode' => '' | ||
]); | ||
`Back to top <#top>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.. _top: | ||
.. title:: Balance | ||
|
||
`Back to index <index.rst>`_ | ||
|
||
======= | ||
Balance | ||
======= | ||
|
||
.. contents:: | ||
:local: | ||
|
||
|
||
List Balance | ||
```````````` | ||
|
||
.. code-block:: php | ||
$result = $client->balance->list([ | ||
'KostenPlaatsId' => 0, | ||
'DatumVan' => '2022-01-01', | ||
'DatumTot' => '2023-12-31', | ||
'Categorie' => 'DEB' | ||
]); | ||
Get Balance | ||
``````````` | ||
|
||
.. code-block:: php | ||
$result = $client->balance->get([ | ||
'KostenPlaatsId' => 0, | ||
'DatumVan' => '2022-01-01', | ||
'DatumTot' => '2023-12-31', | ||
'GbCode' => '12000' | ||
]); | ||
`Back to top <#top>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. _top: | ||
.. title:: Cost Centers | ||
|
||
`Back to index <index.rst>`_ | ||
|
||
============ | ||
Cost Centers | ||
============ | ||
|
||
.. contents:: | ||
:local: | ||
|
||
|
||
List Cost Centers | ||
````````````````` | ||
|
||
.. code-block:: php | ||
$result = $client->costCenter->list([ | ||
'KostenplaatsID' => '', | ||
'KostenplaatsParentID' => '', | ||
'Omschrijving' => '' | ||
]); | ||
`Back to top <#top>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.. _top: | ||
.. title:: General Ledger | ||
|
||
`Back to index <index.rst>`_ | ||
|
||
============== | ||
General Ledger | ||
============== | ||
|
||
.. contents:: | ||
:local: | ||
|
||
|
||
List General Ledger Accounts | ||
```````````````````````````` | ||
|
||
.. code-block:: php | ||
$result = $client->generalLedger->list([ | ||
'ID' => '', | ||
'Code' => '', | ||
'Categorie' => '' | ||
]); | ||
Create General Ledger Account | ||
````````````````````````````` | ||
|
||
.. code-block:: php | ||
$result = $client->generalLedger->create([ | ||
'ID' => '', | ||
'Code' => '800001', | ||
'Omschrijving' => 'Foo Bar 1', | ||
'Categorie' => 'BAL', | ||
'Groep' => '' | ||
]); | ||
Update General Ledger Account | ||
````````````````````````````` | ||
|
||
.. code-block:: php | ||
$result = $client->generalLedger->update([ | ||
'ID' => '10000000', | ||
'Code' => '800002', | ||
'Omschrijving' => 'Foo Bar 2', | ||
'Categorie' => 'BAL', | ||
'Groep' => '' | ||
]); | ||
`Back to top <#top>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.. title:: Index | ||
|
||
=========== | ||
Basic Usage | ||
=========== | ||
|
||
Setup Client | ||
|
||
.. code-block:: php | ||
require 'vendor/autoload.php'; | ||
use Onetoweb\Eboekhouden\Client; | ||
// param | ||
$username = '{username}'; | ||
$securityCode1 = '{security_code_1}'; | ||
$securityCode2 = '{security_code_2}'; | ||
// setup client | ||
$client = new Client($username, $securityCode1, $securityCode2); | ||
======== | ||
Examples | ||
======== | ||
|
||
* `Administration <administration.rst>`_ | ||
* `Balance <balance.rst>`_ | ||
* `Invoices <invoice.rst>`_ | ||
* `Mutations <mutation.rst>`_ | ||
* `General Ledger <general_ledger.rst>`_ | ||
* `Relations <relations.rst>`_ | ||
* `Open Posts <open_post.rst>`_ | ||
* `Cost Centers <cost_center.rst>`_ | ||
* `Articles <article.rst>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
.. _top: | ||
.. title:: Invoice | ||
|
||
`Back to index <index.rst>`_ | ||
|
||
======= | ||
Invoice | ||
======= | ||
|
||
.. contents:: | ||
:local: | ||
|
||
|
||
List Invoices | ||
````````````` | ||
|
||
.. code-block:: php | ||
$result = $client->invoice->list([ | ||
'Factuurnummer' => 'F00001', | ||
'Relatiecode' => 'REL', | ||
'DatumVan' => '2022-01-01', | ||
'DatumTm' => '2023-12-31' | ||
]); | ||
Create Invoice | ||
`````````````` | ||
|
||
.. code-block:: php | ||
$result = $client->invoice->create([ | ||
'Factuurnummer' => '', | ||
'Relatiecode' => 'BV42', | ||
'Datum' => '2023-10-26', | ||
'Betalingstermijn' => 14, | ||
'Factuursjabloon' => '', | ||
'PerEmailVerzenden' => true, | ||
'EmailOnderwerp' => '', | ||
'EmailBericht' => '', | ||
'EmailVanAdres' => '', | ||
'EmailVanNaam' => '', | ||
'AutomatischeIncasso' => true, | ||
'IncassoIBAN' => '', | ||
'IncassoMachtigingSoort' => '', | ||
'IncassoMachtigingID' => '', | ||
'IncassoMachtigingDatumOndertekening' => '2023-10-26', | ||
'IncassoMachtigingFirst' => true, | ||
'IncassoRekeningNummer' => '', | ||
'IncassoTnv' => '', | ||
'IncassoPlaats' => '', | ||
'IncassoOmschrijvingRegel1' => '', | ||
'IncassoOmschrijvingRegel2' => '', | ||
'IncassoOmschrijvingRegel3' => '', | ||
'InBoekhoudingPlaatsen' => true, | ||
'Regels' => [ | ||
'cFactuurRegel' => [ | ||
[ | ||
'Aantal' => 1.0, | ||
'Eenheid' => '', | ||
'Code' => '', | ||
'Omschrijving' => '', | ||
'PrijsPerEenheid' => 0.0, | ||
'BTWCode' => '', | ||
'TegenrekeningCode' => '', | ||
'KostenplaatsID' => 0 | ||
], [ | ||
'Aantal' => 1.0, | ||
'Eenheid' => '', | ||
'Code' => '', | ||
'Omschrijving' => '', | ||
'PrijsPerEenheid' => 0.0, | ||
'BTWCode' => '', | ||
'TegenrekeningCode' => '', | ||
'KostenplaatsID' => 0 | ||
] | ||
] | ||
], | ||
]); | ||
`Back to top <#top>`_ |
Oops, something went wrong.