PHPackages                             shinidev/paymongo-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. shinidev/paymongo-php

ActiveLibrary[API Development](/categories/api)

shinidev/paymongo-php
=====================

A modernized, PHP 7.4+ compatible fork of the official PayMongo PHP library with improved security and reliability.

v2.0.2(11mo ago)1160MITPHPPHP &gt;=7.4

Since Jun 13Pushed 11mo agoCompare

[ Source](https://github.com/ShiniDev/paymongo-php)[ Packagist](https://packagist.org/packages/shinidev/paymongo-php)[ Docs](https://github.com/shinidev/paymongo-php)[ RSS](/packages/shinidev-paymongo-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Modernized PayMongo PHP SDK
===========================

[](#modernized-paymongo-php-sdk)

[![Latest Version](https://camo.githubusercontent.com/461f58784614b7baba9a465aa73ff92ffef8fc8f043b930ccbf5043d32817070/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d76322e302e302d626c75652e737667)](https://github.com/YOUR_USERNAME/YOUR_REPO/releases)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![PHP Version Require](https://camo.githubusercontent.com/8875b4d77856d8a794900c39a6d05313b9513e30d9cda13f07c26b0ab9a63ed9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e342d626c75652e737667)](https://www.php.net/)![Tests](https://camo.githubusercontent.com/3ab4882a1b7d64e5eb5168ad0b0b9cdfd53f59f114ee5f727958504214a5789c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d70617373696e672d627269676874677265656e2e737667)

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
--------------------------------

[](#key-improvements-in-this-version)

- ✅ **PHP 7.4+ Support**: The entire codebase now uses modern PHP features, including strict typing.
- ✅ **Critical Security Fixes**: Webhook signature verification is now protected against timing attacks (`hash_equals`) and replay attacks (timestamp verification).
- ✅ **Improved Developer Experience**: All classes and methods are strictly typed, providing better static analysis and autocompletion in modern IDEs.
- ✅ **Robust Error Handling**: The exception hierarchy has been rebuilt to be more logical and provide detailed error feedback from the API.
- ✅ **Testing Foundation**: A comprehensive test suite has been established to guarantee the reliability and correctness of the SDK.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- cURL PHP Extension
- JSON PHP Extension
- Multibyte String (mbstring) PHP Extension

Installation
------------

[](#installation)

The only supported installation method is via [Composer](https://getcomposer.org/).

```
composer require shinidev/paymongo-php
```

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

```
