PHPackages                             cenksen/laravel-kolaybi - 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. cenksen/laravel-kolaybi

ActiveLibrary[API Development](/categories/api)

cenksen/laravel-kolaybi
=======================

KolayBi API for Laravel

012PHP

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cenksen/laravel-kolaybi)[ Packagist](https://packagist.org/packages/cenksen/laravel-kolaybi)[ RSS](/packages/cenksen-laravel-kolaybi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

KolayBi API Laravel Package
===========================

[](#kolaybi-api-laravel-package)

A Laravel package for integrating with the KolayBi API.

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

[](#installation)

You can install the package via composer:

```
composer require cenksen/laravel-kolaybi
```

### Configuration

[](#configuration)

After installing, you can publish the configuration file:

```
php artisan vendor:publish --provider="Cenksen\Kolaybi\KolayBiServiceProvider"
```

This will create a kolaybi.php config file in your config directory.

### Usage

[](#usage)

#### Creating a Product

[](#creating-a-product)

Here’s an example of how to create a product:

```
use Cenksen\Kolaybi\Facades\KolayBi;

public function createProduct()
{

   $productData = [
    'name' => 'Monthly',
    'code' => 'ABN002',
    'quantity' => 10,
    'vat_rate' => 20,
    'barcode' => '0000000122331',
    'description' => 'Monthly Subscription',
    'discount_type' => 'percentage', // Allowed values: numeric, percentage
    'discount_value' => 0.00,
    'product_type' => 'good', // Allowed values: good, service
    'tags' => ['label1', 'label2'],
    'price_currency' => 'TRY',
    'price' => 100.000,
    ];

    $response = KolayBi::createProduct($productData);
    return response()->json($response);
}
```

```
use Cenksen\Kolaybi\Facades\KolayBi;

public function createAssociate()
{
        $associateData = [
            'name' => 'demo',
            'surname' => 'user',
            'identity_no' => '3232322323232323',
            'tax_office' => 'Yesil VERGİ DAİRESİ MÜDÜRLÜĞÜ',
            'phone' => '+905123456789',
            'email' => 'user@example.com',
            'code' => '000001'
        ];

        $associateResponse = KolayBi::createAssociate($associateData);
        return response()->json($response);
}
```

```
use Cenksen\Kolaybi\Facades\KolayBi;

public function createInvoice()
{
        $invoiceData = [
            'contact_id' => 123123,
            'address_id' => 123123,
            'order_date' => '2024-09-13T00:00:00Z',
            'currency' => 'try',
            'type' => 'sale_invoice',
            'receiver_email' => 'user@example.com',
            'serial_no' => 'SER123456',
            'due_date' => '2024-10-13T00:00:00Z',
            'tracking_currency' => 'try',
            'items' => [
                [
                    'product_id' => 184907,
                    'quantity' => '10',
                    'unit_price' => '20.00',
                    'vat_rate' => '18',
                    'discount_amount' => '0',
                    'description' => 'Ürün Açıklaması',
                    'gtip_no' => 123456789012,
                ],
            ],
        ];

        $response = KolayBi::createInvoice($invoiceData);
        return response()->json($response);
}
```

```
use Cenksen\Kolaybi\Facades\KolayBi;

public function createInvoiceProceed()
{
        $proceedData = [
            'document_id' => 111111,
            'vault_id' => 14711167,
        ];

        $response = KolayBi::createInvoiceProceed($proceedData);
        return response()->json($response);
}
```

```
use Cenksen\Kolaybi\Facades\KolayBi;

 public function createInvoiceEDocument()
{
        $documentData = [
            'document_id' => 5839980,
        ];

        $response = $this->kolayBi->createInvoiceEDocument($documentData);
        return response()->json($response);
}
```

### Contributing

[](#contributing)

If you want to contribute to this project, feel free to submit a pull request or open an issue.

### License

[](#license)

This package is licensed under the MIT License.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity16

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

### Embed Badge

![Health badge](/badges/cenksen-laravel-kolaybi/health.svg)

```
[![Health](https://phpackages.com/badges/cenksen-laravel-kolaybi/health.svg)](https://phpackages.com/packages/cenksen-laravel-kolaybi)
```

###  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)
