Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 1d084c0

Browse files
authored
Structure updates (#74)
Tests support for Laravel 10.x Drop support for Laravel 8.x Add support for Php 8.2 Convert test suite to Pest Adds dependabot GitHub actions Makes extra-attributes prop on components more flexible in allowing for arrays and collections of attributes to be passed in as well.
1 parent f5e4ec1 commit 1d084c0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+4191
-3413
lines changed

.github/dependabot.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Please see the documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
labels:
12+
- "dependencies"
13+
14+
- package-ecosystem: "composer"
15+
directory: "/"
16+
schedule:
17+
interval: "weekly"
18+
commit-message:
19+
prefix: "Composer"
20+
labels:
21+
- "dependencies"
22+
- "composer"
23+
24+
- package-ecosystem: "npm"
25+
directory: "/"
26+
schedule:
27+
interval: "weekly"
28+
commit-message:
29+
prefix: "NPM"
30+
labels:
31+
- "dependencies"
32+
- "npm"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: dependabot-auto-merge
2+
on: pull_request_target
3+
4+
permissions:
5+
pull-requests: write
6+
contents: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'dependabot[bot]' }}
12+
steps:
13+
14+
- name: Dependabot metadata
15+
id: metadata
16+
uses: dependabot/[email protected]
17+
with:
18+
github-token: "${{ secrets.GITHUB_TOKEN }}"
19+
20+
- name: Auto-merge Dependabot PRs for semver-minor updates
21+
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' }}
22+
run: gh pr merge --auto --merge "$PR_URL"
23+
env:
24+
PR_URL: ${{ github.event.pull_request.html_url }}
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Auto-merge Dependabot PRs for semver-patch updates
28+
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
29+
run: gh pr merge --auto --merge "$PR_URL"
30+
env:
31+
PR_URL: ${{ github.event.pull_request.html_url }}
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fetch-depth: 2
1818

1919
- name: Laravel pint
20-
uses: aglipanci/laravel-pint-action@0.1.0
20+
uses: aglipanci/laravel-pint-action@2.1.0
2121
with:
2222
preset: laravel
2323

.github/workflows/run-tests.yml

+36-30
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,43 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [8.1, 8.0]
18-
laravel: [9.*, 8.*]
19-
stability: [prefer-lowest, prefer-stable]
17+
php: [8.2, 8.1, 8.0]
18+
laravel: [10.*, 9.*]
19+
dependency-version: [prefer-lowest, prefer-stable]
2020
include:
21-
- laravel: 9.*
22-
testbench: 7.*
23-
- laravel: 8.*
24-
testbench: 6.23
21+
- laravel: 10.*
22+
testbench: 8.*
23+
- laravel: 9.*
24+
testbench: 7.*
25+
exclude:
26+
- php: 8.0
27+
laravel: 10.*
2528

26-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
29+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2730

2831
steps:
29-
- name: Checkout code
30-
uses: actions/checkout@v2
31-
32-
- name: Setup PHP
33-
uses: shivammathur/setup-php@v2
34-
with:
35-
php-version: ${{ matrix.php }}
36-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
37-
coverage: none
38-
39-
- name: Setup problem matchers
40-
run: |
41-
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
42-
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
43-
44-
- name: Install dependencies
45-
run: |
46-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
47-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
48-
49-
- name: Execute tests
50-
run: vendor/bin/phpunit
32+
- name: Checkout code
33+
uses: actions/checkout@v3
34+
35+
- name: Setup PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: ${{ matrix.php }}
39+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
40+
coverage: none
41+
42+
- name: Setup problem matchers
43+
run: |
44+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
45+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
46+
47+
- name: Install dependencies
48+
run: |
49+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
50+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
51+
52+
- name: List Installed Dependencies
53+
run: composer show -D
54+
55+
- name: Execute tests
56+
run: vendor/bin/pest -p

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# Laravel Form Components
1+
# Form Components for Laravel
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/rawilk/laravel-form-components.svg?style=flat-square)](https://packagist.org/packages/rawilk/laravel-form-components)
44
![Tests](https://github.com/rawilk/laravel-form-components/workflows/Tests/badge.svg?style=flat-square)
55
[![Total Downloads](https://img.shields.io/packagist/dt/rawilk/laravel-form-components.svg?style=flat-square)](https://packagist.org/packages/rawilk/laravel-form-components)
6+
[![PHP from Packagist](https://img.shields.io/packagist/php-v/rawilk/laravel-form-components?style=flat-square)](https://packagist.org/packages/rawilk/laravel-form-components)
7+
[![License](https://img.shields.io/github/license/rawilk/laravel-form-components?style=flat-square)](https://github.com/rawilk/laravel-form-components/blob/main/LICENSE.md)
68

7-
![social image](https://banners.beyondco.de/Laravel%20Form%20Components.png?theme=light&packageManager=composer+require&packageName=rawilk%2Flaravel-form-components&pattern=diagonalStripes&style=style_1&description=Form+components+built+for+tailwind+%26+Livewire&md=1&showWatermark=0&fontSize=100px&images=code)
9+
![social image](https://banners.beyondco.de/Form%20Components%20for%20Laravel.png?theme=light&packageManager=composer+require&packageName=rawilk%2Flaravel-form-components&pattern=diagonalStripes&style=style_1&description=Form+components+built+for+tailwind+%26+Livewire&md=1&showWatermark=0&fontSize=100px&images=code)
810

9-
Laravel form components provides common form components to help build forms faster using Tailwind CSS. Supports validation, old form values, and wire:model.
11+
Form Components for Laravel provides common form components to help build forms faster using Tailwind CSS. Supports validation, old form values, and wire:model.
1012

1113
## Installation
1214

@@ -70,6 +72,10 @@ try one of these alternatives if your needs differ:
7072
- [Blade UI Kit](https://blade-ui-kit.com/)
7173
- [Laravel Form Components](https://github.com/protonemedia/laravel-form-components)
7274

75+
## Disclaimer
76+
77+
This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel, TailwindCSS, Laravel Livewire, or any of its affiliates.
78+
7379
## License
7480

7581
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

composer.json

+20-11
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,20 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^8.0|^8.1",
25-
"illuminate/filesystem": "^8.70|^9.0|^10.0",
26-
"illuminate/support": "^8.70|^9.0|^10.0",
27-
"illuminate/view": "^8.70|^9.0|^10.0"
24+
"php": "^8.0|^8.1|^8.2",
25+
"illuminate/filesystem": "^9.0|^10.0",
26+
"illuminate/support": "^9.0|^10.0",
27+
"illuminate/view": "^9.0|^10.0"
2828
},
2929
"require-dev": {
30-
"blade-ui-kit/blade-heroicons": "^1.0|^2.0",
31-
"laravel/pint": "^1.2",
30+
"blade-ui-kit/blade-heroicons": "^2.0",
31+
"laravel/pint": "^1.5",
3232
"livewire/livewire": "^2.8",
33-
"orchestra/testbench": "^6.23|^7.0",
34-
"phpunit/phpunit": "^9.5",
33+
"orchestra/testbench": "^7.0|^8.0",
34+
"pestphp/pest": "^1.22",
35+
"pestphp/pest-plugin-laravel": "^1.4",
36+
"pestphp/pest-plugin-parallel": "^1.2",
37+
"sinnbeck/laravel-dom-assertions": "^1.3",
3538
"spatie/laravel-ray": "^1.25"
3639
},
3740
"suggest": {
@@ -49,11 +52,17 @@
4952
}
5053
},
5154
"scripts": {
52-
"test": "vendor/bin/phpunit",
53-
"format": "vendor/bin/pint"
55+
"post-autoload-dump": [
56+
"@php ./vendor/bin/testbench package:discover --ansi"
57+
],
58+
"test": "vendor/bin/pest -p",
59+
"format": "vendor/bin/pint --dirty"
5460
},
5561
"config": {
56-
"sort-packages": true
62+
"sort-packages": true,
63+
"allow-plugins": {
64+
"pestphp/pest-plugin": true
65+
}
5766
},
5867
"extra": {
5968
"laravel": {

docs/introduction.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sort: 1
55

66
## Introduction
77

8-
Laravel form components provides common form components to help build forms faster using Tailwind CSS. Supports validation, old form values, and wire:model.
8+
Form Components for Laravel provides common form components to help build forms faster using Tailwind CSS. Supports validation, old form values, and wire:model.
99

1010
## Alternatives
1111

@@ -14,3 +14,7 @@ try one of these alternatives if your needs differ:
1414

1515
- [Blade UI Kit](https://blade-ui-kit.com/)
1616
- [Laravel Form Components](https://github.com/protonemedia/laravel-form-components)
17+
18+
## Disclaimer
19+
20+
This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel, TailwindCSS, Laravel Livewire, or any of its affiliates.

0 commit comments

Comments
 (0)