Skip to content

Zulficore/zapi-php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZAPI PHP SDK

ZAPI servislerine erişim için geliştirilmiş kapsamlı PHP SDK'sı.

🚀 Özellikler

  • 248 metod ile tüm API endpoint'lerine erişim
  • 33 endpoint sınıfı
  • Tam tip güvenliği ve hata yönetimi
  • Orijinal API ile %100 uyumlu

📦 Kurulum

composer require zapi/php-sdk

🔧 Temel Kullanım

<?php
require_once 'vendor/autoload.php';

use ZAPI\ZAPI;

$zapi = new ZAPI('your-api-key', 'your-app-id', 'https://api.zapi.com');

// Kullanıcı kaydı
$register = $zapi->auth->register([
    'email' => 'user@example.com',
    'password' => 'password123',
    'firstName' => 'John',
    'lastName' => 'Doe',
    'appId' => 'your-app-id'
]);

// Kullanıcı girişi
$login = $zapi->auth->login('user@example.com', null, 'password123', [
    'appId' => 'your-app-id'
]);

📖 Dökümantasyon

🛠️ Hata Yönetimi

use ZAPI\Exceptions\ZAPIException;
use ZAPI\Exceptions\ValidationException;
use ZAPI\Exceptions\AuthenticationException;

try {
    $result = $zapi->auth->login('user@example.com', null, 'password');
} catch (ValidationException $e) {
    echo "Geçersiz veri: " . $e->getMessage();
} catch (AuthenticationException $e) {
    echo "Kimlik doğrulama hatası: " . $e->getMessage();
} catch (ZAPIException $e) {
    echo "API hatası: " . $e->getMessage();
}

📞 Destek

📄 Lisans

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages