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(6mo ago)05MITPHPPHP ^7.4 || ^8.0

Since Dec 16Pushed 6mo 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 today

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

31

—

LowBetter than 66% of packages

Maintenance66

Regular maintenance activity

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

200d 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://avatars.githubusercontent.com/u/195869176?v=4)[nermeen-amwal](/maintainers/nermeen-amwal)[@nermeen-amwal](https://github.com/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

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)[binkode/laravel-paystack

A description for laravel-paystack.

112.1k](/packages/binkode-laravel-paystack)

PHPackages © 2026

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