Download the PHP package camoo/payment-api without Composer

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

Below is an example README.md you could include in your project. It provides an overview, installation instructions, usage examples, endpoint references, and credits. Feel free to customize this to your specific needs (e.g., project naming, author info, licensing).


Camoo Payment API – PHP Library

A simple, PSR-4 compliant PHP library for accessing the Camoo Payment API. This library provides convenient classes for working with Account and Payment endpoints, while allowing you to inject your own HTTP client if desired.


Table of Contents


Requirements


Installation

Install the package via Composer:

If you are installing from a local copy or private repository, ensure your composer.json and repositories settings are correctly configured, then run composer install.


Getting Started

Configuration & Client

  1. Instantiate the main HTTP Client, providing your API key and API secret.
  2. Optionally set debug to true if you want to see more verbose debugging info.
  3. The API version defaults to v1.

Working with Account API

Use the Camoo\Payment\Api\Account class to fetch account info (e.g. balance, etc.):

Working with Payment API

Use the Camoo\Payment\Api\Payment class to cash out or verify a payment.


Models

This library returns response data as Model classes. Notable models include:

Money Class


Error Handling

Most client or API errors throw a Camoo\Payment\Exception\ApiException. This exception will include the HTTP status code (if available) and a message from the API response (or a fallback).

Example:


Development & Contributing

  1. Clone the repository.
  2. Install dependencies:

  3. Run tests (if available):

  4. Pull Requests: Please submit PRs that follow PSR-12 coding style and include tests.

We welcome issues and pull requests to make this library more robust, add additional endpoints, or improve performance.


License

This library is open-sourced software licensed under the MIT license.


Enjoy building with Camoo Payment API! If you have any feedback or questions, feel free to open an issue or reach out to us.


All versions of payment-api with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
camoo/curl-http-client Version ^1.1
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 camoo/payment-api contains the following files

Collapse All

.github

   workflows

    php.yml

src

   Api

    AccountApi.php
    PaymentApi.php

   Enum

    Currency.php
    Endpoint.php
    Status.php

   Exception

    ApiException.php
    InvalidArgumentException.php

   Http

    Client.php

   Models

    Account.php
    ModelInterface.php
    Payment.php

   ValueObject

    Money.php

tests

   Camoo

     Payment
  bootstrap.php
.gitignore
LICENSE
README.md
composer.json
composer.lock
phpunit.xml.dist