Download the PHP package luilliarcec/laravel-ecuador-identification without Composer

On this page you can find all versions of the php package luilliarcec/laravel-ecuador-identification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-ecuador-identification

Laravel Ecuador Identification

Run Tests Latest Version on Packagist Quality Score Total Downloads GitHub license

Laravel Ecuador Identification is a validation library for Laravel, which allows the validation of personal and business identification documents, according to the country's tax regulations.

It is fully adaptable to Laravel's Facade and Validator Class. Its use is also shown in a Facade identified with the name of the country. You can use it as follows.

Or with Validator Facade

Or with Ecuador Facade

Installation

You can install the package via composer:

Usage

When using the Laravel validator, each of them can be accessed by simply calling the validations by placing the [rule_name]:[validation_name].

Ecuador (ecuador)

For ecuador use the "ecuador" rule

Ecuador has 5 types of documents, identification person or identity card, ruc of natural persons, ruc of private companies and ruc of public companies, in addition to billing the fictitious document of final consumer is used.

Validation rules:

final_customer

Validate the final consumer document, this validation on the Facade returns your billing code

personal_identification

Validate the Ecuadorian identification card, this validation on the Facade returns your billing code

natural_ruc

Validates the Ecuadorian RUC of Natural Person, this validation on the Facade returns your billing code

private_ruc

Validates the Ecuadorian RUC of Private Companies, this validation on the Facade returns your billing code

public_ruc

Validates the Ecuadorian RUC of Public Companies, this validation on the Facade returns your billing code

ruc

Validates the Ecuadorian RUC Companies (Public, Natural and Private), this validation on the Facade returns your billing code

is_juridical_person

The group called juridical persons are those that have an private ruc or a public ruc such validation on the Facade will return the billing code if the person has one of these documents, otherwise null.

is_natural_person

The group called natural persons are those that have an Ecuadorian identity card or a natural ruc such validation on the Facade will return the billing code if the person has one of these documents, otherwise null.

all_identifications

Validate the number with all types of documents. It includes the validation of final consumer. This validation in the Facade returns the corresponding billing code, if it fails, it returns null.

Example

Validator

Validations return true or false following the laravel validation convention.

Facade

Facades return null if the document number does not match any type, otherwise they return the billing code.

Translations

If you like to use the translation system of Laravel to present the messages or attributes. Access the corresponding files located in the resources\lang\{language_code}\validation folder.

Example

resources\lang\en\validation:

resources\lang\es\validation:

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.


All versions of laravel-ecuador-identification with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^9.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package luilliarcec/laravel-ecuador-identification contains the following files

Loading the files please wait ....