File tree 5 files changed +99
-2
lines changed
5 files changed +99
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Path-based git attributes
2
+ # https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3
+
4
+ # Ignore all test and documentation with "export-ignore".
5
+ /.gitattributes export-ignore
6
+ /.gitignore export-ignore
7
+ /.travis.yml export-ignore
8
+ /phpunit.xml.dist export-ignore
9
+ /.scrutinizer.yml export-ignore
10
+ /tests export-ignore
11
+ /.editorconfig export-ignore
12
+ /.github export-ignore
13
+ /.vscode export-ignore
Original file line number Diff line number Diff line change
1
+ {
2
+ "editor.renderWhitespace" : " boundary" ,
3
+ "editor.rulers" : [
4
+ 80
5
+ ],
6
+ "files.trimTrailingWhitespace" : true
7
+ }
Original file line number Diff line number Diff line change
1
+ # Changelog
2
+
3
+ All notable changes to ` laravel-rif-validation ` will be documented in this file
Original file line number Diff line number Diff line change
1
+ # A Validation rule to check if a RIF is valid
2
+
3
+ [ ![ Latest Version on Packagist] ( https://img.shields.io/packagist/v/wilsenhc/laravel-rif-validation.svg?style=flat-square )] ( https://packagist.org/packages/wilsenhc/laravel-rif-validation )
4
+ ![ Tests] ( https://github.com/wilsenhc/laravel-rif-validation/actions/workflows/run-tests.yml/badge.svg )
5
+ [ ![ Total Downloads] ( https://img.shields.io/packagist/dt/wilsenhc/laravel-rif-validation.svg?style=flat-square )] ( https://packagist.org/packages/wilsenhc/laravel-rif-validation )
6
+
7
+
8
+ ## Installation
9
+
10
+ You can install the package via composer:
11
+
12
+ ``` bash
13
+ composer require wilsenhc/laravel-rif-validation
14
+ ```
15
+
16
+ The package will automatically register itself.
17
+
18
+ ### Translations
19
+
20
+ If you wish to edit the package translations, you can run the following command to publish them into your ` resources/lang ` folder
21
+
22
+ ``` bash
23
+ php artisan vendor:publish --provider=" Wilsenhc\RifValidation\RifValidationServiceProvider"
24
+ ```
25
+
26
+ ## Available rules
27
+
28
+ - [ ` Rif ` ] ( #rif )
29
+
30
+ ### ` Rif `
31
+
32
+ This validation rule will pass if the RIF value passed in the request is valid.
33
+
34
+ ``` php
35
+ // in a `FormRequest`
36
+
37
+ use Wilsenhc\RifValidation\Rules\Rif;
38
+
39
+ public function rules()
40
+ {
41
+ return [
42
+ 'rif' => ['required', new Rif()],
43
+ ];
44
+ }
45
+ ```
46
+
47
+ ### Testing
48
+
49
+ ``` bash
50
+ composer test
51
+ ```
52
+
53
+ ### Changelog
54
+
55
+ Please see [ CHANGELOG] ( CHANGELOG.md ) for more information on what has changed recently.
56
+
57
+ ## Contributing
58
+
59
+ Please see [ CONTRIBUTING] ( .github/CONTRIBUTING.md ) for details.
60
+
61
+ ### Security
62
+
63
+ If you discover any security related issues, please email
[email protected] instead of using the issue tracker.
64
+
65
+ ## Credits
66
+
67
+ - [ Wilsen Hernández] ( https://github.com/wilsenhc )
68
+ - [ All Contributors] ( ../../contributors )
69
+
70
+ ## License
71
+
72
+ The MIT License (MIT). Please see [ License File] ( LICENSE.md ) for more information.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " wilsenhc/laravel-rif-validation" ,
3
- "description" : " Regla de Validación para conocer si un RIF (Registro Único de Información Fiscal) está bien formado " ,
3
+ "description" : " A Validation rule to check if a RIF is valid " ,
4
4
"keywords" : [
5
5
" wilsenhc" ,
6
6
" seniat" ,
44
44
" Wilsenhc\\ RifValidation\\ RifValidationServiceProvider"
45
45
]
46
46
}
47
- }
47
+ },
48
+ "minimum-stability" : " dev" ,
49
+ "prefer-stable" : true
48
50
}
You can’t perform that action at this time.
0 commit comments