PHPackages                             spojenet/subreg - 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. spojenet/subreg

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

spojenet/subreg
===============

PHP Based Library for easy interaction with soap.subreg.cz

1.4.0(10mo ago)473↓100%2[6 PRs](https://github.com/Spoje-NET/php-subreg/pulls)MITPHPCI passing

Since May 28Pushed 1w ago2 watchersCompare

[ Source](https://github.com/Spoje-NET/php-subreg)[ Packagist](https://packagist.org/packages/spojenet/subreg)[ RSS](/packages/spojenet-subreg/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (7)Versions (13)Used By (0)

Php-subreg
==========

[](#php-subreg)

[![Php-subreg Logo](php-subreg-logo.png?raw=true "Project Logo")](php-subreg-logo.png?raw=true)

CZ: PHP Knihovna pro snadnou práci s API [Subreg.cz](https://subreg.cz/manual/)

[![View php-subreg on GitHub](https://camo.githubusercontent.com/583be41f8d4e6cc9da25f9a926b3b5c3e2e8b795ee133578d5f465b62d744538/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f53706f6a652d4e45542f7068702d7375627265673f636f6c6f723d323332333233266c6162656c3d7068702d737562726567266c6f676f3d676974687562266c6162656c436f6c6f723d323332333233)](https://github.com/Spoje-NET/php-subreg)[![Author Spoje-NET](https://camo.githubusercontent.com/7a0c4f468cdee356116487162ed7b296805c0a2f23b5cba0d7508f9be970d5b9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6a652d4e45542d6238323066393f6c6162656c436f6c6f723d623832306639266c6f676f3d67697468756273706f6e736f7273266c6f676f436f6c6f723d666666)](https://github.com/Spoje-NET) [![Written in PHP](https://camo.githubusercontent.com/9180ddda96c269c3ea1dd38b51b97aa43d4a71dfe4088e66815605753d6f5afe/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d266d6573736167653d50485026636f6c6f723d373737424234266c6f676f3d706870266c6f676f436f6c6f723d464646464646)](https://camo.githubusercontent.com/9180ddda96c269c3ea1dd38b51b97aa43d4a71dfe4088e66815605753d6f5afe/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d266d6573736167653d50485026636f6c6f723d373737424234266c6f676f3d706870266c6f676f436f6c6f723d464646464646)

[![Latest Version](https://camo.githubusercontent.com/ce4a429a463f6e4a59690fe6678bb87bfcbed1f13c27e897d884b6f6603f750d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f53706f6a652d4e45542f7068702d7375627265672e7376673f7374796c653d666c61742d737175617265)](https://github.com/Spoje-NET/php-subreg/releases)[![Software License](https://camo.githubusercontent.com/3d80983c491c8cbff571b0161062c36d18e36189014dd033ab66645363d5e4b1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d474e552d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Spoje-NET/php-subreg/blob/master/LICENSE)[![Total Downloads](https://camo.githubusercontent.com/3c7bdae7b73c0f579d614bc6bad2b163f407c01f3f56b6359d970c670e968da7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73706f6a652e6e65742f7068702d7375627265672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spoje.net/php-subreg)[![Latest stable](https://camo.githubusercontent.com/b23b8a80b8130746ece330b47359e4a15bd9b3cac5a37e6eac7c65c4e36fe1ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73706f6a652e6e65742f7068702d7375627265672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spoje.net/php-subreg)

Poděkování
==========

[](#poděkování)

Vznik této knihovny by nebyl možný bez laskavé podpory společnosti [Spoje.Net](http://www.spoje.net), která hradila vývoj řešení pro navýšení kreditu registrace domén služby. 👍

[![Spoje.Net](https://github.com/Spoje-NET/php-subreg/raw/master/spoje-net_logo.gif "Spoje.Net")](https://github.com/Spoje-NET/php-subreg/raw/master/spoje-net_logo.gif)

U společnosti Spoje.Net, je možné si objednat komerční podporu pro integraci knihovny do vašich projektů.

Instalace
---------

[](#instalace)

```
    composer require spojenet/subreg
```

Konfigurace
-----------

[](#konfigurace)

Konfigurace se provádí nastavením následujících konstant:

```
EASE_LOGGER=syslog|console
SUBREG_LOCATION=https://soap.subreg.cz/cmd.php
SUBREG_URI=https://soap.subreg.cz/soap
SUBREG_LOGIN=spojenetapi#spoje.net
SUBREG_PASSWORD=KfbBPb?Uk6Q@%uca
```

nebo je možné přihlašovací údaje zadávat při vytváření instance třídy.

```
    $sr = new \Subreg\Client([
        "location": "https://ote-soap.subreg.cz/cmd.php",
        "uri": "https://ote-soap.subreg.cz/soap",
        "login": "php-subreg",
        "password": "661a2725fb"
            ]);
```

Tento způsob nastavení má vyšší prioritu než výše uvedené definovaní konstant.

Jak to celé funguje ?
---------------------

[](#jak-to-celé-funguje-)

Ústřední komponentou celé knihovny je Třída Client, která je schopna pomocí PHP rozšíření SoapClient komunikovat se soap.subreg.cz.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance79

Regular maintenance activity

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 70.5% 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 ~543 days

Total

5

Last Release

314d ago

Major Versions

v0.4 → 1.2.12025-01-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/f24039b55245f141b108d0245b5821fe6cc4bb0585e36283f97301cd3aa792bc?d=identicon)[vitex](/maintainers/vitex)

![](https://www.gravatar.com/avatar/c37ffb57ec14670613115c03edd4258168c3eb2353d0990817bf90cf94990311?d=identicon)[Spoje.Net](/maintainers/Spoje.Net)

---

Top Contributors

[![Vitexus](https://avatars.githubusercontent.com/u/2621130?v=4)](https://github.com/Vitexus "Vitexus (62 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (26 commits)")

---

Tags

api-clientphpsoap

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spojenet-subreg/health.svg)

```
[![Health](https://phpackages.com/badges/spojenet-subreg/health.svg)](https://phpackages.com/packages/spojenet-subreg)
```

###  Alternatives

[symfony/routing

Maps an HTTP request to a set of configuration variables

7.6k775.6M1.6k](/packages/symfony-routing)[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k72.4M286](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k302.1M1.0k](/packages/php-http-discovery)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k62.5M214](/packages/nelmio-api-doc-bundle)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k47.0M206](/packages/api-platform-core)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78125.8M374](/packages/react-http)

PHPackages © 2026

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