PHPackages                             amwal/php-sdk-composer - 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. amwal/php-sdk-composer

ActiveLibrary[Payment Processing](/categories/payments)

amwal/php-sdk-composer
======================

A modern, intuitive PHP composer packages for seamless integration with the Amwal Tech. Create payments, handle callbacks, check statuses, and process refunds with minimal code.

1.0.0(5mo ago)05MITPHPPHP ^7.4 || ^8.0

Since Dec 16Pushed 5mo agoCompare

[ Source](https://github.com/amwal-tech/php-composer-amwal)[ Packagist](https://packagist.org/packages/amwal/php-sdk-composer)[ RSS](/packages/amwal-php-sdk-composer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP Composer Package for Amwal Payment Flow
===========================================

[](#php-composer-package-for-amwal-payment-flow)

A modern, intuitive PHP composer packages for seamless integration with the Amwal Tech. Create payments, handle callbacks, check statuses, and process refunds with minimal code.

Features
--------

[](#features)

- **Simple Configuration**: Get started in under 5 minutes
- **Full Payment Flow**: Create, retrieve, and refund payments
- **Sandbox &amp; Production**: Built-in environment detection
- **Exception Handling**: Comprehensive error handling with detailed messages
- **PSR Compliant**: Follows PHP standards for easy integration

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

[](#installation)

### Via Composer

[](#via-composer)

```
composer require amwal/php-sdk-composer
```

### Configuration

[](#configuration)

```
$amwal = new AmwalPay([
    'amwalPublicKey' => 'sandbox-XXXX', // or 'production-yyy'
    'amwalSecretAPIKey' => 'SECRET API Key',
]);
```

### Validate Keys

[](#validate-keys)

```
// validate merchant configuration
    $amwal->testConnection();
```

### Create Payment

[](#create-payment)

```
// Amwal Store ID
$storeId='Amwal-Store-ID';

// Payment Object
$paymentData=[
    'amount'=>100, // minimum requirement
    // 'language'=>'en',
    // 'description'=>'Test Payment',
    // 'client_email'=>'test@example.com',
    // 'callback_url'=>'https://example.com/callback',
    // 'client_phone_number'=>'+966501234567',
];

$payment=$amwal->createPayment($paymentData, $storeId);
echo 'Amwal Payment URL Click Here ';
echo 'Amwal Payment Link ID '.$payment['payment_link_id'];
```

### Get Payment / Transaction Details

[](#get-payment--transaction-details)

```
    // Getting Payment Link ID details
    $paymentDetails=$amwal->getPaymentDetails('amwal-Payment-Link-ID');
    echo 'Payment Details: '; print_r($paymentDetails);

    // Getting Transaction ID details
    $transactionDetails=$amwal->getPaymentDetails('amwal-trx-ID',false);
    echo 'Specific Transaction Details: ';
    print_r($transactionDetails);
```

### Refund / Partial refund amount for specific transaction

[](#refund--partial-refund-amount-for-specific-transaction)

```
    // refund an amount for specific transaction
    $refundData = ['refund_amount'=>10,
    'transaction_id'=>'amwal-trx-ID',
    ];
    $refundDetails=$amwal->refundPayment($refundData);
    echo 'Refund Details: ';
    print_r($refundDetails);
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance73

Regular maintenance activity

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

153d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2c3d13363af9a9a6274de93e9cf9e497790807fde344d0ed583d89dfc7383d6?d=identicon)[ahmardi](/maintainers/ahmardi)

![](https://www.gravatar.com/avatar/816d84b216740b6cd9ba02ca501dac3866b9b6dd556fe0aa8a2adecda812b816?d=identicon)[ahmedgalalamwal](/maintainers/ahmedgalalamwal)

![](https://www.gravatar.com/avatar/4188281b74311ed2e3ddaa44ade85a3439b85a21cb0ee45cf3d67a3f3b4beb97?d=identicon)[nermeen-amwal](/maintainers/nermeen-amwal)

---

Top Contributors

[![nermeen-amwal](https://avatars.githubusercontent.com/u/195869176?v=4)](https://github.com/nermeen-amwal "nermeen-amwal (3 commits)")

### Embed Badge

![Health badge](/badges/amwal-php-sdk-composer/health.svg)

```
[![Health](https://phpackages.com/badges/amwal-php-sdk-composer/health.svg)](https://phpackages.com/packages/amwal-php-sdk-composer)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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