Download the PHP package carlosupreme/cep-query-payment without Composer

On this page you can find all versions of the php package carlosupreme/cep-query-payment. 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 cep-query-payment

CEP Query Service

A PHP library for querying Banco de México's CEP (Comprobantes Electrónicos de Pago / Electronic Payment Receipts) system using Guzzle HTTP client.

Overview

This library provides a simple interface to query the SPEI payment system through Banco de México's CEP website. It uses Guzzle HTTP client to make direct API requests to the CEP system.

Features

Requirements

Installation

For Laravel Projects

  1. The package is available in composer. Run composer install:

  2. The service provider is already registered via Laravel's package auto-discovery.

  3. Run:

Usage

Basic Usage (Framework-Agnostic)

Laravel Usage

Get Available Banks

Bank Code Lookup

Date Formatting

Custom Logger

Timeout Options

Form Data Structure

Required Fields

Field Type Description Example
fecha string Payment date in dd-mm-yyyy format '15-01-2024'
tipoCriterio string Search criteria type: 'T' (tracking) or 'R' (reference) 'T'
criterio string Tracking key (max 30) or reference (max 7) '1234567890'
emisor string Sender bank code (numeric) '40012'
receptor string Receiver bank code (numeric) '40002'
cuenta string Beneficiary CLABE account (18 digits) '012345678901234567'
monto string Payment amount '1500.00'

Validation Rules

Response Format

Successful Query (Payment Found)

Payment Not Found

No Result

Error Handling

The library throws Exception for various error conditions:

Common exceptions:

Configuration

Timeout

Default timeout is 60 seconds.

Custom HTTP Client

You can provide a custom Guzzle HTTP client:

Security Considerations

Performance Tips

  1. Cache Bank Options: Bank codes rarely change, cache them
  2. Adjust Timeouts: Reduce for faster failures, increase for slow networks
  3. Queue Jobs: For Laravel, use queues for CEP queries
  4. Error Monitoring: Log failures for debugging

Troubleshooting

HTTP Request Fails

Timeout Errors

Invalid Response

No Results Found

Development

Running Tests

License

MIT License - See LICENSE file for details

Support

For issues, questions, or contributions, please feel free to open a GitHub issue.

Credits

Developed for Carlos Sosa.

Changelog

Version 1.0.0 (2025)


All versions of cep-query-payment with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
symfony/process Version ^7.0
nesbot/carbon Version ^3.10
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 carlosupreme/cep-query-payment contains the following files

Loading the files please wait ...