定制 mitopp/bootstrap-twig-components-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mitopp/bootstrap-twig-components-bundle

最新稳定版本:v0.3.0

Composer 安装命令:

composer require mitopp/bootstrap-twig-components-bundle

包简介

Useful Twig Components for the Bootstrap framework.

README 文档

README

Warning

This Bundle is experimental and subject to change in a future release.

This bundle allows you to create robust and reusable Twig components, styled by the Bootstrap Framework. This bundle does not deliver Bootstrap CSS/JavaScript itself. This keeps control of the user.

Requirements

  • PHP v8.2.x
  • Symfony v7.3.x
  • Bootstrap v5.3.x

Installation

Run the following command to install:

$ composer require mitopp/bootstrap-twig-components-bundle

If you use Symfony Flex in your application, you are ready. Otherwise, keep reading because you need to perform some manual configuration.

Manual Configuration for Applications Not Using Symfony Flex

In most Symfony applications you don't need to make any of the following changes. These steps are only required for applications that have opted not to use Symfony Flex.

First, register two bundles in your application. Edit the config/bundles.php file and add the following:

return [
    // ...
    Mitopp\BootstrapTwigComponentsBundle\BootstrapTwigComponentsBundle::class => ['all' => true],
    // ...
];

That's all! You are now ready to use TwigComponents in your application.

Components

Contributing

If you want to contribute to the project and make it better, your help is very welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

License

This bundle is licensed under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-17