sog / enom-bundle
此包已被废弃且不再维护。未建议替代包。
enom 包
dev-master
2012-08-03 09:32 UTC
Requires
- php: >=5.3.2
- ext-curl: *
- symfony/framework-bundle: 2.*
This package is not auto-updated.
Last update: 2020-01-24 14:45:54 UTC
README
Symfony2 为 Enom API 提供的包。此包将 Enom API 封装在 Symfony2 包中。
许可证
SOGEnomBundle 采用 MIT 许可证,详情请参阅 Resources/meta/LICENSE
文件。
支持的 Enom API 命令
(有关更多详细信息,请参阅 API 命令目录)
- GetAccountInfo
- GetTLDList
- GetServiceContact
- GetOrderList
- Check (域名注册)
- GetConfirmationSettings
- 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');