ap/cpanel-bundle
Composer 安装命令:
composer require ap/cpanel-bundle
包简介
Symfony ApCpanelBundle
README 文档
README
Easy to use Cpanel API bundle
Step 1: Download ApCpanelBundle using composer
Add ApCpanelBundle by running the command:
$ php composer.phar require ap/cpanel-bundle 'dev-master'
Step 2: Register the ApCpanelBundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Ap\CpanelBundle(), ); }
Step 3: Configure the ApCpanelBundle
Edit your config.yml:
ap_cpanel: domain: yourdomain.com whmusername: yourusername whmhash: yourhashahahsshshshshdfasdfkjasadfasdf....
Example:
<?php public function someAction() { //.. $cpanel = $this->container->get('ap_cpanel.api'); $accountsJson = $cpanel->listaccts()->exec(); $result = json_decode($accountsJson, TRUE); //.. }
统计信息
- 总下载量: 65
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-06-30