dfridrich/defr-ares-bundle

Symfony2 bundle for communication with ARES (Czech business register)

v1.0.2 2017-10-17 08:30 UTC

This package is auto-updated.

Last update: 2024-12-06 07:40:34 UTC


README

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)