Code Monkey home page Code Monkey logo

php-dna's Introduction

Kurulum ve Entegrasyon rehberi

Minimum Gereksinimler

  • PHP7.4 veya daha üstü (Önerilen 8.1)
  • PHP SOAPClient eklentisi aktif olmalıdır.

Kullanım

Dosyaları indirin examples klasörünün içindeki örnekleri inceleyin.

require_once __DIR__.'/src/DomainNameAPI_PHPLibrary.php';

$dna = new \DomainNameApi\DomainNameAPI_PHPLibrary('username','password');

Domain listesi için

$list = $dna->GetList(['OrderColumn'=>'Id', 'OrderDirection'=>'ASC', 'PageNumber'=>0,'PageSize'=>1000]);

TLD Listesini almak için

$list = $dna->GetTldList(100);

Domain uygunluğu kontrolü için

$check = $dna->CheckAvailability('domainadi.com',1,'create');

Domain detayları için

$detail = $dna->GetDetails('domainadi.com');

Nameserver Düzenlemesi için

$ns = $dna->SetNameservers(ModifyNameServer('domain.com',['ns1'=>'ns1.domain.com','ns2'=>'ns2.domain.com']);

Domain Kilidi aktifleştirme için

$lock = $dna->EnableTheftProtectionLock('domainadi.com');

Domain Kilidi kaldırma için

$lock = $dna->DisableTheftProtectionLock('domainadi.com');

Domaine ChildNS ekleme için

$childns = $dna->AddChildNameServer('domainadi.com','ns1.domainadi.com','1.2.3.4');

Domaine aitContact kaydetmek için

$contact = [
    "FirstName"        => 'Bunyamin',
    "LastName"         => 'Mutlu',
    "Company"          => '',
    "EMail"            => '[email protected]',
    "AddressLine1"     => 'adres 1 adres 1 adres 1 ',
    "AddressLine2"     => 'test test',
    "AddressLine3"     => '',
    "City"             => 'Kocaeli',
    "Country"          => 'TR',
    "Fax"              => '2626060026',
    "FaxCountryCode"   => '90',
    "Phone"            => '5555555555',
    "PhoneCountryCode" => 90,
    "Type"             => 'Contact',
    "ZipCode"          => '41829',
    "State"            => 'GEBZE'
];

$childns = $dna->SaveContacts('domainadi.com','ns1','1.2.3.4');

Domain Contactlarını almak için

$contact = $dna->GetContacts('domainadi.com');

Domain Yenilemek için

$lock=$dna->Renew('domainadi.com',1);

Registry üzerinden sync yapmak için

$lock=$dna->SyncFromRegistry('domainadi.com');

Bakiye sorgulamak için (Parametreler içinde 1=TL, 2=USD yazabilir yada direkt USD TRY TL ibaresi kullanabilirsiniz)

$balance_usd = $dna->GetCurrentBalance(); //Varsayılan USD
$balance_usd = $dna->GetCurrentBalance('USD');
$balance_try = $dna->GetCurrentBalance('TRY');
$balance_usd = $dna->GetCurrentBalance(1); // 1=TRY/TL
$balance_try = $dna->GetCurrentBalance(2); // 2=USD

Reseller bilgilerini almak için

$reseller = $dna->GetResellerDetails();

Domain Kayıt işlemleri için

$contact = [
    "FirstName"        => 'Bunyamin',
    "LastName"         => 'Mutlu',
    "Company"          => '',
    "EMail"            => '[email protected]',
    "AddressLine1"     => 'adres 1 adres 1 adres 1 ',
    "AddressLine2"     => 'test test',
    "AddressLine3"     => '',
    "City"             => 'Kocaeli',
    "Country"          => 'TR',
    "Fax"              => '2626060026',
    "FaxCountryCode"   => '90',
    "Phone"            => '5555555555',
    "PhoneCountryCode" => 90,
    "Type"             => 'Contact',
    "ZipCode"          => '41829',
    "State"            => 'GEBZE'
];

$info = $a->RegisterWithContactInfo(
    'domainadi.com.tr',
    1,
    [
        'Administrative' => $contact,
        'Billing'        => $contact,
        'Technical'      => $contact,
        'Registrant'     => $contact
    ],
    ["tr.atakdomain.com", "eu.atakdomain.com"],true,false,
    [
        'TRABISDOMAINCATEGORY' => 1,
        'TRABISCITIZIENID'     => '1112221111111',
        'TRABISNAMESURNAME'    => 'Bunyamin Mutlu',
        'TRABISCOUNTRYID'      => '215',
        'TRABISCITYID'        => '41'
    ]);

Dönüş ve Hata Kodları ile Açıklamaları

Kod Açıklama Detay
1000 Command completed successfully İşlem başarılı.
1001 Command completed successfully; action pending. İşlem başarılı. Fakat işlem şu an tamamlanmak için kuyruğa alındı.
2003 Required parameter missing Parametre eksik hatası. Örneğin; Kontak bilgisinde telefon girişi yapılmaması.
2105 Object is not eligible for renewal Domain durumu yenilemeye müsait değil, güncelleme işlemlerine kilitlenmiştir. Durum durumu "clientupdateprohibited" olmamalı. Diğer durum durumlarından kaynaklanabilir.
2200 Authentication error Yetki hatası, güvenlik kodu hatalı veya domain başka bir kayıt firmasında bulunuyor.
2302 Object exists Domain adı veya name server bilgisi veritabanında mevcut. Kayıt edilemez.
2303 Object does not exist Domain adı veya name server bilgisi veritabanında mevcut değil. Yeni kayıt oluşturulmalı.
2304 Object status prohibits operation Domain durumu güncellemeye müsait değildir, güncelleme işlemlerine kilitlenmiştir. Durum durumu "clientupdateprohibited" olmamalı. Diğer durum durumlarından kaynaklanabilir.

php-dna's People

Contributors

bakcay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.