Skip to content

Commit 389a9b8

Browse files
author
farhadzand
committed
Refactor validation rules to implement ValidationRule interface, update tests for consistency, and enhance README with detailed package description and features.
1 parent 8909445 commit 389a9b8

Some content is hidden

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

42 files changed

+1110
-1066
lines changed

.gitattributes

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
# Path-based git attributes
22
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
33

4-
# Ignore all test and documentation with "export-ignore".
5-
/.github export-ignore
4+
# This way, the files would be available in the repository but it would not be downloaded when the package is required by another project.
5+
66
/.gitattributes export-ignore
77
/.gitignore export-ignore
8-
/.travis.yml export-ignore
9-
/phpunit.xml.dist export-ignore
10-
/.scrutinizer.yml export-ignore
11-
/.styleci.yml export-ignore
12-
/art export-ignore
13-
/docs export-ignore
14-
/tests export-ignore
8+
/.github export-ignore
9+
/phpunit.xml export-ignore
10+
/phpstan.neon export-ignore
11+
/pint.json export-ignore
1512
/.editorconfig export-ignore
16-
/.php_cs.dist.php export-ignore
17-
/UPGRADING.md export-ignore
13+
/tests export-ignore

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: composer
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Coding Standards
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
env:
12+
COMPOSER_PROCESS_TIMEOUT: 0
13+
COMPOSER_NO_INTERACTION: 1
14+
COMPOSER_NO_AUDIT: 1
15+
16+
jobs:
17+
phplint:
18+
permissions:
19+
contents: write
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: "laravel-pint"
24+
uses: aglipanci/laravel-pint-action@latest
25+
with:
26+
configPath: './pint.json'
27+
28+
- name: Commit changes
29+
uses: stefanzweifel/git-auto-commit-action@v4
30+
with:
31+
commit_message: PHP Linting (Pint)
32+
skip_fetch: true
33+

.github/workflows/php-cs-fixer.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,24 @@ jobs:
4040
uses: actions/checkout@v4
4141

4242
- name: Setup PHP
43-
uses: shivammathur/setup-php@v2
43+
uses: shivammathur/setup-php@master
4444
with:
4545
php-version: ${{ matrix.php }}
4646
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
4747
coverage: xdebug
4848

49+
- name: Install latest OpenSSL
50+
run: |
51+
sudo apt-get update
52+
sudo apt-get install -y openssl libssl-dev
53+
4954
- name: Install dependencies
5055
run: |
51-
composer require "illuminate/console:${{ matrix.laravel }}" "illuminate/database:${{ matrix.laravel }}" "illuminate/filesystem:${{ matrix.laravel }}" --no-update
56+
composer require "illuminate/support:${{ matrix.laravel }}" "illuminate/validation:${{ matrix.laravel }}" --no-update
5257
composer require "orchestra/testbench:${{ matrix.testbench }}" --dev --no-update
5358
composer update --prefer-dist --no-suggest
5459
5560
- name: Execute tests
5661
run: |
5762
vendor/bin/phpunit --coverage-clover=coverage.clover
63+

.github/workflows/update-changelog.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.gitignore

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
vendor/
2-
composer.lock
3-
phpunit.phar
4-
/.phpunit.result.cache
5-
cache
6-
.htaccess
7-
/.idea/
8-
docs
1+
build
92
coverage
10-
/.phpunit.result.cache
11-
.php-cs-fixer.cache
3+
.phpunit.cache
4+
vendor
5+
composer.lock
6+
.DS_Store
7+
*.log
8+
.env

.php_cs.dist.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)