PHPackages                             digitwires/payway - 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. digitwires/payway

ActiveLibrary[Payment Processing](/categories/payments)

digitwires/payway
=================

Payment Helper of Payment Gateways

v1.0.4(3y ago)314MITPHPPHP ^8.1

Since Mar 22Pushed 3y agoCompare

[ Source](https://github.com/Digitwires/payway)[ Packagist](https://packagist.org/packages/digitwires/payway)[ RSS](/packages/digitwires-payway/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Laravel Payway
==============

[](#laravel-payway)

[![Latest Version on Packagist](https://camo.githubusercontent.com/555b01e0292d9083b80d9693719c4b8d2f05ed6f659f5873bf771951ea2a7cbc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646967697477697265732f7061797761792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitwires/payway)[![Total Downloads](https://camo.githubusercontent.com/2b750456bd7c36f5086ab7464b37d123d83d9f8d33368316a4635cefba0d55b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646967697477697265732f7061797761792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitwires/payway)

A simple Laravel implementation for all payment providers.

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

[](#installation)

You can install the package via composer:

```
composer require digitwires/payway
```

This is the contents of the published config file:

```
php artisan vendor:publish --tag="payway-config"
```

This is the contents of the published lang file:

```
php artisan vendor:publish --tag="payway-lang"
```

List of contents
----------------

[](#list-of-contents)

- [Available Providers](#list-of-available-providers)
- [Usage](#usage)
    - [Pay Invoices](#pay-invoices)
    - [Verify Payments](#verify-payments)
- [Change log](#change-log)
- [Contributing](#contributing)
- [Security Vulnerabilities](#security-vulnerabilities)
- [Credits](#credits)
- [License](#license)

List of available providers
---------------------------

[](#list-of-available-providers)

You can navigate to the [Payment Providers Docs](PAYMENTPROVIDERS.md) file to see their examples or click on the links below.

- [PayPal](PAYMENTPROVIDERS.md#paypal-gateway-example)
- [PayTabs](PAYMENTPROVIDERS.md#paytabs-gateway-example)
- [Paymob](PAYMENTPROVIDERS.md#paymob-gateway-example)

Usage
-----

[](#usage)

### Pay Invoices

[](#pay-invoices)

The following example shows how to use the package with any payment provider.

```
$payway = new PaypalGateway(); // OR any available payment class

$payway->initPayment([
    'amount' => 100,
    'user_id' => '111',
    'user_first_name' => 'John',
    'user_last_name' => 'Doe',
    'user_email' => 'john@example.com',
    'user_phone' => '+11234567890',
    'source' => 'website',
    'currency' => 'USD',
]);
```

### Verify Payments

[](#verify-payments)

The following example shows how to verify payments with any payment provider.

```
  $payway = new PaypalGateway(); // OR any available payment class

  $payway->verifyPayment($request)
```

### Available Providers

[](#available-providers)

```
use Digitwires\Payway\Classes\PaypalGateway;
use Digitwires\Payway\Classes\PaytabsGateway;
use Digitwires\Payway\Classes\PaymobGateway;
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this package, please email [ahmed\_noreldin@outlook.com](mailto:ahmed_noreldin@outlook.com)

Credits
-------

[](#credits)

- [Ahmed M. Ibrahim](https://github.com/2hmad)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Every ~0 days

Total

5

Last Release

1197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ceddeaee905794ace309aff20cf8d35ab0cc60de9cd0ef4623b4b1fef6c71f7?d=identicon)[2hmad](/maintainers/2hmad)

---

Top Contributors

[![2hmad](https://avatars.githubusercontent.com/u/32125808?v=4)](https://github.com/2hmad "2hmad (39 commits)")

---

Tags

gatewaylaravelpaymentpayment-gatewaypaymentspaymobpaypalpaytabspaymentpaymentsgatewaypaypalpaytabspaymobgatewayspayfort

### Embed Badge

![Health badge](/badges/digitwires-payway/health.svg)

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

###  Alternatives

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[shetabit/multipay

PHP Payment Gateway Integration Package

293361.0k4](/packages/shetabit-multipay)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42361.9k4](/packages/bitpay-sdk)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4851.0k](/packages/sebdesign-laravel-viva-payments)

PHPackages © 2026

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