PHPackages                             ehabtalaat/upayment - 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. [Payment Processing](/categories/payments)
4. /
5. ehabtalaat/upayment

ActiveComposer-plugin[Payment Processing](/categories/payments)

ehabtalaat/upayment
===================

This is a payment gateway package for integrating UPayment

v1.0.0(1y ago)17MITPHPPHP &gt;=8.2

Since May 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ehabtalaat/upayment)[ Packagist](https://packagist.org/packages/ehabtalaat/upayment)[ RSS](/packages/ehabtalaat-upayment/feed)WikiDiscussions main Synced today

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

UPayment PHP Integration
========================

[](#upayment-php-integration)

A simple and lightweight package to integrate with the UPayment payment gateway in PHP (Laravel compatible).

> ✅ Created for learning and experimenting with package development — feel free to use and contribute.

---

🚀 Installation
--------------

[](#-installation)

```
composer require ehabtalaat/upayment
```

📖 Usage
-------

[](#-usage)

```
use Ehabtalaat\Upayment\UPaymentGateway;
use Ehabtalaat\Upayment\PaymentService;

$config = [
    "token"    => "YOUR_TOKEN",
    "url"      => "https://secure.upayment.io/payment-request",
    "currency" => "KWD", // or any supported currency
];

$gateway = new UPaymentGateway($config);

$paymentService = new PaymentService($gateway);

$payload = [
    "name"           => "Company XYZ", // Example company name
    "email"          => "contact@companyxyz.com", // Example company email
    "mobile"         => "50000000", // Example phone number
    "description"    => "payment description", // Payment description
    "orderId"        => "123456789", // Example order ID
    "amount"         => 1000.00, // Example tender bond amount
    "returnUrl"      => "https://yourdomain.com/payment/success", // Replace with your actual success URL
    "cancelUrl"      => "https://yourdomain.com/payment/fail", // Replace with your actual fail URL
    "notificationUrl"=> "https://yourdomain.com/payment/notify", // Replace with your actual notification URL
];

$response = $paymentService->charge($payload);
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance46

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

417d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/61115433?v=4)[Ehab Talaat](/maintainers/ehabtalaat)[@ehabtalaat](https://github.com/ehabtalaat)

### Embed Badge

![Health badge](/badges/ehabtalaat-upayment/health.svg)

```
[![Health](https://phpackages.com/badges/ehabtalaat-upayment/health.svg)](https://phpackages.com/packages/ehabtalaat-upayment)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k39](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
