pixiucz/ares-finder

There is no license information available for the latest version (0.1.6) of this package.

0.1.6 2017-10-31 15:32 UTC

This package is not auto-updated.

Last update: 2024-05-17 19:00:31 UTC


README

Register in October CMS

  • composer require pixiucz/ares-finder
  • Add this to your Plugin.php
public function boot()
{
    ...
    $this->app->register(\Pixiucz\AresFinder\AresFinderServiceProvider::class)
    ...
}

Usage

// Can be injected through constructor or by using service provider
$AresFinder = app('AresFinder');
$results = $AresFinder->findByName("Pixiu");
$results2 = $AresFinder->findByIco("05307503");

Response format

  • Returns Laravel Collection (even in case of single response)
[
    {
        "Name": "Pixiu s.r.o.",
        "Origin": "2016-08-22",
        "Validity": "2017-09-08",
        "Legal form of bussiness": "Společnost s ručením omezeným",
        "ICO": "05307503",
        "Address": {
            "State code": "203",
            "District": "Brno-město",
            "City": "Brno",
            "Street": "Příkop",
            "House number": "843",
            "Orientation number": "4",
            "Zip": "60200"
        }
    }
]