PHPackages                             erikgreasy/superfaktura-client - 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. erikgreasy/superfaktura-client

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

erikgreasy/superfaktura-client
==============================

HTTP client for SuperFaktura REST api

v0.2.0(3y ago)61.3k↓100%MITPHPPHP ^8.1

Since Feb 16Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

SuperFaktúra PHP api client
===========================

[](#superfaktúra-php-api-client)

PHP api klient pre komunikáciu s REST api systémom SuperFaktúra.

Všebecné / Motivácia
--------------------

[](#všebecné--motivácia)

Motiváciou k vytvoreniu tohto balíčku bolo časté využívanie (výborného) fakturačného softvéru SuperFaktúra. Existujúci first party [PHP api klient](https://github.com/superfaktura/apiclient) je bohužiaľ už nekompatibilný s novými PHP verziami a jeho používanie na projektoch bolo čím ďalej náročnejšie. Preto som sa rozhodol vytvoriť vlastný api klient, ktorý by bol použiteľný v novších projektoch, do budúcna zjednodušenie práce s api, strongly typed parametre... Oficiálnu REST api dokumentáciu je možné nájsť na [tejto adrese](https://github.com/superfaktura/docs).

**Projekt je vyvíjaný ako víkendový projekt, nápady na zlepšenia a PR sú vítané.**

Požiadavky
----------

[](#požiadavky)

PHP &gt;= 8.1

Inštalácia
----------

[](#inštalácia)

Inštalácia je možná cez nástroj Composer:

```
composer require erikgreasy/superfaktura-client

```

Použitie
--------

[](#použitie)

### Vytvorenie klienta

[](#vytvorenie-klienta)

Pre komunikáciu s api, je v prvom kroku potrebné vytvoriť inštanciu triedy Superfaktura, pomocou ktorej prebiehajú všetky volania.

Vytvorenie klienta (údaje email a apiKey je možné nájsť vo vašej administrácii SuperFaktúry v časti Nástroje - API)

```
use Erikgreasy\Superfaktura\Superfaktura;

$sf = new Superfaktura(
    email: 'email@example.com',
    apiKey: 'vygenerovany_api_kluc',
    isSandbox: true // pouzitie sandbox modu - optional parameter
);
```

### Vytvorenie faktúry

[](#vytvorenie-faktúry)

Pre vytváranie faktúr v systéme je možné využiť nasledujúcu ukážku kódu. Štruktúra parametrov metód vychádza zo [štruktúry REST api pre vyváranie faktúry](https://github.com/superfaktura/docs/blob/master/invoice.md#add-invoice).

```
$response = $sf
    ->newInvoice()
    ->setClient([
        'name' => 'Klient s.r.o.'
    ])
    ->addItem([
        'name' => 'Položka 1',
        'unit_price' => 20,
    ])
    ->addItem([
        'name' => 'Položka 2',
        'unit_price' => 20,
        'quantity' => 2,
    ])
    ->save();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~17 days

Total

3

Last Release

1147d ago

### Community

Maintainers

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

---

Top Contributors

[![erikgreasy](https://avatars.githubusercontent.com/u/51275432?v=4)](https://github.com/erikgreasy "erikgreasy (11 commits)")

---

Tags

http clientsuperfaktura rest api

### Embed Badge

![Health badge](/badges/erikgreasy-superfaktura-client/health.svg)

```
[![Health](https://phpackages.com/badges/erikgreasy-superfaktura-client/health.svg)](https://phpackages.com/packages/erikgreasy-superfaktura-client)
```

###  Alternatives

[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[m6web/guzzle-http-bundle

Symfony bundle on top of Guzzle

17511.5k2](/packages/m6web-guzzle-http-bundle)[slimpay/hapiclient

An HTTP Client using HAL as the format for resources.

14317.3k](/packages/slimpay-hapiclient)[zoonman/pixabay-php-api

PixabayClient is a PHP HTTP client library to access Pixabay's API

3354.7k](/packages/zoonman-pixabay-php-api)[amphp/http-client-guzzle-adapter

Guzzle adapter for Amp's HTTP client.

1523.6k1](/packages/amphp-http-client-guzzle-adapter)

PHPackages © 2026

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