PHPackages                             fatihtuzlu/qfb-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. fatihtuzlu/qfb-api

ActiveLibrary[API Development](/categories/api)

fatihtuzlu/qfb-api
==================

QNB Finansbank E-Fatura ve E-Arşiv PHP Api

38PHP

Since Apr 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tuzlu07x/qnb-invoice-api)[ Packagist](https://packagist.org/packages/fatihtuzlu/qfb-api)[ RSS](/packages/fatihtuzlu-qfb-api/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

QFB-API (QNB Finansbank API)
============================

[](#qfb-api-qnb-finansbank-api)

KURULUM
-------

[](#kurulum)

```
composer require fatihtuzlu/qfb-api

```

KULLANIM
--------

[](#kullanim)

Paketi kullanmak için, öncelikle BaseSoapClient, Adaptor, ItemAdaptor, Archive ve EInvoice sınıflarını dahil etmelisiniz.

Aşağıdaki örnek kod, Archive ve EInvoice sınıflarını kullanarak E-Arşiv ve E-Fatura işlemlerini gerçekleştirmenize yardımcı olacaktır:

```
use QNBFinansbank\BaseSoapClient;
use QNBFinansbank\Invoice\EArchive\Archive;
use QNBFinansbank\Invoice\EInvoice\EInvoice;
use QNBFinansbank\Invoice\Adaptor;
use QNBFinansbank\Invoice\ItemAdaptor;

$url = "https://earsivtest.efinans.com.tr/earsiv/ws/EarsivWebService?wsdl";
$vkn = '3234234234';
$password = 'XXXX';
$erpCode = 'XXX';
$companyName = "XXX";
$streetName = "XXX";
$country = "Türkiye";
$city = "Antalya";
$district = "Konyaaltı";

$itemData = [
    [
        'id' => 1,
        'note' => 'test',
        'quantity' => 1,
        'price' => 100,
        'vatRatio' => 18,
        'purePrice' => 100,
        'vatPrice' => 18,
        'taxName' => 'KDV',
        'taxTypeCode' => '9021',
        'description' => 'test'
    ]
];

$itemAdaptor = new ItemAdaptor('TL', $itemData);
$client = new BaseSoapClient($url, $vkn, $password);
$client->setUserName('ftuzlu.earsiv');

$adaptor = new Adaptor($vkn, $companyName, $streetName, $country, $city, $district);
$adaptor = $adaptor->setItemAdaptor($itemAdaptor);
$adaptor->setUuid(Str::uuid());
$adaptor->setIssueDate('26.02.2023');
$adaptor->setInvoiceTypeCode('SATIS');
$adaptor->setDocumentCurrencyCode('TRY');
$adaptor->setLineCountNumeric(1);
$adaptor->setTaxSheme('KDV');
$adaptor->setAuthorizedName('Fatih');
$adaptor->setAuthorizedSurname('Tuzlu');
$adaptor->setCustomerVkn('11111111111');
$adaptor->setCustomerName('Fatih');
$adaptor->setCustomerEmail('fatihtuzlu07@gmail.com');
$adaptor->setCustomerAuthorizedName('Fatih');
$adaptor->setCustomerAuthorizedSurname('Tuzlu');
```

### E-Arşiv

[](#e-arşiv)

```
$data = new Archive($xml, $client);
$data->sendArchive(); //e arsiv fatura gönderme
$data->inguireArchive('uuid'); //e arsiv fatura sorgulama
$data->hasEInvoice('vkn'); //e fatura sorgulama
$data->getZipArchive('uuid'); //e arsiv fatura zip dosyası indirme
$data->callToCancelArchive('vergiTcKimlikNo', 'uuid', 'invoiceNo'); //e arsiv fatura iptal etme
```

### E-Fatura

[](#e-fatura)

```
$invoice = new EInvoice('erpCode', $xml, $client);
$invoice->sendInvoice(); //e fatura gönderme
$invoice->invoiceInquiry('ettn'); //e fatura sorgulama
$invoice->EInvoiceUser('vkn'); //e fatura kullanıcı bilgileri
$invoice->listIncomingDocuments('vkn'); //gelen e faturalar
$invoice->listOutGoingDocuments('startDate', 'endDate'); //giden e faturalar
$invoice->getIncomingDocuments('startDate', 'endDate');
$invoice->getOutGoingDocuments('startDate', 'endDate');
$invoice->DownloadOutGoingDocuments('belgeOid'); //e fatura indirme
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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/c883222589152dfc614d8ddcb1a872208be25fd07246d2b9f2b2d3741ebf9876?d=identicon)[tuzlu07x](/maintainers/tuzlu07x)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/fatihtuzlu-qfb-api/health.svg)

```
[![Health](https://phpackages.com/badges/fatihtuzlu-qfb-api/health.svg)](https://phpackages.com/packages/fatihtuzlu-qfb-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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