Skip to content

Commit 9d7cbe8

Browse files
committed
Merge branch 'dev' into main
2 parents f4dce3c + d609033 commit 9d7cbe8

File tree

5 files changed

+99
-2
lines changed

5 files changed

+99
-2
lines changed

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"editor.renderWhitespace": "boundary",
3+
"editor.rulers": [
4+
80
5+
],
6+
"files.trimTrailingWhitespace": true
7+
}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
All notable changes to `laravel-rif-validation` will be documented in this file

README.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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.

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"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",
44
"keywords": [
55
"wilsenhc",
66
"seniat",
@@ -44,5 +44,7 @@
4444
"Wilsenhc\\RifValidation\\RifValidationServiceProvider"
4545
]
4646
}
47-
}
47+
},
48+
"minimum-stability": "dev",
49+
"prefer-stable": true
4850
}

0 commit comments

Comments
 (0)