PHPackages                             mlquarizm/payment-gateway - 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. mlquarizm/payment-gateway

ActiveLibrary[Payment Processing](/categories/payments)

mlquarizm/payment-gateway
=========================

Laravel Payment Gateway Package for Tabby and Tamara

v1.0.0(2mo ago)032—0%MITPHPPHP ^8.2

Since Feb 26Pushed 2mo agoCompare

[ Source](https://github.com/mlotfy19x/payment-gateway)[ Packagist](https://packagist.org/packages/mlquarizm/payment-gateway)[ Docs](https://github.com/your-org/ml-payment-gateway)[ RSS](/packages/mlquarizm-payment-gateway/feed)WikiDiscussions main Synced 1mo ago

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

ML Payment Gateway Package
==========================

[](#ml-payment-gateway-package)

Laravel package for integrating Tabby and Tamara payment gateways.

> 📋 **For detailed architecture and development plan, see [PLAN.md](./PLAN.md)**

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

[](#installation)

### Via Composer (if published to Packagist)

[](#via-composer-if-published-to-packagist)

```
composer require mlquarizm/payment-gateway
```

### Via Git Repository (Private Package)

[](#via-git-repository-private-package)

Add to your `composer.json`:

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/your-org/ml-payment-gateway.git"
        }
    ],
    "require": {
        "mlquarizm/payment-gateway": "dev-main"
    }
}
```

Then run:

```
composer require mlquarizm/payment-gateway:dev-main
```

### Via Local Path (Development)

[](#via-local-path-development)

Add to your `composer.json`:

```
{
    "repositories": [
        {
            "type": "path",
            "url": "./packages/ML/PaymentGateway"
        }
    ],
    "require": {
        "mlquarizm/payment-gateway": "*"
    }
}
```

Then run:

```
composer require mlquarizm/payment-gateway
```

Configuration
-------------

[](#configuration)

Publish the configuration files:

```
php artisan vendor:publish --tag=payment-gateway-config
php artisan vendor:publish --tag=payment-gateway-migrations
```

Run migrations:

```
php artisan migrate
```

CSRF Configuration
------------------

[](#csrf-configuration)

Since payment callbacks and webhooks come from external sources, you need to exclude them from CSRF verification.

Add the following routes to your `app/Http/Middleware/VerifyCsrfToken.php`:

```
