Skip to content

nextpointergr/aade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NextPointer AADE

Laravel package for validating and retrieving Greek AFM information using the AADE public web service.

Features

  • Validate AFM numbers
  • Check if AFM exists in AADE
  • Retrieve business information
  • Laravel Facade support
  • Laravel auto-discovery

Installation

Install the package via Composer:

composer require nextpointer/aade

Publish the config file:

php artisan vendor:publish --tag=aade-config

Configuration

Add your AADE credentials to .env:

AADE_USERNAME=your_username
AADE_PASSWORD=your_password
AADE_CALLED_BY=123456789

Explanation:

Variable Description
AADE_USERNAME Username provided by AADE
AADE_PASSWORD Password provided by AADE
AADE_CALLED_BY The AFM of the account calling the AADE service

Usage

Import the facade:

use Aade;

Validate AFM

Check if an AFM is mathematically valid.

Aade::isValid('094259216');

Returns:

true | false

Check if AFM exists

Aade::exists('094259216');

Returns:

true | false

Get AFM information

$data = Aade::info('094259216');

Example response:

[
    "success" => true,
    "raw" => "...AADE XML response..."
]

Example

use Aade;

if (Aade::isValid($afm)) {

    if (Aade::exists($afm)) {

        $data = Aade::info($afm);

    }

}

Requirements

  • PHP 8.2+
  • Laravel 10 / 11 / 12
  • AADE web service credentials

License

MIT License

About

Laravel AADE AFM lookup package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages