Download the PHP package shinidev/paymongo-php without Composer

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

Modernized PayMongo PHP SDK

Latest Version PHP Version Require [Tests]()

This project is a fork of the official PayMongo PHP SDK, modernized through a collaborative effort. The refactoring process was guided by shinidev and executed with the assistance of Google's Gemini AI to upgrade the codebase to modern PHP 7.4+ standards, improve security, and establish a robust testing foundation.

Key Improvements in This Version

Requirements

Installation

The only supported installation method is via Composer.

After installation, include Composer's autoloader in your project's startup script:

Manual Installation (initialize.php) is no longer supported.

Usage

1. Initializing the Client

All interactions with the PayMongo API are done through the PaymongoClient object. You only need your secret API key to get started.

2. Creating a Resource

Access API services (like payments or links) as properties on the client object. The SDK automatically handles wrapping the payload in the required {"data": {"attributes": ...}} structure.

3. Retrieving Resources

4. Handling API Errors

The SDK throws specific exceptions for different types of errors. You can use a try...catch block to handle them gracefully.

5. Verifying Webhook Signatures

Verifying webhook signatures is critical for security. The constructEvent method provides a secure way to do this, including protection against replay attacks.

Official API Documentation

This SDK is a wrapper that provides convenient access to the PayMongo REST API. For comprehensive details on API endpoints, request parameters, response structures, and general API behavior, please always refer to the official PayMongo Developer Documentation.

Development and Testing

To run the test suite for this project:

  1. Clone the repository.
  2. Run composer install.
  3. Run the tests from the project root:

License

This project is a fork of the original paymongo/paymongo-php library, which is copyrighted by PayMongo, Inc. and licensed under the MIT license. Modifications and new work in this repository are copyrighted by shinidev (C) 2025 and are also released under the MIT License.


All versions of paymongo-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-curl Version *
ext-json Version *
ext-mbstring 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 shinidev/paymongo-php contains the following files

Loading the files please wait ...