承接 justim/neostrada-api-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

justim/neostrada-api-client

最新稳定版本:0.1.0

Composer 安装命令:

composer require justim/neostrada-api-client

包简介

API client for DNS/hosting provider Neostrada

README 文档

README

API client for DNS/hosting provider Neostrada

Requirements

  • PHP >= 5.4

Installation

  • Add justim/neostrada-api-client to your composer.json
  • composer install justim/neostrada-api-client

Usage

$neostrada = new Neostrada($apiKey, $secret);

$domain = $neostrada->domain('example.com');

// set A-record for www to 127.0.0.1
$domain->a('www', '127.0.0.1');

// you can do the same for CNAME-records
$domain->cname('autodiscover', 'autodiscover.outlook.com');

// alternatively you can get an instance of a record and make your changes there
$a = $domain->a('www');
$a->content = '10.0.0.2';
$a->ttl = 1800;

// making changes to current records doesn't automatically save changes
$domain->save();

$mxRecords = $domain->mx(); // lists all MX-records

foreach ($mxRecords as $mx)
{
	// change the content of the record
	$mx->content = 'mail.google.com';

	// mark the records as deleted
	$mx->setDeleted();
}

$mxRecords->save();

// adding records can be done by a new record and adding it
$a = $domain->create('a');
$a->name = 'mail';
$a->content = '127.0.0.1';
$domain->add($a); // adding a record saves it immediately

// fetching the auth code
$authCode = $domain->authCode();

List of possible API calls

  • getnameserver
  • getdns
  • dns
  • adddns
  • gettoken
  • extensions
  • whois
  • holder
  • deleteholder
  • getholders
  • register
  • nameserver

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-01-30