firebed / aade-mydata
Implementation of requests for AADE myDATA.
Installs: 741
Dependents: 2
Suggesters: 0
Security: 0
Stars: 38
Watchers: 6
Forks: 17
Open Issues: 0
Type:package
Requires
- php: ^8.1
- ext-dom: *
- ext-soap: *
- guzzlehttp/guzzle: ^7.0.1
Requires (Dev)
- fakerphp/faker: ^1.23
- phpunit/phpunit: ^10.0
- roave/security-advisories: dev-latest
- symfony/var-dumper: ^6.0
README
Introduction
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.
Official Documentation
All documentation is available 👉 on our documentation site
Requirements
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
Installation
To install through Composer, run the following command:
composer require firebed/aade-mydata
Documentation
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
Setup
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);
Available methods
- 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);
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Licence
AADE myDATA is licenced under the MIT License.
Copyright 2022 © Okan Giritli