PHPackages                             tarfin-labs/laravel-iys - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tarfin-labs/laravel-iys

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

tarfin-labs/laravel-iys
=======================

Laravel Iys Package

1.0.0(5y ago)54MITPHPPHP ^7.4

Since Nov 2Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Laravel Iys
===========

[](#laravel-iys)

[![Latest Version on Packagist](https://camo.githubusercontent.com/383dfe0453c9099862bda85a7b1008e8165885b3a1029339e44cd591481150ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74617266696e2d6c6162732f6c61726176656c2d6979732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tarfin-labs/laravel-iys)[![GitHub Workflow Status](https://camo.githubusercontent.com/c53a46560f142eb724170c5e5c2981727dda40bd2743f6ae30e1baeb9ce60ec6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f74617266696e2d6c6162732f6c61726176656c2d6979732f74657374733f6c6162656c3d7465737473)](https://camo.githubusercontent.com/c53a46560f142eb724170c5e5c2981727dda40bd2743f6ae30e1baeb9ce60ec6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f74617266696e2d6c6162732f6c61726176656c2d6979732f74657374733f6c6162656c3d7465737473)[![Quality Score](https://camo.githubusercontent.com/7d241bea894132299825ba2414dc0e99a4cbde74ff71c7242009bc51e06d5f34/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f74617266696e2d6c6162732f6c61726176656c2d6979732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tarfin-labs/laravel-iys)[![Total Downloads](https://camo.githubusercontent.com/0832063618952bca886a17e81a341b4027d8b4cd4199f404425ced85bdda3358/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74617266696e2d6c6162732f6c61726176656c2d6979732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tarfin-labs/laravel-iys)

Laravel İleti Yönetim Sistemi (IYS) entegrasyonu.

Kurulum
-------

[](#kurulum)

Laravel-iys paketini composer ile aşağıdaki komutu çalıştırarak kolayca ekleyebilirsiniz:

```
composer require tarfin-labs/laravel-iys
```

Sonrasında config dosyasını yayınlamanız gerekmektedir:

```
php artisan vendor:publish --provider="TarfinLabs\Iys\IysServiceProvider"
```

Konfigurasyonu tamamlamak için `.env` dosyasına aşağıdaki bilgileri eklemelisiniz:

```
IYS_URL=
IYS_USERNAME=
IYS_PASSWORD=
IYS_CODE=
IYS_BRAND_CODE=

```

Kullanım
--------

[](#kullanım)

IYS API dokümantasyonu ve dönen istek cevaplarına  adresinden ulaşabilirsiniz.

### Marka Yönetimi

[](#marka-yönetimi)

#### Marka Listeleme:

[](#marka-listeleme)

```
$response = Iys::brands()->all();
```

veya

```
$iys = new \TarfinLabs\Iys\Iys();
$response = $iys->brands()->all();
```

### İzin Yönetimi

[](#i̇zin-yönetimi)

#### Tekil İzin Ekleme

[](#tekil-i̇zin-ekleme)

```
$response = Iys::consents()->create([
                'consentDate'    => '2018-02-10 09:30:00',
                'source'         => 'HS_CAGRI_MERKEZI',
                'recipient'      => '+905813334455',
                'recipientType'  => 'BIREYSEL',
                'status'         => 'ONAY',
                'type'           => 'ARAMA',
                'retailerCode '  => 11223344,
                'retailerAccess' => [
                     22233344,
                     44222419,
                     13239987
                ]
            ]);
```

#### Tekil İzin Durumu Sorgulama

[](#tekil-i̇zin-durumu-sorgulama)

```
$response = Iys::consents()->status([
                'recipient'     => '+905813334455',
                'recipientType' => 'BIREYSEL',
                'type'          => 'MESAJ',
            ]);
```

#### Asenkron Çoklu İzin Ekleme

[](#asenkron-çoklu-i̇zin-ekleme)

```
$response = Iys::consents()->createMany([
             [
                 'consentDate'    => '2018-02-10 09:30:00',
                 'source'         => 'HS_MESAJ',
                 'recipient'      => '+905813334455',
                 'recipientType'  => 'BIREYSEL',
                 'status'         => 'RET',
                 'type'           => 'ARAMA',
                 'retailerCode '  => 11223344,
                 'retailerAccess' => [
                     22233344,
                     44222419,
                     13239987
                 ]
             ],
             [
                 'consentDate'    => '2018-02-10 09:40:00',
                 'source'         => 'HS_WEB',
                 'recipient'      => 'ornek@adiniz.com',
                 'recipientType'  => 'BIREYSEL',
                 'status'         => 'ONAY',
                 'type'           => 'EPOSTA',
                 'retailerCode '  => 11223344,
                 'retailerAccess' => [
                     22233344,
                     44222419,
                     13239987
                 ]
             ],
         ]);
```

#### Çoklu İzin Ekleme İsteği Sorgulama

[](#çoklu-i̇zin-ekleme-i̇steği-sorgulama)

```
$response = Iys::consents()->statuses($requestId = '73b75030-3a92-4f1e-b247-b0509dbadbfc');
```

### Bayi Yönetimi

[](#bayi-yönetimi)

#### Bayi Ekleme

[](#bayi-ekleme)

```
$response = Iys::retailers()->create([
            'tckn'   => 42790000000,
            'name'   => 'Adım Soyadım',
            'city'   => [
                'name' => 'İstanbul',
                'code' => '34'
            ],
            'town'   => [
                'name' => 'Şişli',
                'code' => '05'
            ],
            'title'  => 'ADIM SOYADIM TİCARET',
            'mersis' => '0015001526400496',
            'alias'  => 'ŞİŞLİ MAĞAZASI',
            'mobile' => '+905357990000'
        ]);
```

#### Bayi Sorgulama ve Listeleme

[](#bayi-sorgulama-ve-listeleme)

- IYS numarası verilen bayi bilgilerini getirme:

```
$response = Iys::retailers()->find($retailerCode = 66438915);
```

- Tüm bayiler detaylı bilgi ile birlikte:

```
$response = Iys::retailers()->all();
```

- Sayfalama opsiyonları ile birlikte:

```
$response = Iys::retailers()->all($offset = 100, $limit = 10);
```

#### Bayi Silme

[](#bayi-silme)

```
$response = Iys::retailers()->delete($retailerCode = 66438915);
```

### Bayi İzin Yönetimi

[](#bayi-i̇zin-yönetimi)

#### Bayi İzin Erişimi Ekleme

[](#bayi-i̇zin-erişimi-ekleme)

```
$response = Iys::consents()->giveAccess([
                 'recipient' => '+905370000000',
                 'recipientType' => 'TACIR',
                 'type' => 'MESAJ',
                 'retailerAccess' =>  [66438915, 66438916],
             ]);
```

#### Bayi İzin Erişimi Verme

[](#bayi-i̇zin-erişimi-verme)

```
$response = Iys::consents()->giveManyAccess([
                 'recipient'      => [
                     '+905370000000',
                     '+905370000001'
                 ],
                 'recipientType'  => 'TACIR',
                 'type'           => 'EPOSTA',
                 'retailerAccess' => [
                     66438915,
                     66438916
                 ],
             ]);
```

#### Bayi İzin Erişimi Sorgulama

[](#bayi-i̇zin-erişimi-sorgulama)

- Sayfalama bilgileri ön tanımlı değerler ile istek:

```
$response = Iys::consents()->accessList([
                 'recipient'     => 'ornek@deneme.com',
                 'recipientType' => 'TACIR',
                 'type'          => 'MESAJ',
             ]);
```

- Sayfalama bilgileri ile istek:

```
$response = Iys::consents()->accessList([
                 'recipient'     => 'ornek@deneme.com',
                 'recipientType' => 'TACIR',
                 'type'          => 'MESAJ',
             ], 100, 10);
```

#### Bayi İzin Erişimi Silme

[](#bayi-i̇zin-erişimi-silme)

```
$response = Iys::consents()->deleteAccess([
                 'recipients'     => [
                     '+905377115251',
                     '+905377115251',
                 ],
                 'recipientType'  => 'BIREYSEL',
                 'type'           => 'MESAJ',
                 'retailerAccess' => [
                     66438915,
                     66438916,
                 ],
             ]);
```

#### Tüm Bayilerin İzin Erişimini Silme

[](#tüm-bayilerin-i̇zin-erişimini-silme)

```
$response = Iys::consents()->deleteAllAccess([
                 'recipients'     => [
                     '+905377115251',
                     '+905377115251',
                 ],
                 'recipientType'  => 'BIREYSEL',
                 'type'           => 'MESAJ',
             ]);
```

Test
----

[](#test)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Faruk Can](https://github.com/frkcn)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2018d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e252316490c5fc7bae7eb25b6c0cb301b49fbc706c32896fea9467b64cf3653b?d=identicon)[Tarfin Labs](/maintainers/Tarfin%20Labs)

---

Top Contributors

[![frkcn](https://avatars.githubusercontent.com/u/374634?v=4)](https://github.com/frkcn "frkcn (15 commits)")

---

Tags

tarfin-labslaravel-iys

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tarfin-labs-laravel-iys/health.svg)

```
[![Health](https://phpackages.com/badges/tarfin-labs-laravel-iys/health.svg)](https://phpackages.com/packages/tarfin-labs-laravel-iys)
```

###  Alternatives

[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/session

The Illuminate Session package.

9937.4M753](/packages/illuminate-session)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[illuminate/hashing

The Illuminate Hashing package.

6428.7M169](/packages/illuminate-hashing)

PHPackages © 2026

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