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.3kMITPHPPHP ^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 3w 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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

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

1192d 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

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[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.

32837.0k](/packages/sunchayn-nimbus)[dreamfactory/df-core

DreamFactory(tm) Core Components

1652.0k38](/packages/dreamfactory-df-core)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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