Giter VIP home page Giter VIP logo

ares's People

Contributors

dfridrich avatar filipmelik avatar jkuchar avatar petrparolek avatar scrutinizer-auto-fixer avatar tlapi avatar tomasvotruba avatar zemistr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ares's Issues

Návrh na doplnění a změnu

V nette vyhazuje metoda findById z třídy Justice chybu, že IČO není integer, ale jako integer vkládané je.

$ares = new \Defr\Ares(); $record = $ares->findByIdentificationNumber(27755941); $people = $record->getCompanyPeople();

Navrhuji drobné doplnění

public function findById(int $id)

Projde to pak Assertion:integer testem

V metodě extractDetailUrlFromCrawler stejné třídy navrhuji změnu $href[1] na $href[0], protože jinak to vrací úplné výsledky, ale samozřejmě neaktuální.

Neprochází testy - getPeople() a getTaxId()

getTaxId()

Defr\Ares\Tests\AresTest::testFindByIdentificationNumber 
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'CZ8508095453'
+''

getPeople()

2) Defr\Tests\JusticeTest::testFindById
Failed asserting that actual size 0 matches expected size 2.

New ARES from 30th of September 2023!

A new ARES is accessable at location https://ares.gov.cz/, it provides REST API, so no longer will be need the XML communications. It also has a documentation https://ares.gov.cz/swagger-ui/. Currently is the new ARES in a pilot mode and according to the words from Czech ministry of finance it contains data until 30th of July 2023. But the old ARES will be running concurently with the new one until 30th of September 2023. And then the old one will gone.

https should be used

Defr\Ares contains http addresses, I think it would be better to use https there.

Search empty IC

If I search empty string, you converted into int (which is 0 and ICO returned from ares is 0.. so you have valid IC number).

findByName() issues PHP warning when no search results are returned

Hi and thanks for this library.

When searching by company name, there is a bug that issues count(): Parameter must be an array or an object that implements Countable warning when no companies are found (in other words: empty XML is returned).

This is due to following line of code, that cannot handle the case when $elements variable is null since null is not Countable:

if (!count($elements)) {
      throw new AresException('Nic nebylo nalezeno.');
}

Leading zero of companyId

Today i found a problem. If I have a leading zero with my company id (ICO). The result of findByIdentificationNumber is int.. so the leading zero disappear and I have invalid company id.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.