Download the PHP package multiservicios-web/valida-curp without Composer

On this page you can find all versions of the php package multiservicios-web/valida-curp. 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 valida-curp

ValidaCurp Client

[GitHub Release]() [GitHub Release Date]()

1. Requirements

2. Installation

You can install this library via composer by following this command:

3. Account

3.1. Create an account

Create an account by following this link: https://valida-curp.tawk.help/article/registro-de-usuario

3.2. Create a project

Create a project by following this link: https://valida-curp.tawk.help/article/creaci%C3%B3n-de-proyecto

3.3. Get a token

Get your token by following this link: https://valida-curp.tawk.help/article/obtener-token-llave-privada-proyecto

4. Usage

4.1. include "autoload" file and import the library

4.2. Create an instance

The constructor receives as first parameter the token of the project.

4.3. (Optional) setVersion API

You can set the API version to query. You can set 1 or 2. The default value is 2.

5. Methods

5.1. To validate CURP

The method "isValid()" takes a CURP as a parameter. To validate the structure CURP.

Response

5.2. To get CURP data

The method "getData()" takes a CURP as a parameter. To consult the CURP information in RENAPO.

Response

5.3. To calculate a CURP

The method "calculate()" takes an array as parameter. To calculate the structure of a CURP with provided data. Receives an array with the following elements: [names, lastName, secondLastName, birthDay, birthMonth, birthYear, gender, entity]

Response

5.4. To get entities

The method "getEntities()" doesn't take any parameters. To get the list of entities.

Response

6. Full example

To see the full example click on this link https://github.com/hckdrkmx/validaCurp-client/blob/main/index.php

7. Credits

8. License

This project is released under the MIT License. See the LICENSE file for details.


All versions of valida-curp with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.3
guzzlehttp/guzzle Version ^7.9
ext-json Version *
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 multiservicios-web/valida-curp contains the following files

Loading the files please wait ...