PHPackages                             vadgab/yii2-szamlazz-api - 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. [API Development](/categories/api)
4. /
5. vadgab/yii2-szamlazz-api

ActiveYii2-extension[API Development](/categories/api)

vadgab/yii2-szamlazz-api
========================

The application is a YII2-Extension for the Szamlazz.hu API

011PHP

Since Mar 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vadgab/yii2-szamlazzhu-api)[ Packagist](https://packagist.org/packages/vadgab/yii2-szamlazz-api)[ RSS](/packages/vadgab-yii2-szamlazz-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Yii2 Szamlazz.hu Api Extension
==============================

[](#yii2-szamlazzhu-api-extension)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/):

```
composer require --prefer-dist vadgab/yii2-szamlazzhu-api

```

Basic Usage
-----------

[](#basic-usage)

General use can be tried through the following examples:

- Create Invoice

    ```
    use vadgab\Yii2SzamlazzhuApi\SzamlazzhuApi;
    use vadgab\Yii2SzamlazzhuApi\Schema\InvoiceSchema;

    $invoiceCreate = new SzamlazzhuApi;

     $schema = new InvoiceSchema;

     $schema->type = 1;  // invoice
     /****** Invoice types this method
          * 5 - Pre Invoice
          * 6 - Final Invoice
          * 7 - Corrective Invoice
        * 8 - Pro forma (díjbekérő)
          * 9 - Delivery Invoice
    *******/

    $schema->defineInvoiceType();

    /* adding settings value */

    $schema->settings['eszamla'] = "false";
     $schema->settings['szamlaLetoltes'] = "true";
    $schema->settings['szamlaLetoltesPld'] = "1";
     $schema->settings['valaszVerzio'] = "1";
    $schema->settings['aggregator'] = "";

    /* adding header value */

    $schema->header['keltDatum'] = date('Y-m-d');
    $schema->header['teljesitesDatum'] = date('Y-m-d');
    $schema->header['fizetesiHataridoDatum'] = date('Y-m-d',mktime(0,0,0,date('m'),date('d')+8,date('Y')));
    $schema->header['fizmod'] = "Átutalás";
    $schema->header['penznem'] = "Ft";
    $schema->header['szamlaNyelve'] = "hu";
     $schema->header['megjegyzes'] = "Számla teszt megjegyzés ";
    $schema->header['arfolyamBank'] = "MNB";
     $schema->header['arfolyam'] = "1";
    $schema->header['fizetve'] = "false";

    /* adding seller value */

    $schema->seller['bank'] = "";
    $schema->seller['bankszamlaszam'] = "11111111-22222222-33333333";
     $schema->seller['emailReplyto'] = "info@test.com";
    $schema->seller['emailTargy'] = "Teszt tárgy";
     $schema->seller['emailSzoveg'] = "Teszt szöveg";
    $schema->seller['alairoNeve'] = "Eladó aláírója";

    /* adding buyer value */

    $schema->buyer['nev'] = "Teszt cég minta";
    $schema->buyer['orszag'] = "Magyarország";
    $schema->buyer['irsz'] = "1156";
    $schema->buyer['telepules'] = "Budapest";
    $schema->buyer['cim'] = "Drégelyvár utca 6";
    $schema->buyer['email'] = "";
    $schema->buyer['sendEmail'] = "false";
    $schema->buyer['adoszam'] = "11111111-42-1";
    $schema->buyer['adoszamEU'] = "HU11111111";
    $schema->buyer['postazasiNev'] = "";
    $schema->buyer['postazasiIrsz'] = "";
     $schema->buyer['postazasiTelepules'] = "";
    $schema->buyer['postazasiCim'] = "";
     $schema->buyer['alairoNeve'] = "Vevő aláírója";
    $schema->buyer['megjegyzes'] = "Teszt megjegyzés 2";

    /* adding items 1 value */

    $schema->items['megnevezes'] = "Teszt termék 1";
    $schema->items['mennyiseg'] = "1";
    $schema->items['mennyisegiEgyseg'] = "2000";
    $schema->items['afakulcs'] = "AAM";
    $schema->items['nettoEgysegar'] = "2000";
     $schema->items['nettoErtek'] = "2000";
    $schema->items['bruttoErtek'] = "2000";
     $schema->items['megjegyzes'] = "";
    $schema->InvoiceAddItems();

    /* adding items 2 value */

    $schema->items['megnevezes'] = "Teszt termék 2";
    $schema->items['mennyiseg'] = "1";
    $schema->items['mennyisegiEgyseg'] = "1000";
    $schema->items['afakulcs'] = "AAM";
    $schema->items['nettoEgysegar'] = "1000";
     $schema->items['nettoErtek'] = "1000";
    $schema->items['bruttoErtek'] = "1000";
     $schema->items['megjegyzes'] = "";
    $schema->InvoiceAddItems();

    /* Generate XML */

    $xml = $schema->InvoiceGenerateXml();

    /* Invoice payed send and process */

     $out = $invoiceCreate->createSzamla($schema);

     var_dump($out);
     /***** output
     	* $out['error']
     	* $out['szamlaszam']
     	* $out['agent_body'] //PDF
     	*****/
    ```
- Add Invoice payed

    ```
    use vadgab\Yii2SzamlazzhuApi\SzamlazzhuApi;
    use vadgab\Yii2SzamlazzhuApi\Schema\InvoiceSchema;

    $invoiceCreate = new SzamlazzhuApi;
    $schema = new InvoiceSchema;

    $schema->type = 2;  // invoice set payed

    $schema->defineInvoiceType();

    $schema->settings['szamlaszam'] = '78987-2022-326';
    $schema->settings['additiv'] = 'false';

    $schema->payed['datum'] = '2022-11-16';
    $schema->payed['jogcim'] = 'This invoice is payed ';
    $schema->payed['osszeg'] = '2000';
    $schema->InvoiceAddPayed();
    $schema->payed['datum'] = '2022-11-16';
    $schema->payed['jogcim'] = 'This invoice is payed ';
    $schema->payed['osszeg'] = '2000';
    $schema->InvoiceAddPayed();
    /* Generate XML */

    $xml = $schema->InvoicePayedGenerateXml();

    /* Invoice payed send and process */

    $out = $invoiceCreate->createSzamla($schema);

    var_dump($out);
    ```
- Create Storno invoice

    ```
    use vadgab\Yii2SzamlazzhuApi\SzamlazzhuApi;
    use vadgab\Yii2SzamlazzhuApi\Schema\InvoiceSchema;

    $invoiceCreate = new SzamlazzhuApi;
    $schema = new InvoiceSchema;

    $schema->type = 3;  // Create strono invoice

    $schema->defineInvoiceType();

    /* adding settings value */

    $schema->settings['eszamla'] = "false";
    $schema->settings['szamlaLetoltes'] = "true";
    $schema->settings['szamlaLetoltesPld'] = "1";
    $schema->settings['aggregator'] = "";

    /* adding header value */

    $schema->header['keltDatum'] = date('Y-m-d');
    $schema->header['teljesitesDatum'] = date('Y-m-d');
    $schema->header['szamlaszam'] = "78987-2022-328";

    /* adding seller value */

    $schema->seller['emailReplyto'] = "info@test.com";
    $schema->seller['emailTargy'] = "Teszt tárgy";
    $schema->seller['emailSzoveg'] = "Teszt szöveg";

    /* adding buyer value */

    $schema->buyer['email'] = "teszt@teszt.com";

    /* Generate XML */

    $xml = $schema->InvoiceStornoGenerateXml();

    /* Invoice payed send and process */

    $out = $invoiceCreate->createSzamla($schema);

    var_dump($out);
    /***** output
    		* $out['error']
    		* $out['szamlaszam']
    		* $out['agent_body'] //PDF
    		*****/
    ```
- Create delete Pro forma

    ```
    use vadgab\Yii2SzamlazzhuApi\SzamlazzhuApi;
    use vadgab\Yii2SzamlazzhuApi\Schema\InvoiceSchema;

    $invoiceCreate = new SzamlazzhuApi;
    $schema = new InvoiceSchema;

    $schema->type = 10;  // invoice set delete Pro Forma

    $schema->defineInvoiceType();

    /* adding header value */

    $schema->header['szamlaszam'] = "D-78987-277";
    //        $schema->header['rendelesszam'] = "";

    /* Generate XML */

    $xml = $schema->InvoiceProFormaDeleteGenerateXml();

    /* Invoice payed send and process */

    $out = $invoiceCreate->createSzamla($schema);
    ```
- Get invoice data

    ```
    use vadgab\Yii2SzamlazzhuApi\SzamlazzhuApi;
    use vadgab\Yii2SzamlazzhuApi\Schema\InvoiceSchema;

    $invoiceCreate = new SzamlazzhuApi;
    $schema = new InvoiceSchema;

    $schema->type = 11;  // invoice get invoice data

    $schema->defineInvoiceType();

    /* adding header value */

    $schema->header['szamlaszam'] = "E-78987-2017-536";
    //        $schema->header['rendelesszam'] = "";
    $schema->header['pdf'] = "true";  // output base64 encoded

    /* Generate XML */

    $xml = $schema->InvoiceGetDataGenerateXml();

    /* Invoice payed send and process */

    $out = $invoiceCreate->createSzamla($schema);

    var_dump($out);
    ```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f4ce45ea3e7a9241048500bdbbfcfc0a834b8fdc95d0ac51a8b82404b2de17d?d=identicon)[vadgab](/maintainers/vadgab)

---

Top Contributors

[![vadgab](https://avatars.githubusercontent.com/u/22323808?v=4)](https://github.com/vadgab "vadgab (10 commits)")

### Embed Badge

![Health badge](/badges/vadgab-yii2-szamlazz-api/health.svg)

```
[![Health](https://phpackages.com/badges/vadgab-yii2-szamlazz-api/health.svg)](https://phpackages.com/packages/vadgab-yii2-szamlazz-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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