venture-oak-labs/favicon-generator-bundle
Composer 安装命令:
composer require venture-oak-labs/favicon-generator-bundle
包简介
Integrate generation of a multiplatform favicon with RealFaviconGenerator into your Symfony application.
README 文档
README
Integrate generation of a multiplatform favicon with RealFaviconGenerator into your Symfony application.
Installation
Get the bundle using composer
Add RealFaviconGeneratorBundle by running this command from the terminal at the root of your Symfony project:
composer require venture-oak-labs/favicon-generator-bundle
Enable the bundle
To start using the bundle, register the bundle in your application's kernel class:
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new VentureOakLabs\FaviconGeneratorBundle\VentureOakLabsFaviconGeneratorBundle(), // ... ); }
Configure bundle
# app/config/config.yml venture_oak_labs_favicon_generator: api_key: #required
How to use
// The bundle provides a service to generate the favicons package based on a set of options. $generator = $this->container->get('venture_oak_labs.favicon_generator.generator'); // Options $options = array( 'general' => array( 'src' => # Required ( URL For image or image content encoded in Base64), 'icons_path' => # Defaults to 'root' ), 'design' => array( 'desktop_browser', # By default provides Design for the classic desktop browsers. Configure the other as you like! 'ios', 'windows', 'firefox_app', 'android_chrome', 'coast', 'yandex_browser' ), 'settings' => array( 'compression', 'scaling_algorithm', 'error_on_image_too_small' ) ); $response = $generator->generate($options) // The generated files have an available limit time. You can download and unpack them. $response->downloadAndUnpack($outputDirectory, $directoryName) # Directory Name defaults to 'favicon_package'
Further reading about the available options: http://realfavicongenerator.net/api/non_interactive_api#.VgQ5Frw2tZ4
This bundle is still in beta version!
venture-oak-labs/favicon-generator-bundle 适用场景与选型建议
venture-oak-labs/favicon-generator-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 70 次下载、GitHub Stars 达 8, 最近一次更新时间为 2015 年 09 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「bundle」 「RealFaviconGenerator」 「Favicon Generator」 「Multiplataform favicon」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 venture-oak-labs/favicon-generator-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 venture-oak-labs/favicon-generator-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 venture-oak-labs/favicon-generator-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
2lenet/EasyAdminPlusBundle
The bundle for easy using json-rpc api on your project
Generate realfavicon from your Statamic control panel
Provide a way to secure accesses to all routes of an symfony application.
DMS Meetup API Bundle, enables Meetup API clients in services
Bundle Symfony DaplosBundle
统计信息
- 总下载量: 70
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-24