sog/enom-bundle

此包已被废弃且不再维护。未建议替代包。

enom 包

安装: 21

依赖: 0

建议者: 0

安全: 0

星标: 2

关注者: 2

分支: 3

公开问题: 1

类型:symfony-bundle

dev-master 2012-08-03 09:32 UTC

This package is not auto-updated.

Last update: 2020-01-24 14:45:54 UTC


README

Symfony2 为 Enom API 提供的包。此包将 Enom API 封装在 Symfony2 包中。

Build Status

许可证

SOGEnomBundle 采用 MIT 许可证,详情请参阅 Resources/meta/LICENSE 文件。

支持的 Enom API 命令

(有关更多详细信息,请参阅 API 命令目录)

  1. GetAccountInfo
  2. GetTLDList
  3. GetServiceContact
  4. GetOrderList
  5. Check (域名注册)
  6. GetConfirmationSettings
  7. GetExtAttributes

更多功能即将推出

设置

使用子模块

git submodule add https://github.com/shaneog/SOGEnomBundle.git vendor/bundles/SOG/EnomBundle

使用 vendors 脚本

  [SOGEnomBundle]
      git=https://github.com/shaneog/SOGEnomBundle.git
      target=bundles/SOG/EnomBundle

将 SOG 命名空间添加到自动加载器

<?php
   // app/autoload.php
   $loader->registerNamespaces(array(
    // ...
    'SOG' => __DIR__.'/../vendor/bundles',
  ));

将 SOGEnomBundle 添加到您的应用程序内核

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new SOG\EnomBundle\SOGEnomBundle(),
    );
}

Yml 配置

# app/config/config.yml
sog_enom:
  url: #Enom Reseller URL
  username: #Enom Account login ID
  password: #Enom Account password

使用方法

使用服务

<?php
    $enom = $this->get('Enom');