abdualiym/yii2-slider
Composer 安装命令:
composer require abdualiym/yii2-slider
包简介
Yii2 slider extension
README 文档
README
The extension allows manage html content block.
Installation
- Install with composer:
composer require abdualiym/yii2-slider "^1.0"
- After composer install run console command for create tables:
php yii migrate/up --migrationPath=@vendor/abdualiym/yii2-slider/migrations
- Setup in common config storage and language configurations.
language indexes related with database columns.
Admin panel tabs render by array values order.
Begin id param value from 0.
'modules' => [ 'slider' => [ // don`t change module key 'class' => '@abdualiym\slider\Module', 'storageRoot' => $params['staticPath'], 'storageHost' => $params['staticHostInfo'], 'thumbs' => [ // 'sm' and 'md' keys are reserved 'admin' => ['width' => 128, 'height' => 128], 'thumb' => ['width' => 320, 'height' => 320], ], 'languages' => [ 'ru' => [ 'id' => 0, 'name' => 'Русский', ], 'uz' => [ 'id' => 1, 'name' => 'O`zbek tili', ], ], ], ]
- In admin panel add belove links for manage pages, article categories, articles and menu:
/slider/categories/index /slider/slides/index?slug=your_category_slug_name /slider/tags/index
For using SlidesController actions you must manual specify their category slug in route.
###Examples
Extension registers next language arrays to Yii::$app->params[] for use in views:
\Yii::$app->params['cms']['languageIds'][$prefix] = $language['id']; [ 'en' => 2, 'ru' => 1, ... ] \Yii::$app->params['cms']['languages'][$prefix] = $language['name']; [ 'en' => 'English', ... ] \Yii::$app->params['cms']['languages2'][$language['id']] = $language['name']; [ 2 => 'English', ... ]
###Frontend widgets integration
get all slides by category slug
abdualiym\slider\entities\Slides::getBySlug($slug)
get all slides count by category slug
abdualiym\slider\entities\Slides::getBySlug($slug, true)
get all tags
abdualiym\slider\entities\Tags::getAll()
get all tags count
abdualiym\slider\entities\Tags::getAll(true)
###Examples for use in frontend see yii2-language extension
TODO
- Copy from extension root directory example widgets for frontend integration
abdualiym/yii2-slider 适用场景与选型建议
abdualiym/yii2-slider 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 212 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 03 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「images」 「slider」 「carousel」 「advanced」 「yii2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 abdualiym/yii2-slider 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 abdualiym/yii2-slider 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 abdualiym/yii2-slider 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Display a FlexSlider on pages of your website
A Laravel Nova field for distribute your images as array of object.
Pexels API Client for www.pexels.com
Slick slider element Silverstripe
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
统计信息
- 总下载量: 212
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-03-01