Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
loki84nl committed Oct 26, 2023
0 parents commit b8f914f
Show file tree
Hide file tree
Showing 27 changed files with 1,228 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
composer.lock
/vendor/
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Change Log

## [1.0.0] - 2023-10-25

- Initial release
15 changes: 15 additions & 0 deletions README.md
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)
31 changes: 31 additions & 0 deletions composer.json
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/"
}
}
}
22 changes: 22 additions & 0 deletions docs/administration.rst
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>`_
28 changes: 28 additions & 0 deletions docs/article.rst
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>`_
40 changes: 40 additions & 0 deletions docs/balance.rst
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>`_
26 changes: 26 additions & 0 deletions docs/cost_center.rst
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>`_
54 changes: 54 additions & 0 deletions docs/general_ledger.rst
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>`_
36 changes: 36 additions & 0 deletions docs/index.rst
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>`_
82 changes: 82 additions & 0 deletions docs/invoice.rst
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>`_
Loading

0 comments on commit b8f914f

Please sign in to comment.