This package provides an expressive, fluent interface to ΑΑΔΕ myDATA invoicing REST API. It handles almost all the boilerplate code for sending, cancelling and requesting invoices.
All documentation is available 👉 on our documentation site
Version | PHP | myDATA |
---|---|---|
^v.4.x | 8.1 | v1.0.8 |
^v.3.x | 8.1 | v1.0.7 |
^v.2.x | 8.1 | v1.0.5 |
^v.1.x | 8.0 | v1.0.3 |
- guzzlehttp/guzzle >= 7.0
To install through Composer, run the following command:
composer require firebed/aade-mydata
Official myDATA webpage: AADE myDATA
Official myDATA documentation: AADE myDATA REST API v1.0.8
In order to use this package, you will need first a user id and a subscription key. You can get these credentials by signing up to mydata rest api.
Development: Sign up to mydata development api
Production: Sign up to mydata production api
Once you have the user id and the subscription key use the following code to set the environment and the credentials:
$env = "dev"; // For production use "prod"
$user_id = "your-user-id";
$subscription_key = "your-subscription-key";
MyDataRequest::setEnvironment($env);
MyDataRequest::setCredentials($user_id, $subscription_key);
- Validate VAT Number
- SendInvoices
- CancelInvoice
- RequestDocs
- RequestTransmittedDocs
- RequestMyIncome
- RequestMyExpenses
- RequestVatInfo
- SendPaymentsMethod
- SendIncomeClassification
- SendExpensesClassification
For development, you may need to disable client verification if you are not using https:
MyDataRequest::verifyClient(false);
composer test
Please see CONTRIBUTING for details.
AADE myDATA is licenced under the MIT License.
Copyright 2022 © Okan Giritli