/DefrAresBundle

Symfony2 bundle for communication with ARES (Czech business register)

Primary LanguagePHPMIT LicenseMIT

DefrAresBundle

Symfony2 bundle for communication with ARES (Czech business register)

Installation via Composer

Add repository to your composer.json:

{
    "require": {
        "dfridrich/defr-ares-bundle": "dev-master"
    }
}

Then run

php composer.phar update

Or directly run

php composer.phar require dfridrich/defr-ares-bundle:dev-master

Add to AppKernel.php

new Defr\AresBundle\DefrAresBundle()

Usage

$this->get('defr_ares')->...

Methods

findByIdentificationNumber($id), findInResById($id) — Find company details

findVatById($id) — Look for czech VAT ID

findByName($name, $city = null) — Search records based on name (or part) and town (optional)