mattsches / version-eye-bundle
Symfony MattschesVersionEyeBundle
0.5.1
2016-08-16 13:25 UTC
Requires
- php: >=5.5
- digitalkaoz/versioneye-php: ~0.11.0
Requires (Dev)
- doctrine/cache: *
- symfony/framework-bundle: >=2.7
This package is not auto-updated.
Last update: 2024-09-28 14:17:49 UTC
README
安装
建议的安装方法是通过 composer
php composer.phar require mattsches/version-eye-bundle:dev-master
将bundle添加到你的app/AppKernel.php中的开发环境部分
if (in_array($this->getEnvironment(), array('dev', 'test'))) { ... $bundles[] = new Mattsches\VersionEyeBundle\MattschesVersionEyeBundle(); }
配置
在你的 app/config/config_dev.yml 中添加以下内容(你只希望在开发环境中使用)
mattsches_version_eye: api_key: YOUR_VERSION_EYE_API_KEY_HERE # These two are optional base_url: "https://www.versioneye.com/api/v2" filesystem_cache_path: "%kernel.cache_dir%/versioneye"
注意事项
虽然此插件会缓存所有对VersionEye服务器的请求,但这可能会稍微降低你的项目速度(仅限开发环境)。在我的项目中,当没有缓存时,平均响应时间慢了高达400毫秒。
要求
此bundle需要Symfony 2.7或更高版本。抱歉。