PHPackages                             mebularts/shopier - 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. mebularts/shopier

ActiveLibrary[API Development](/categories/api)

mebularts/shopier
=================

Framework-agnostic PHP SDK for Shopier API integrations and webhook verification workflows.

09PHPCI failing

Since Jul 3Pushed 1mo agoCompare

[ Source](https://github.com/mebularts-dev/shopier)[ Packagist](https://packagist.org/packages/mebularts/shopier)[ RSS](/packages/mebularts-shopier/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mebularts Shopier PHP SDK
=========================

[](#mebularts-shopier-php-sdk)

**Shopier API işlemlerini PHP projelerine Composer ile hızlı, güvenli ve sürdürülebilir biçimde eklemek için framework bağımsız PHP SDK’sı.**

[![Tests](https://github.com/mebularts-dev/shopier/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/mebularts-dev/shopier/actions/workflows/tests.yml)[![Static Analysis](https://github.com/mebularts-dev/shopier/actions/workflows/static-analysis.yml/badge.svg?branch=main)](https://github.com/mebularts-dev/shopier/actions/workflows/static-analysis.yml)[![PHP](https://camo.githubusercontent.com/f300b22ba00aa3a0ef67aaab5765489aef8759bc5cdb9af55c0526a00fd80962/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d3737374242343f7374796c653d666c61742d737175617265266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://www.php.net/)[![License](https://camo.githubusercontent.com/62bd00ce40f48fe50261cc4f17fa9c0da5418036dff513abf1f8fe41828bcebe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6562756c617274732d6465762f73686f706965723f7374796c653d666c61742d737175617265)](LICENSE)[![Stars](https://camo.githubusercontent.com/408266abb7be32de017c8dcb99c9add6b28c72de577604a3fa7b2f2439025da4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d6562756c617274732d6465762f73686f706965723f7374796c653d666c61742d737175617265266c6f676f3d676974687562)](https://github.com/mebularts-dev/shopier/stargazers)[![Forks](https://camo.githubusercontent.com/cb08f1273908daf954ff487f6f34bb82b27da133fc838a189c30b613ceae2681/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6d6562756c617274732d6465762f73686f706965723f7374796c653d666c61742d737175617265266c6f676f3d676974687562)](https://github.com/mebularts-dev/shopier/network/members)[![Open Issues](https://camo.githubusercontent.com/31d2b6febc22e22e928fdf25764fc006246038a6a6e89768f78d31a94a8e7cf0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d6562756c617274732d6465762f73686f706965723f7374796c653d666c61742d737175617265266c6f676f3d676974687562)](https://github.com/mebularts-dev/shopier/issues)[![Last Commit](https://camo.githubusercontent.com/8e00038b9535fff5bc38054eb6cd91d4792a2fb62aaa7b113580cfb51e7c8ab5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6d6562756c617274732d6465762f73686f706965723f7374796c653d666c61742d737175617265266c6f676f3d676974)](https://github.com/mebularts-dev/shopier/commits/main)

[![GitHub Repository](https://camo.githubusercontent.com/5b2a98db0f9f9e8110ba816e5d98564c6fbc3108591685df0cda9058f21b2453/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769744875622d5265706f7369746f72792d3138313731373f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/mebularts-dev/shopier)[![Website](https://camo.githubusercontent.com/cabdc8d985292a2506ef418c1652c05166d19d09c1bf9d00e6d613e79b69c64d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5765622d7777772e6d6562756c617274732e636f6d2e74722d3131313131313f7374796c653d666f722d7468652d6261646765266c6f676f3d676f6f676c656368726f6d65266c6f676f436f6c6f723d7768697465)](https://www.mebularts.com.tr)[![Telegram](https://camo.githubusercontent.com/6f7f43f4348809e5f21e74033d5bda0321c3b421d5f5420652ea59c8b118ba22/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54656c656772616d2d406d6562756c617274732d3236413545343f7374796c653d666f722d7468652d6261646765266c6f676f3d74656c656772616d266c6f676f436f6c6f723d7768697465)](https://t.me/mebularts)[![WhatsApp](https://camo.githubusercontent.com/5309af5016269d16a63ab64df5268b2543b209e166d3415300e5b3d2458c9050/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57686174734170702d496e7374616c6c6174696f6e253230537570706f72742d3235443336363f7374796c653d666f722d7468652d6261646765266c6f676f3d7768617473617070266c6f676f436f6c6f723d7768697465)](https://wa.me/12513160268)

Warning

Bu paket **alpha** aşamasındadır. API yüzeyi değişebilir. Canlı ödeme ve webhook akışlarında kullanmadan önce kendi Shopier hesabınızda kapsamlı test yapmanız önerilir.

Note

`mebularts/shopier`, Mebularts tarafından geliştirilen bağımsız bir açık kaynak PHP paketidir. Shopier ile resmi ortaklık, temsilcilik veya bağlılık iddiası taşımaz.

---

Neden Mebularts Shopier PHP SDK?
--------------------------------

[](#neden-mebularts-shopier-php-sdk)

Shopier API entegrasyonlarında yalnızca HTTP isteği göndermek yeterli değildir. Ödeme akışında ürün oluşturma, yönlendirme, webhook yönetimi, ödeme doğrulama, tekrar eden bildirimleri ele alma ve hata senaryoları birlikte düşünülmelidir.

Bu paket; Shopier API işlemlerini daha düzenli bir yapıya taşırken, kendi uygulamanızdaki sipariş, stok, sepet, e-posta ve kargo akışlarını kontrolünüzde tutmanıza yardımcı olur.

### Öne Çıkanlar

[](#öne-çıkanlar)

AlanSağlanan yapıKurulumComposer ile tek komutUyumFramework bağımsız PHP 8.1+APIÜrün, sipariş, bakiye, iade ve webhook kaynaklarıCheckoutSepetten dinamik Shopier ürünü oluşturma ve ödeme URL’si almaDoğrulamaPAT ile API recheck ve isteğe bağlı signature doğrulamaVeri güvenliğiTyped DTO, merkezi exception yapısı ve hassas veri maskelemeGeliştirici deneyimiCLI komutları, örnekler, test ve static analysis altyapısı---

İçindekiler
-----------

[](#i̇çindekiler)

- [Gereksinimler](#gereksinimler)
- [Kurulum](#kurulum)
- [Hızlı Başlangıç](#h%C4%B1zl%C4%B1-ba%C5%9Flang%C4%B1%C3%A7)
- [Bakiye ve Sipariş İşlemleri](#bakiye-ve-sipari%C5%9F-i%CC%87%C5%9Flemleri)
- [Dinamik Shopier Ürün Ödeme Akışı](#dinamik-shopier-%C3%BCr%C3%BCn-%C3%B6deme-ak%C4%B1%C5%9F%C4%B1)
- [Webhook ve Ödeme Doğrulama](#webhook-ve-%C3%B6deme-do%C4%9Frulama)
- [Mevcut E-Ticaret Projelerine Entegrasyon](#mevcut-e-ticaret-projelerine-entegrasyon)
- [CLI Kullanımı](#cli-kullan%C4%B1m%C4%B1)
- [Güvenlik](#g%C3%BCvenlik)
- [Ücretli Kurulum ve Entegrasyon Desteği](#%C3%BCcretli-kurulum-ve-entegrasyon-deste%C4%9Fi)

---

Gereksinimler
-------------

[](#gereksinimler)

- PHP **8.1** veya üzeri
- `ext-json`
- Shopier API erişimi için geçerli bir Personal Access Token (PAT)
- Signature doğrulaması kullanacaksanız webhook secret

---

Kurulum
-------

[](#kurulum)

```
composer require mebularts/shopier
```

Ardından Composer autoloader’ını projenize dahil edin:

```
