PHPackages                             maree/urway - 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. maree/urway

ActiveLibrary[Payment Processing](/categories/payments)

maree/urway
===========

package to pay with urway payment services

1922PHP

Since Sep 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mohamedmaree/urway)[ Packagist](https://packagist.org/packages/maree/urway)[ RSS](/packages/maree-urway/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

urway
=====

[](#urway)

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

[](#installation)

You can install the package via [Composer](https://getcomposer.org).

```
composer require maree/urway
```

Publish your urway config file with

```
php artisan vendor:publish --provider="maree\urway\UrwayServiceProvider" --tag="urway"
```

then change your urway config from config/urway.php file

```
    "merchantKey"  => "" ,
    "name"         => "" ,
    "password"     => "" ,
```

Usage
-----

[](#usage)

- with \[ visa - master - mada \]

```
use maree\urway\Urway;
$customerInfo = ['email' => 'customer@site.com'];
Urway::checkout($amount = 1.0 , $customerInfo);
```

- with \[ stc \]

```
use maree\urway\Urway;
//$params= ['email' => 'customer@site.com','response_url' => route('your_callback_function')]
Urway::checkoutStc($amount = 1.0 , $params);
```

note
----

[](#note)

- define (callback) the checkout return response url route with request $params\[response\_url\] EX:
- create route for response url 'paymentresponse' EX: Route::get('paymentresponse', 'PaymentsController@paymentresponse')-&gt;name('paymentresponse');
- create function for checkout response 'paymentresponse'
- use that function to check if payment failed or success

inside 'paymentresponse' function use:
--------------------------------------

[](#inside-paymentresponse-function-use)

```
use maree\urway\Urway;
$response = Urway::checkoutResponseStatus();
```

return response like:

```
['key' => 'success' ,'msg' => 'checkout success' ,'result' => $result ,'data' => $_GET ]
```

or

```
['key' => 'fail' , 'msg' => 'checkout failed','result' => $result ,'data' => $_GET ]
```

note: you can use response from data to save transactions in database - 'data' key contain params like 'amount' and 'TranId' =&gt; transaction id

- Test Card Details
- Card Number: Master:5123450000000008 - Visa: 4508 7500 1574 1019
- CVV: 100
- Expiry Date: 05/23
- Card Name: Test Family
- Custom ECI: Leave Blank
- Custom CAVV: Leave Blank

for code errors open urway documentaion file.
---------------------------------------------

[](#for-code-errors-open-urway-documentaion-file)

current urway package payment ways :
------------------------------------

[](#current-urway-package-payment-ways-)

- visa
- master
- mada
- stc

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity21

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e88e6da55b1e4b359544c3e94fab80c6f73b3ce7ac82afd1d872a41aeb349fa?d=identicon)[mohamedmaree](/maintainers/mohamedmaree)

---

Top Contributors

[![mohamedmaree](https://avatars.githubusercontent.com/u/12659069?v=4)](https://github.com/mohamedmaree "mohamedmaree (16 commits)")

### Embed Badge

![Health badge](/badges/maree-urway/health.svg)

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

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