Download the PHP package bestyii/yii2-tabler without Composer

On this page you can find all versions of the php package bestyii/yii2-tabler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-tabler

bestyii/yii2-tabler

CI

bestyii/yii2-tabler 是一个面向 Yii2 后台、运营平台和数据管理界面的 Tabler 组件包。 它不是单纯的 CSS 主题封装,而是把 Tabler 的视觉语言、常见后台部件和前端插件整合成可复用的 Yii2 Widget 与 Asset Bundle。 从产品目标上,它不应只是一个“Tabler 版补充包”,而应逐步成为 yiisoft/yii2-bootstrap5 的上位替代:既覆盖 Bootstrap 常用能力,也提供更丰富的后台组件和更优的视觉表达。

产品定位

这个包解决的是 Yii2 后台项目里最常见的三个问题:

  1. 设计系统已经选定 Tabler,但团队不希望在视图里手写大量碎片化 HTML。
  2. 项目需要的不只是按钮、弹窗、导航,还包括图表、地图、富文本、拖拽上传、分段导航、状态指示、时间线、运营型表格等后台高频组件。
  3. 团队希望把前端插件接入、资源发布、组件文档和测试门禁,统一收敛在包级别,而不是散落在每个业务应用里。

因此,bestyii/yii2-tabler 的目标不是替代 Yii2 本身,而是为 Yii2 提供一层偏产品化、偏后台场景的 Tabler 组件基座,并逐步补齐 yii2-bootstrap5 已有的核心能力。

当前交付面

基于当前仓库快照,这个包已经提供:

代表性组件包括:

适合什么项目

适合:

不适合:

和应用的边界

这个包当前聚焦在“组件层”和“资源层”:

也就是说,它更像一个可持续维护的 UI 组件包,而不是一个整站模板。

安装

当前要求:

官方支持策略和兼容承诺见 docs/support-policy.md。

快速开始

1. 渲染一个按钮

2. 渲染一个标准页头

对于高频场景,组件现在提供了更易写的静态 helper,例如 Badge::secondary('Draft')、Button::primary('Save')、Alert::success('Done')、Progress::success(72, label: '72%')。底层的 ::widget([...]) API 仍然保留,适合更完整的配置数组。

如果颜色或类型是在业务代码里动态算出来的,可以进一步使用类型化的 make():

当前已支持语法糖的组件和预设范围如下:

3. 渲染一个后台表格卡片

组件契约

为了让组件在复杂后台页面里可长期维护,这个包现在遵循一套统一内容契约:

详细约定见 docs/component-contracts.md。

资源策略

bestyii/yii2-tabler 采用的是“组件 + 资源包”双层模型:

扩展资源现在按最小边界拆分:

例如:

如果主题切换器是应用级能力,而不是单个 widget 的局部交互,优先在 layout 里注册 TablerThemeAsset;像社交图标这类页面级 class,则只在实际使用该 class 的视图里注册对应资源。

TablerExtrasAsset 仍然保留为兼容聚合包,但新代码应优先注册最小匹配的资源,而不是一次性加载全部 extras。

这让项目可以在保留 Yii2 视图体系的同时,把前端插件接入成本控制在组件包内部。

产品目标

从长期方向看,bestyii/yii2-tabler 应该满足两层目标:

换句话说,yii2-tabler 的定位不是“和 yii2-bootstrap5 做功能切分”,而是“以 Tabler 风格重做并扩展 Yii2 的 Bootstrap 组件层”。

稳定性与兼容原则

详细规则见 docs/support-policy.md。

质量与可维护性

当前包级交付标准包括:

本地常用命令:

说明:

最近一次补强还加入了 Asset Bundle 一致性测试,用于直接检查:

这类测试的目的,是避免“组件渲染测试通过,但前端资源实际上不可发布”的隐性回归。

文档入口

选型结论

从产品方向上,bestyii/yii2-tabler 应该是 yiisoft/yii2-bootstrap5 的超集,而不是平行替代。

当前如果你的项目目标是“用 Tabler 风格统一后台界面,并把 Bootstrap 常用基础能力也收进同一个组件层”,bestyii/yii2-tabler 已经可以作为主包承接。更细的覆盖矩阵与选型参考,见 docs/compare-with-yii2-bootstrap5.md。


All versions of yii2-tabler with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
yiisoft/yii2 Version ~2.0.32
npm-asset/tabler--core Version ^1.4
npm-asset/tabler--icons-webfont Version ^3.0
npm-asset/tabler--icons Version ^3.0
bower-asset/jquery-masonry Version ^4.2
npm-asset/driver.js Version ^1.3
npm-asset/sortablejs Version ~1.15
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bestyii/yii2-tabler contains the following files

Loading the files please wait ...