PHPackages                             burakbuylu/parasut - 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. burakbuylu/parasut

ActiveLibrary[API Development](/categories/api)

burakbuylu/parasut
==================

Paraşüt API entegrasyonu için modern ve kullanımı kolay PHP paketi

00PHP

Since Mar 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/burakbuylu/parasut)[ Packagist](https://packagist.org/packages/burakbuylu/parasut)[ RSS](/packages/burakbuylu-parasut/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Paraşüt API PHP Paketi
======================

[](#paraşüt-api-php-paketi)

Bu paket, Paraşüt API'sini PHP uygulamalarınızda kolayca kullanmanızı sağlar.

Özellikler
----------

[](#özellikler)

- PHP 7.4 ve üzeri uyumluluğu
- Modern OOP yaklaşımı
- PSR-4 autoloading
- Guzzle HTTP client entegrasyonu
- Kapsamlı dokümantasyon
- Unit test desteği
- Tüm Paraşüt API endpoint'leri desteği

Kurulum
-------

[](#kurulum)

Composer ile kurulum yapabilirsiniz:

```
composer require burakbuylu/parasut
```

Kullanım
--------

[](#kullanım)

### Temel Kullanım

[](#temel-kullanım)

```
use BurakBuylu\Parasut\Parasut;

$parasut = new Parasut(
    'client_id',
    'client_secret',
    'username',
    'password',
    'company_id'
);
```

### Fatura İşlemleri

[](#fatura-i̇şlemleri)

```
// Fatura oluşturma
$invoice = $parasut->createInvoice([
    'data' => [
        'type' => 'sales_invoices',
        'attributes' => [
            'item_type' => 'invoice',
            'description' => 'Test Fatura',
            'issue_date' => '2024-03-20',
            'currency' => 'TRY',
            'exchange_rate' => 1,
            'withholding_rate' => 0,
            'vat_withholding_rate' => 0,
            'invoice_discount_type' => 'amount',
            'invoice_discount' => 0,
            'billing_address' => 'Test Adres',
            'billing_phone' => '5555555555',
            'billing_fax' => '',
            'tax_office' => 'Test Vergi Dairesi',
            'tax_number' => '1234567890',
            'city' => 'İstanbul',
            'district' => 'Kadıköy',
            'is_archived' => false,
            'remaining_amount' => 1000,
            'remaining_amount_in_trl' => 1000,
            'payment_status' => 'overdue',
            'shipment_included' => false,
            'cash_sale' => false,
            'shipment_date' => null,
            'shipment_number' => null,
            'order_date' => null,
            'order_number' => null,
            'details' => [
                [
                    'type' => 'sales_invoice_details',
                    'attributes' => [
                        'quantity' => 1,
                        'unit_price' => 1000,
                        'vat_rate' => 18,
                        'discount_type' => 'amount',
                        'discount_value' => 0,
                        'excise_duty_type' => null,
                        'excise_duty_value' => null,
                        'communications_tax_rate' => null,
                        'description' => 'Test Ürün'
                    ]
                ]
            ]
        ]
    ]
]);

// Fatura listesi alma
$invoices = $parasut->getInvoices();

// Fatura detayı alma
$invoiceDetail = $parasut->getInvoice(123);

// Fatura güncelleme
$updatedInvoice = $parasut->updateInvoice(123, [
    'data' => [
        'type' => 'sales_invoices',
        'attributes' => [
            'description' => 'Güncellenmiş Fatura'
        ]
    ]
]);

// Fatura silme
$parasut->deleteInvoice(123);
```

### Müşteri İşlemleri

[](#müşteri-i̇şlemleri)

```
// Müşteri oluşturma
$contact = $parasut->createContact([
    'data' => [
        'type' => 'contacts',
        'attributes' => [
            'name' => 'Test Müşteri',
            'short_name' => 'TM',
            'contact_type' => 'company',
            'tax_office' => 'Test Vergi Dairesi',
            'tax_number' => '1234567890',
            'district' => 'Kadıköy',
            'city' => 'İstanbul',
            'address' => 'Test Adres',
            'phone' => '5555555555',
            'email' => 'test@example.com'
        ]
    ]
]);

// Müşteri listesi alma
$contacts = $parasut->getContacts();

// Müşteri detayı alma
$contactDetail = $parasut->getContact(123);

// Müşteri güncelleme
$updatedContact = $parasut->updateContact(123, [
    'data' => [
        'type' => 'contacts',
        'attributes' => [
            'name' => 'Güncellenmiş Müşteri'
        ]
    ]
]);

// Müşteri silme
$parasut->deleteContact(123);
```

### Ürün İşlemleri

[](#ürün-i̇şlemleri)

```
// Ürün oluşturma
$product = $parasut->createProduct([
    'data' => [
        'type' => 'products',
        'attributes' => [
            'name' => 'Test Ürün',
            'code' => 'TU001',
            'unit' => 'adet',
            'vat_rate' => 18,
            'unit_price' => 1000,
            'currency' => 'TRY',
            'description' => 'Test Ürün Açıklaması'
        ]
    ]
]);

// Ürün listesi alma
$products = $parasut->getProducts();

// Ürün detayı alma
$productDetail = $parasut->getProduct(123);

// Ürün güncelleme
$updatedProduct = $parasut->updateProduct(123, [
    'data' => [
        'type' => 'products',
        'attributes' => [
            'name' => 'Güncellenmiş Ürün'
        ]
    ]
]);

// Ürün silme
$parasut->deleteProduct(123);
```

### İşlem İşlemleri

[](#i̇şlem-i̇şlemleri)

```
// İşlem oluşturma
$transaction = $parasut->createTransaction([
    'data' => [
        'type' => 'transactions',
        'attributes' => [
            'description' => 'Test İşlem',
            'date' => '2024-03-20',
            'amount' => 1000,
            'currency' => 'TRY',
            'exchange_rate' => 1,
            'transaction_type' => 'income'
        ]
    ]
]);

// İşlem listesi alma
$transactions = $parasut->getTransactions();

// İşlem detayı alma
$transactionDetail = $parasut->getTransaction(123);

// İşlem güncelleme
$updatedTransaction = $parasut->updateTransaction(123, [
    'data' => [
        'type' => 'transactions',
        'attributes' => [
            'description' => 'Güncellenmiş İşlem'
        ]
    ]
]);

// İşlem silme
$parasut->deleteTransaction(123);
```

### Ödeme İşlemleri

[](#ödeme-i̇şlemleri)

```
// Ödeme oluşturma
$payment = $parasut->createPayment([
    'data' => [
        'type' => 'payments',
        'attributes' => [
            'description' => 'Test Ödeme',
            'date' => '2024-03-20',
            'amount' => 1000,
            'currency' => 'TRY',
            'exchange_rate' => 1,
            'payment_type' => 'cash'
        ]
    ]
]);

// Ödeme listesi alma
$payments = $parasut->getPayments();

// Ödeme detayı alma
$paymentDetail = $parasut->getPayment(123);

// Ödeme güncelleme
$updatedPayment = $parasut->updatePayment(123, [
    'data' => [
        'type' => 'payments',
        'attributes' => [
            'description' => 'Güncellenmiş Ödeme'
        ]
    ]
]);

// Ödeme silme
$parasut->deletePayment(123);
```

### Döviz İşlemleri

[](#döviz-i̇şlemleri)

```
// Döviz kurları listesi alma
$exchangeRates = $parasut->getExchangeRates();

// Döviz kuru detayı alma
$exchangeRateDetail = $parasut->getExchangeRate(123);
```

### Şirket İşlemleri

[](#şirket-i̇şlemleri)

```
// Şirket detayları alma
$company = $parasut->getCompany();

// Şirket ayarları alma
$companySettings = $parasut->getCompanySettings();

// Şirket ayarları güncelleme
$updatedCompanySettings = $parasut->updateCompanySettings([
    'data' => [
        'type' => 'settings',
        'attributes' => [
            'setting_key' => 'setting_value'
        ]
    ]
]);

// Şirket kullanıcıları listesi alma
$companyUsers = $parasut->getCompanyUsers();

// Şirket kullanıcı detayı alma
$companyUserDetail = $parasut->getCompanyUser(123);

// Şirket rolleri listesi alma
$companyRoles = $parasut->getCompanyRoles();

// Şirket rol detayı alma
$companyRoleDetail = $parasut->getCompanyRole(123);

// Şirket izinleri listesi alma
$companyPermissions = $parasut->getCompanyPermissions();

// Şirket izin detayı alma
$companyPermissionDetail = $parasut->getCompanyPermission(123);

// Şirket etiketleri listesi alma
$companyTags = $parasut->getCompanyTags();

// Şirket etiket detayı alma
$companyTagDetail = $parasut->getCompanyTag(123);

// Şirket etiketi oluşturma
$newCompanyTag = $parasut->createCompanyTag([
    'data' => [
        'type' => 'tags',
        'attributes' => [
            'name' => 'Test Etiket'
        ]
    ]
]);

// Şirket etiketi güncelleme
$updatedCompanyTag = $parasut->updateCompanyTag(123, [
    'data' => [
        'type' => 'tags',
        'attributes' => [
            'name' => 'Güncellenmiş Etiket'
        ]
    ]
]);

// Şirket etiketi silme
$parasut->deleteCompanyTag(123);
```

Geliştirme
----------

[](#geliştirme)

### Gereksinimler

[](#gereksinimler)

- PHP 7.4 veya üzeri
- Composer
- PHPUnit (test için)

### Test Çalıştırma

[](#test-çalıştırma)

```
composer test
```

### Kod Standartları Kontrolü

[](#kod-standartları-kontrolü)

```
composer cs-check
```

### Kod Standartları Düzeltme

[](#kod-standartları-düzeltme)

```
composer cs-fix
```

Lisans
------

[](#lisans)

Bu paket MIT lisansı altında lisanslanmıştır. Detaylar için [LICENSE](LICENSE) dosyasına bakın.

Destek
------

[](#destek)

Herhangi bir sorunuz veya öneriniz varsa, lütfen GitHub üzerinden issue açın.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

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/4c4d53c3a65fbded24aca9a7f82f25e5f55fdbf4099f620768b6fc5f6c070176?d=identicon)[burakbuylu](/maintainers/burakbuylu)

### Embed Badge

![Health badge](/badges/burakbuylu-parasut/health.svg)

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

###  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)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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