Download the PHP package academe/elavon-epg-psr7 without Composer

On this page you can find all versions of the php package academe/elavon-epg-psr7. 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 elavon-epg-psr7

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Elavon EPG PSR-7

PSR-7 HTTP messages and Data Transfer Object (DTO) classes for the Elavon Payment Gateway (EPG) API.

The API is described here and the OpenAPI description is here

Table of Contents

Overview

This package provides strongly-typed PHP classes for interacting with the Elavon Payment Gateway API. It includes:

This package handles message construction and serialization. A separate HTTP client package will handle the actual sending of requests.

Get an Elavon Merchant Account

[!TIP] Don't have an Elavon merchant account yet? Sign up here to get started. Elavon's team will contact you within 24-48 hours to discuss your payment processing needs.

Requirements

Installation

Quick Start

Here's a complete example creating a credit card payment using Guzzle:

Using DTOs (fromData)

You can create DTOs explicitly from array data using fromData():

Using Value Objects (Type-Safe)

For full type safety, construct DTOs with typed value objects:

Paginated Lists with QueryParams

Many API endpoints return paginated lists of resources. The QueryParams class provides a fluent interface for pagination and filtering:

QueryParams Methods

Method Description
QueryParams::create() Create an empty QueryParams instance
withPageToken(?string $token) Set the pagination token for the next page
withLimit(?int $limit) Set page size (1-200, throws exception if out of range)
withFilter(string $field, QueryFilterOperator $operator, string $value) Add a filter condition
isEmpty() Check if any parameters are set
apply(UriInterface $uri) Apply parameters to a PSR-7 URI

Filtering

The Elavon API supports filtering on list endpoints. Use withFilter() with the QueryFilterOperator enum to add filter conditions:

Available filter operators (QueryFilterOperator enum):

Enum Case Value Description
EQ eq Equals
NE ne Not equals
GT gt Greater than
GE ge Greater than or equal
LT lt Less than
LE le Less than or equal
LIKE like Like pattern
IN in In list
CONTAINS contains Contains
IS is Is (for null checks)
IS_NOT isnot Is not (for null checks)

Note: Available filters vary by endpoint. See the Elavon API documentation for endpoint-specific filters.

Response Pagination Properties

Property Description
$response->nextPageToken Token for the next page (use with withPageToken())
$response->nextPage Full URL for the next page
$response->firstPage Full URL to return to the first page
$response->hasMorePages() Returns true if more pages are available

List Requests Supporting QueryParams

The following request classes accept a QueryParams parameter:

Top-level resources:

Nested resources (require parent ID + QueryParams):

See docs/examples/ for more examples.

Features

Based on the Elavon Payment Gateway API version 2025-10-01, this package supports:

Resources

API Endpoints

The Elavon Payment Gateway API base URLs:

Development

Testing

Code Quality

License

MIT License. See LICENSE file for details.

Contributing

Contributions are welcome. Please ensure all tests pass and code follows PSR-12 coding standards.

Namespace

All classes are under the Academe\Elavon\Epg\Psr7\ namespace.


All versions of elavon-epg-psr7 with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
league/iso3166 Version ^4.3
moneyphp/money Version ^4.8
psr/http-factory Version ^1.0
psr/http-message Version ^1.0|^2.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 academe/elavon-epg-psr7 contains the following files

Loading the files please wait ...