承接 hirohitopg/blade-bootstrap-components 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

hirohitopg/blade-bootstrap-components

最新稳定版本:v1.1.1

Composer 安装命令:

composer require hirohitopg/blade-bootstrap-components

包简介

A set of Blade Components based on Boostrap-4 CSS Framework

README 文档

README

Latest Version on Packagist Build Status Quality Score Total Downloads

A new set of Blade components to rapidly build forms with Bootstrap 5.

Features

  • Components for major Bootstrap components, including forms.
  • Component logic independent from Blade views.
  • Bind a target to a form (or a set of elements) to provide default values.
  • Re-populate forms with old input.
  • Validation errors.
  • Form method spoofing.
  • Components classes and Blade views fully customizable.
  • Support for prefixing the components.

Requirements

  • PHP 7.4 + Laravel 8+

Installation

You can install the package via composer:

composer require hostmoz/blade-bootstrap-components

Publishing Assets

For some components to work correctly(ex: date-picker) you will need to publish the package assets using the command below:

php artisan vendor:publish --tag=bootstrap-assets --force

Configuration

There is no configuration needed unless you want to customize the Blade views and components.

Quick example

<x-bootstrap::form.form>
    <div class="row">
        <div class="col-12 mb-3">
            <x-bootstrap::form.input name="name" label="Your Name" />
        </div>
        <div class="col-12 mb-3">
            <x-bootstrap::form.select name="country_code" :options="$countries" label="Select a Country"/>
        </div>
        <div class="col-12 mb-3">
            <x-bootstrap::form.date-picker name="teste" label="Pick a Date"/>
        </div>

    </div>
    <div class="row">
        <div class="col-6">
            <!-- Inline radio inputs -->
            <x-bootstrap::form.group name="newsletter_frequency" label="Newsletter frequency" inline>
                <x-bootstrap::form.radio name="newsletter_frequency" value="daily" label="Daily" />
                <x-bootstrap::form.radio name="newsletter_frequency" value="weekly" label="Weekly" />
            </x-bootstrap::form.group>
        </div>
        <div class="col-6">
            <x-bootstrap::form.group>
                <x-bootstrap::form.checkbox name="subscribe_to_newsletter" label="Subscribe to newsletter" />
                <x-bootstrap::form.checkbox name="agree_terms" label="Agree with terms" />
            </x-bootstrap::form.group>
        </div>
    </div>
</x-bootstrap::form.form>

Usage

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email elisio.leonardo@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 5
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固