gertexllc/yii2-bootstrap-detector 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gertexllc/yii2-bootstrap-detector

最新稳定版本:1.0.1-stable

Composer 安装命令:

composer require gertexllc/yii2-bootstrap-detector

包简介

A Yii2 component to detect the used Bootstrap version and return it.

README 文档

README

A Yii2 component to detect the used Bootstrap version and return it.

Installation

You can install this component via Composer by running the following command:

composer require gertexllc/yii2-bootstrap-detector

Usage

To use the Bootstrap detector, simply create a new instance of the BootstrapDetector class and call the detectVersionNumber() or detectMajorVersion() methods:

use gertexllc\yii2bootstrapdetector\BootstrapDetector;

// Detect the full version number
$detector = new BootstrapDetector();
$version = $detector->detectVersionNumber(); // e.g. "4.6.0"

// Detect the major version number only
$detector = new BootstrapDetector();
$majorVersion = $detector->detectMajorVersion(); // e.g. "4"

The detectVersionNumber() method returns the full version number of the detected Bootstrap version, or null if no version is detected. The detectMajorVersion() method returns only the major version number of the detected Bootstrap version, or null if no version is detected.

Requirements

This component requires Yii2 and the Bootstrap asset bundles used by your Yii2 application.

License

This component is released under the MIT License. See the LICENSE file for details.

Author

The BootstrapDetector was developed and brought to you free of charge by GerTex, LLC

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-28