synaq/zasa-bundle
Composer 安装命令:
composer require synaq/zasa-bundle
包简介
A Symfony2 wrapper for the Zimbra Soap Admin API (ZASA)
README 文档
README
A Symfony2 wrapper for the Zimbra SOAP Admin API (ZASA). This bundle uses a custom XML builder to post SOAP requests over CURL or using the fopen() wrappers.
This bundle works with Zimbra 7 & 8
This bundle was written to work specifically with our business model, so some functions return non-standard output. However, it should work with many use cases.
Requirements
- PHP 5.3 with curl support
- Symfony 2.7 or greater
Installation
Step 1
Use composer to manage your dependencies and download SynaqZasaBundle:
$ php composer.phar update synaq/zasa-bundle
Step 2
Add the bundles to your AppKernel
// app/AppKernel.php public function registerBundles() { return array( // ... new Synaq\ZasaBundle\SynaqZasaBundle(), new Synaq\CurlBundle\SynaqCurlBundle(), // ... ); }
Step 3
Add the bundle configuration
synaq_zasa: server: your-zimbra-server.com admin_user: your-admin-user admin_pass: your-admin-password use_fopen: true|false auth_token_path: /path/to/optional/existing/auth/token rest_base_url: http://your-zimbra-server-rest-url-without-service-endpoint.some-host.com synaq_curl: cookie_file: false options: { CURLOPT_RETURNTRANSFER: true, CURLOPT_SSL_VERIFYPEER: false, CURLOPT_SSL_VERIFYHOST: false, CURLOPT_SSL_CIPHER_LIST: %curl_cipher_list% }
##Usage You can use the Zimbra Connector by getting the 'synaq_zasa.connector' service
class SomeController extends Controller { public function someAction() { //... $connector = $this->get('synaq_zasa.connector'); //... } }
You can then make requests using the controller
$account = $connector->getAccount('user@domain.com');
Please see the ZimbraConnector class for available classes.
##Development
A Docker image with the full development environment required to develop on this bundle can be built using the included Dockerfile and a ready-made build script:
./scripts/docker/build.sh
This builds the synaq/zimbra-connector-dev image, which has XDebug pre-configured for remote debugging to a local XDebug client.
For an interactive terminal session inside a container based on the image, with the project working directory mounted as /opt/project, run:
./scripts/docker/terminal.sh
synaq/zasa-bundle 适用场景与选型建议
synaq/zasa-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.25k 次下载、GitHub Stars 达 9, 最近一次更新时间为 2013 年 12 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Symfony2」 「api」 「zimbra」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 synaq/zasa-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 synaq/zasa-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 synaq/zasa-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP wrapper library around the Zimbra Soap API
A PSR-7 compatible library for making CRUD API endpoints
Symfony2 Barcode Generator Bundle with Twig function extension
Symfony bundle to connect AWS sns and sqs to create offline queue processing
Integrate the doctrine-translatable extension in Symfony2
Video Editor Bundle
统计信息
- 总下载量: 2.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2013-12-06