PHPackages                             digitalcz/register-adries - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. digitalcz/register-adries

ActiveLibrary[HTTP &amp; Networking](/categories/http)

digitalcz/register-adries
=========================

Provides communication with https://data.gov.sk/dataset/register-adries in PHP OOP via PSR-18 HTTP client

v1.2.0(3y ago)515.6k↓25%1[4 PRs](https://github.com/digitalcz/register-adries/pulls)MITPHPPHP ~7.4||~8.0

Since Jun 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/digitalcz/register-adries)[ Packagist](https://packagist.org/packages/digitalcz/register-adries)[ Docs](https://github.com/digitalcz/register-adries)[ RSS](/packages/digitalcz-register-adries/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (12)Versions (13)Used By (0)

register-adries
===============

[](#register-adries)

[![Latest Version on Packagist](https://camo.githubusercontent.com/341ff3d7066712eabaea9f5dc6e83ef19bc3855613da6383535cb43fc002d158/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6469676974616c637a2f72656769737465722d6164726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitalcz/register-adries)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)![CI](https://github.com/digitalcz/register-adries/workflows/CI/badge.svg)[![codecov](https://camo.githubusercontent.com/da4591c3b87c01fa0de464615d187e49fd44e89820fb34a317efd6617d8201a6/68747470733a2f2f636f6465636f762e696f2f67682f6469676974616c637a2f72656769737465722d6164726965732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/digitalcz/register-adries)[![Total Downloads](https://camo.githubusercontent.com/f214d14b35c11c95cbcbf4311e6934afd0e04b2761817772e8473e8682b553de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6469676974616c637a2f72656769737465722d6164726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitalcz/register-adries)

Provides communication with  in PHP OOP via PSR-18 HTTP client

Install
-------

[](#install)

Via Composer

```
$ composer require digitalcz/register-adries
```

Usage
-----

[](#usage)

```
$register = new DigitalCz\RegisterAdries\RegisterAdries();
$response = $register
    ->request()             // create RequestBuilder
    ->regions()             // set resource to fetch
    ->limit(5)              // limit number of results
    ->offset(10)            // offset first result
    ->execute();            // execute the request and return response

$response->getRecords();    // DigitalCz\RegisterAdries\Response\Region[]
$response->getTotal();      // total number of results
```

#### With conditions

[](#with-conditions)

```
$register = new DigitalCz\RegisterAdries\RegisterAdries();
$register
    ->request()                         // create RequestBuilder
    // comparison
    ->whereEq('foo', 'bar')             // `foo = bar`
    ->whereNeq('foo', 'bar')             // `foo != bar`
    ->whereGt('foo', 40)                // `foo > 40`
    ->whereGte('foo', 40)               // `foo >= 40`
    ->whereLt('foo', 40)                // `foo < 40`
    ->whereLte('foo', 40)               // `foo whereLike('foo', 'bar')           // `foo LIKE bar`
    ->whereStartsWith('foo', 'bar')     // `foo LIKE bar%`
    ->whereEndsWith('foo', 'bar')       // `foo LIKE %bar`
    ->whereContains('foo', 'bar')        // `foo LIKE %bar%`
    // helpers
    ->whereObjectId(12)                 // `objectId = 12`
    ->onlyValid();                      // `WHERE {now} > validFrom AND {now} < validTo`
```

#### Requesting by objectId

[](#requesting-by-objectid)

```
$register = new DigitalCz\RegisterAdries\RegisterAdries();
$register->findRegion(9);           // returns DigitalCz\RegisterAdries\Response\Region or null
$register->findCounty(9);           // returns DigitalCz\RegisterAdries\Response\County or null
$register->findMunicipality(9);     // returns DigitalCz\RegisterAdries\Response\Municipality or null
$register->findDistrict(9);         // returns DigitalCz\RegisterAdries\Response\District or null
$register->findStreet(9);           // returns DigitalCz\RegisterAdries\Response\Street or null
$register->findUnit(9);             // returns DigitalCz\RegisterAdries\Response\Unit or null
$register->findBuilding(9);         // returns DigitalCz\RegisterAdries\Response\Building or null
$register->findEntrance(9);         // returns DigitalCz\RegisterAdries\Response\Entrance or null
```

#### Available resources

[](#available-resources)

- region -
- county -
- municipality -
- district -
- street -
- unit -
- building -
- entrance -

Available on builder as

```
$register = new DigitalCz\RegisterAdries\RegisterAdries();
$register
    ->request()
    // ...
    ->resource('region')
    ->resource(DigitalCz\RegisterAdries\RegisterResource::REGION)
    ->regions()
    // ...
    ->counties()
    ->municipalities()
    ->districts()
    ->streets()
    ->units()
    ->buildings()
    ->entrances();
// It isn't possible to request more resources, this is just example
```

#### Using your own http client

[](#using-your-own-http-client)

You can provide PSR18 http client (and PSR17 factories) when creating instance of RegisterAdries, if no arguments are provided Psr18ClientDiscovery and Psr17FactoryDiscovery will be used (see ).

```
// example
$symfonyHttpClient = Symfony\Component\HttpClient\Psr18Client();

$register = new DigitalCz\RegisterAdries\RegisterAdries(
    $symfonyHttpClient,
    $symfonyHttpClient   // symfony PSR18 client is also PSR17 factory
);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer checks   # codesniffer + phpstan + phpunit
$ composer csfix    # code beautifier
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Digital Solutions s.r.o.](https://github.com/digitalcz)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 70% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~194 days

Recently: every ~243 days

Total

6

Last Release

1196d ago

Major Versions

v0.2.0 → v1.0.02020-06-10

PHP version history (2 changes)v0.1.0PHP ~7.2

v1.2.0PHP ~7.4||~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cdd1a59b82ee65304942a9e50a35ed1628b43db456088c334e73f8e80db9237?d=identicon)[spajxo](/maintainers/spajxo)

![](https://avatars.githubusercontent.com/u/19805238?v=4)[DigitalCz](/maintainers/digitalcz)[@digitalcz](https://github.com/digitalcz)

---

Top Contributors

[![spajxo](https://avatars.githubusercontent.com/u/12384486?v=4)](https://github.com/spajxo "spajxo (56 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (20 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (3 commits)")[![DigitalSolutionsCZ](https://avatars.githubusercontent.com/u/21871870?v=4)](https://github.com/DigitalSolutionsCZ "DigitalSolutionsCZ (1 commits)")

---

Tags

phpdigitalczslovakiaregister-adriesdata.gov.skkataster

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/digitalcz-register-adries/health.svg)

```
[![Health](https://phpackages.com/badges/digitalcz-register-adries/health.svg)](https://phpackages.com/packages/digitalcz-register-adries)
```

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[juststeveking/php-sdk

A framework for building SDKs in PHP.

21872.0k2](/packages/juststeveking-php-sdk)[saintsystems/odata-client

Saint Systems OData Client for PHP

159507.0k2](/packages/saintsystems-odata-client)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
