Download the PHP package engalirock/laravel-paymob without Composer

On this page you can find all versions of the php package engalirock/laravel-paymob. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-paymob

Laravel PayMob

Latest Stable Version Total Downloads License

A modern, lightweight Laravel package for integrating PayMob (Accept) Payment Gateway in Egypt and other supported regions. Fully compatible with Laravel 10+ and PHP 8.2+.


Key Features


Table of Contents

  1. SEO & Description
  2. Installation
  3. Configuration
  4. Modern Integration (Intentions API - Recommended)
  5. Legacy Integration (Steps to make a transaction)
  6. Debugging & Error Handling
  7. PayMobController & Callbacks
  8. Other Methods
  9. License

Installation

You can install the package via Composer:

[!NOTE] Laravel 10+ supports package auto-discovery, so you do not need to add the ServiceProvider or Facade manually to your config/app.php.

If you are running an older setup or want to register it manually:

Manual Registration (Optional)

In config/app.php:


Configuration

Publish the config file using:

This will create a config/paymob.php file. Fill in your credentials:

Make sure to set up your Processed Callback and Response Callback URLs in your PayMob dashboard pointing to your application routes.


Modern Integration (Intentions API - Recommended)

PayMob's new Intentions API simplifies payment flow integration by reducing multiple backend steps into a single intention.

1. Request Auth Token

2. Create Payment Intention

Use the intention method to build the payment request payload:

3. Unified Checkout URL

Generate the client checkout URL to redirect the user to the unified checkout page:


Legacy Integration (Steps to make a transaction on PayMob servers)

1. API Authentication Request

2. Order Registration Request

3. Payment Key Generation Request

4. Load Iframe

Use the token from the payment key payload inside the iframe:


Debugging & Error Handling

If a request fails, you can inspect the response status code, curl errors, and response headers:


PayMobController

A pre-built controller template PayMobController.php is published inside your app directory to handle response callbacks. Update the processedCallback and invoice routes on your PayMob dashboard integration page.


Other PayMob Methods

1. Transaction Inquiry

Verify payment details using a PayMob order ID:

2. Get All Orders

3. Get Specific Order

4. Get All Transactions

5. Get Specific Transaction

6. Capture Authorized Transaction


License

Laravel PayMob is open-sourced software licensed under the MIT license.


All versions of laravel-paymob with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
laravel/framework Version >=10.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package engalirock/laravel-paymob contains the following files

Loading the files please wait ...