spyrmp / greek-company-data-by-aade
Get greek company data from aade service with auth user
v0.0.1
2022-01-10 15:27 UTC
Requires
- ext-soap: *
- laravel/framework: ^8.0
- ricorocks-digital-agency/soap: ^1.5
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.5
README
Laravel plugin to get company data from AADE(ΑΑΔΕ) service.
Install
This project can be installed via Composer run the following command:
composer require spyrmp/greek-company-data-by-aade
Add the Service Provider & Facade/Alias
Once spyrmp/greek-company-data-by-aade is installed, you need to register the service provider in config/app.php. Make sure to add the following line above the RouteServiceProvider.
\Spyrmp\GreekCompanyDataByAade\GreekCompanyDataByAadeProvider::class,
You may add the following aliases
to your config/app.php
:
'Spyrmp\GreekCompanyDataByAade' => Spyrmp\GreekCompanyDataByAade\Facades\GreekCompanyDataByAade::class,
Publish the package config file by running the following command:
php artisan vendor:publish --provider="Spyrmp\GreekCompanyDataByAade\GreekCompanyDataByAadeProvider" --tag="greek-company-data-by-aade"
Usage
Get Company data
$greekVatNumber = 123456789; // Greek Vat Number $companyData = \Spyrmp\GreekCompanyDataByAade::getCompanyData($greekVatNumber); dd($companyData);