naowas/bootstrapper
Composer 安装命令:
composer require naowas/bootstrapper
包简介
Twitter Bootstrap markup generator
关键字:
README 文档
README
Current supported Bootstrap version: 3.2.0
Bootstrapper is a set of classes that allow you to quickly create Twitter Bootstrap 3 style markup.
Installation
Add the following to your composer.json file :
"require": { "patricktalmadge/bootstrapper": "~5", },
or execute
composer require patricktalmadge/bootstrapper
Then register Bootstrapper's service provider with Laravel:
'Bootstrapper\BootstrapperServiceProvider',
If you are using Laravel 5, then you should instead use the Laravel 5 service provider.
'Bootstrapper\BootstrapperL5ServiceProvider',
You can then (if you want to) add the following aliases to your aliases
array in your config/app.php file.
'Accordion' => 'Bootstrapper\Facades\Accordion', 'Alert' => 'Bootstrapper\Facades\Alert', 'Badge' => 'Bootstrapper\Facades\Badge', 'Breadcrumb' => 'Bootstrapper\Facades\Breadcrumb', 'Button' => 'Bootstrapper\Facades\Button', 'ButtonGroup' => 'Bootstrapper\Facades\ButtonGroup', 'Carousel' => 'Bootstrapper\Facades\Carousel', 'ControlGroup' => 'Bootstrapper\Facades\ControlGroup', 'DropdownButton' => 'Bootstrapper\Facades\DropdownButton', 'Form' => 'Bootstrapper\Facades\Form', 'Helpers' => 'Bootstrapper\Facades\Helpers', 'Icon' => 'Bootstrapper\Facades\Icon', 'InputGroup' => 'Bootstrapper\Facades\InputGroup', 'Image' => 'Bootstrapper\Facades\Image', 'Label' => 'Bootstrapper\Facades\Label', 'MediaObject' => 'Bootstrapper\Facades\MediaObject', 'Modal' => 'Bootstrapper\Facades\Modal', 'Navbar' => 'Bootstrapper\Facades\Navbar', 'Navigation' => 'Bootstrapper\Facades\Navigation', 'Panel' => 'Bootstrapper\Facades\Panel', 'ProgressBar' => 'Bootstrapper\Facades\ProgressBar', 'Tabbable' => 'Bootstrapper\Facades\Tabbable', 'Table' => 'Bootstrapper\Facades\Table', 'Thumbnail' => 'Bootstrapper\Facades\Thumbnail',
Including Bootstrap
Include the Bootstrap files just like any other css and js files! Download Bootstrap and JQuery from the Bootstrap site, place them in your public folder and then include them like so:
{{ HTML::style('path/to/bootstrap.css') }}
{{ HTML::script('path/to/jquery.js') }}
{{ HTML::script('path/to/bootstrap.js') }}
Feel free to use a CDN, but bear in mind that you may get unexpected functionality if the version you use isn't the version Bootstrapper currently supports (but open an issue to let us know!).
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"> <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
If you want to get the latest Bootstrap that Bootstrapper supports, then use the helper function:
Helpers::css()
Helpers::js()
If you want to stick at a certain version then use
artisan config:publish patricktalmadge/bootstrapper
And update your config file in app/config/packages.
We also have Twitter Bootstrap as a dependency, so you can grab the files from your vendor directory.
Documentation
Contributing
Contributing is easy! Just fork the repo, make your changes then send a pull request on GitHub. If your PR is languishing in the queue and nothing seems to be happening, then send Patrick an email or a tweet.
naowas/bootstrapper 适用场景与选型建议
naowas/bootstrapper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 33 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 05 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「bootstrap」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 naowas/bootstrapper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 naowas/bootstrapper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 naowas/bootstrapper 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
Selectize Theme for Bootstrap 4
Alfabank REST API integration
Cross browser time implementation using CSS and JQuery. Compatible with Twitter Bootstrap
The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap. Core modules available to add an integrated SQLite database with web admin, user system, and more.
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-26