Repository: appstract/laravel-bootstrap-components Branch: master Commit: b0dfcaab8b53 Files: 28 Total size: 14.5 KB Directory structure: gitextract_3r_yz7i8/ ├── .editorconfig ├── .gitattributes ├── .gitignore ├── .styleci.yml ├── .travis.yml ├── LICENSE.md ├── README.md ├── composer.json ├── phpunit.xml.dist ├── resources/ │ └── views/ │ ├── alert.blade.php │ ├── badge.blade.php │ ├── breadcrumb.blade.php │ ├── button-group.blade.php │ ├── card.blade.php │ ├── carousel.blade.php │ ├── figure.blade.php │ ├── input-group.blade.php │ ├── jumbotron.blade.php │ ├── list-group.blade.php │ ├── modal.blade.php │ ├── pagination.blade.php │ ├── progress.blade.php │ ├── render/ │ │ └── pagination.blade.php │ └── table.blade.php ├── src/ │ ├── BootstrapComponentsClass.php │ ├── BootstrapComponentsFacade.php │ └── BootstrapComponentsServiceProvider.php └── tests/ └── ExampleTest.php ================================================ FILE CONTENTS ================================================ ================================================ FILE: .editorconfig ================================================ ; This file is for unifying the coding style for different editors and IDEs. ; More information at http://editorconfig.org root = true [*] charset = utf-8 indent_size = 4 indent_style = space end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false ================================================ FILE: .gitattributes ================================================ # Path-based git attributes # https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html # Ignore all test and documentation with "export-ignore". /.gitattributes export-ignore /.gitignore export-ignore /.travis.yml export-ignore /phpunit.xml.dist export-ignore /tests export-ignore ================================================ FILE: .gitignore ================================================ # Crap *.log .sass-cache .Spotlight-V100 .Trashes .DS_Store .DS_Store? ehthumbs.db Thumbs.db # IDE *.sublime-* *.idea .idea # Project build composer.lock docs vendor ================================================ FILE: .styleci.yml ================================================ preset: laravel disabled: - single_class_element_per_statement ================================================ FILE: .travis.yml ================================================ language: php php: - 7.2 - 7.3 env: - LARAVEL_VERSION=5.7.* - LARAVEL_VERSION=5.8.* - LARAVEL_VERSION=^6.0 - LARAVEL_VERSION=^7.0 before_script: - travis_retry composer self-update - composer require laravel/framework:${LARAVEL_VERSION} - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source script: - php vendor/bin/phpunit --coverage-text ================================================ FILE: LICENSE.md ================================================ # The MIT License (MIT) Copyright (c) Appstract > Permission is hereby granted, free of charge, to any person obtaining a copy > of this software and associated documentation files (the "Software"), to deal > in the Software without restriction, including without limitation the rights > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell > copies of the Software, and to permit persons to whom the Software is > furnished to do so, subject to the following conditions: > > The above copyright notice and this permission notice shall be included in > all copies or substantial portions of the Software. > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN > THE SOFTWARE. ================================================ FILE: README.md ================================================ # Laravel Bootstrap Components [![Latest Version on Packagist](https://img.shields.io/packagist/v/appstract/laravel-bootstrap-components.svg?style=flat-square)](https://packagist.org/packages/appstract/laravel-bootstrap-components) [![Total Downloads](https://img.shields.io/packagist/dt/appstract/laravel-bootstrap-components.svg?style=flat-square)](https://packagist.org/packages/appstract/laravel-bootstrap-components) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md) Easily use Bootstrap 4 components as Laravel components. You can help with adding components by creating a pull request. ## Installation You can install the package via composer: ```bash composer require appstract/laravel-bootstrap-components ``` ## Usage Examples: ```blade @component('bootstrap::modal') This is the content of the modal @endcomponent @component('bootstrap::progress', ['value' => 75]) // Extra bars @endcomponent ``` More components and documentation [in the wiki](https://github.com/appstract/laravel-bootstrap-components/wiki). ## Contributing Contributions are very welcome! If you want to add a component, please keep the following in mind when creating a pull request: - Have a look at the existing components for examples. - Customization of the component (like custom classes and options for the component). - Provide some docs in the [wiki](https://github.com/appstract/laravel-bootstrap-components/wiki). [Thanks to all the contributors](https://github.com/appstract/laravel-bootstrap-components/graphs/contributors) ## About Appstract Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on [Medium](https://medium.com/appstract). You can [follow us on Twitter](https://twitter.com/teamappstract), [buy us a beer](https://www.paypal.me/teamappstract/10) or [support us on Patreon](https://www.patreon.com/appstract). ## License The MIT License (MIT). Please see [License File](LICENSE.md) for more information. ================================================ FILE: composer.json ================================================ { "name": "appstract/laravel-bootstrap-components", "description": "Bootstrap components for Laravel", "keywords": [ "appstract", "laravel-bootstrap-components" ], "homepage": "https://github.com/appstract/laravel-bootstrap-components", "license": "MIT", "authors": [ { "name": "Gijs Jorissen", "email": "mail@appstract.nl", "homepage": "https://appstract.nl", "role": "Developer" }, { "name": "Olav van Schie", "email": "mail@appstract.nl", "homepage": "https://appstract.nl", "role": "Developer" }, { "name": "Bob Krijnen", "email": "mail@appstract.nl", "homepage": "https://appstract.nl", "role": "Developer" }, { "name": "Teun de Kleijne", "email": "mail@appstract.nl", "homepage": "https://appstract.nl", "role": "Developer" } ], "require": { "php": "^7.1.3", "laravel/framework": ">=5.7", "appstract/laravel-blade-directives": "^1.8" }, "require-dev": { "phpunit/phpunit": "^5.7" }, "autoload": { "psr-4": { "Appstract\\BootstrapComponents\\": "src" } }, "autoload-dev": { "psr-4": { "Appstract\\BootstrapComponents\\Test\\": "tests" } }, "scripts": { "test": "vendor/bin/phpunit" }, "config": { "sort-packages": true }, "extra": { "laravel": { "providers": [ "Appstract\\BootstrapComponents\\BootstrapComponentsServiceProvider" ] } } } ================================================ FILE: phpunit.xml.dist ================================================ tests src/ ================================================ FILE: resources/views/alert.blade.php ================================================ ================================================ FILE: resources/views/badge.blade.php ================================================ {{ $slot }} ================================================ FILE: resources/views/breadcrumb.blade.php ================================================ ================================================ FILE: resources/views/button-group.blade.php ================================================
{{ $slot }}
================================================ FILE: resources/views/card.blade.php ================================================
@isset($header)
{!! $header !!}
@endisset {{ $slot }} @isset($footer) @endisset
================================================ FILE: resources/views/carousel.blade.php ================================================ ================================================ FILE: resources/views/figure.blade.php ================================================
{{ $slot }} @isset($caption)
{!! $caption !!}
@endisset
================================================ FILE: resources/views/input-group.blade.php ================================================
{{ $slot }}
================================================ FILE: resources/views/jumbotron.blade.php ================================================
@istrue($fullwidth, '
') @isset($heading)

{!! $heading !!}

@endisset {{ $slot }} @istrue($fullwidth, '
')
================================================ FILE: resources/views/list-group.blade.php ================================================ ================================================ FILE: resources/views/modal.blade.php ================================================ ================================================ FILE: resources/views/pagination.blade.php ================================================ ================================================ FILE: resources/views/progress.blade.php ================================================
{{ $slot }}
================================================ FILE: resources/views/render/pagination.blade.php ================================================ ================================================ FILE: resources/views/table.blade.php ================================================ {{ $slot }}
================================================ FILE: src/BootstrapComponentsClass.php ================================================ count(), (int) $perPage, (int) $page)) ->withPath($path); return $paginator->render('bootstrap::render.pagination', $componentOptions); } } ================================================ FILE: src/BootstrapComponentsFacade.php ================================================ loadViewsFrom(__DIR__.'/../resources/views', 'bootstrap'); if ($this->app->runningInConsole()) { $this->publishes([ __DIR__.'/../resources/views' => resource_path('views/vendor/bootstrap'), ], 'views'); } } /** * Register the application services. */ public function register() { $this->app->register(BladeDirectivesServiceProvider::class); } } ================================================ FILE: tests/ExampleTest.php ================================================ assertTrue(true); } }