parentyazilim / api-v2-php
Parent Yazılım v2 PHP Api Client
dev-main
2023-01-29 23:43 UTC
Requires
- php: >=8.1
- ext-curl: *
This package is not auto-updated.
Last update: 2025-07-15 10:56:53 UTC
README
Bulut tabanlı yazılım servislerinin php ile hazırlanmış örnek api kodları
Authorize and get token
<?php use Parent; require_once __DIR__ . '/vendor/autoload.php'; $client = new Client([ "username" => "user", "password" => "pass" ]); // get token and save src/token.ini
- Create a new Customer
$customer = [ 'contact_type_code' => 'person', 'code' => 'CH001', 'email' => 'info@parent.com.tr', 'contact_type' => 'person', 'firstname' => 'John', 'lastname' => 'Doe', 'country' => 'Türkiye', 'state' => 'Ankara', 'city' => 'Çankaya', 'status_code' => 'approved', 'is_login_enabled' => false ]; $customer = new Parent\Customer($client); $customer->create($customer);