Download the PHP package decodeblock/laravel-ercaspay without Composer

On this page you can find all versions of the php package decodeblock/laravel-ercaspay. 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-ercaspay

Laravel Ercaspay

A Laravel package for seamless integration with the Ercaspay payment gateway API.

License Latest Version on Packagist Tests Status Code Style Status Total Downloads Contributors PHP Version Support

Features

Requirements

Installation

Install the package via composer:

Configuration

  1. Publish the config file:

  2. Add your Ercaspay credentials to your .env file:

Usage Example

Here are some examples of how to use this package:

Generate Payment Reference UUID

Initiate a Transaction

Verify a Transaction

Initiate a Bank Transfer

Initiate a Card Transaction

Available Methods

Below are all the methods available in the package:

To provide clear and helpful information about the exceptions in your README, you can include a dedicated section about error handling and exception types. This section should describe the different exceptions that developers may encounter while using your package, their causes, and how to handle them.

Here's a sample section you can include in your README.md:


Error Handling and Exceptions

Your package may throw different types of exceptions based on the outcomes of HTTP requests made to the Ercaspay API. Below is a list of the key exceptions you should be aware of when integrating and working with this package:

1. ErcaspayRequestException

Thrown when:

Usage Example:

What You Can Expect:


2. ErcaspayClientErrorException

Thrown when:

Usage Example:

What You Can Expect:


3. ErcaspayServerErrorException

Thrown when:

Usage Example:

What You Can Expect:

Logging

This package provides logging capabilities to help you monitor and troubleshoot API interactions and errors. By default, important information about API requests, responses, and exceptions is logged, which can be useful for debugging and keeping track of system behavior.

What is Logged?

The package logs the following information:

1. API Request Details:

2. API Response Details:

3. Exceptions:

Changelog

Detailed changes for each release are documented in the CHANGELOG.

Contributing

We welcome contributions! Please see the CONTRIBUTING guide for details.

Credits

License

This package is licensed under the MIT License.


All versions of laravel-ercaspay with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4||^8.3
guzzlehttp/guzzle Version ^7.9
illuminate/contracts Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16
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 decodeblock/laravel-ercaspay contains the following files

Loading the files please wait ....