Download the PHP package mohzubiri/laravel-esadad without Composer
On this page you can find all versions of the php package mohzubiri/laravel-esadad. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-esadad
Laravel e-SADAD Payment Gateway
A Laravel package for integrating with the e-SADAD payment gateway. This package provides a simple and clean API to process payments through the e-SADAD payment system. The package is now more stable and includes several improvements for better integration with Laravel applications, including full support for Laravel 12.
Features
- Easy integration with Laravel applications
- Support for all e-SADAD payment operations
- Clean and modern UI for payment forms
- Configurable routes and views
- Comprehensive error handling and logging
- Support for multiple currencies
- Secure transaction processing
Requirements
- PHP 8.1 or higher (PHP 8.3 supported)
- Laravel 10.0 or higher
- Required PHP Extensions:
- OpenSSL
- cURL
- JSON
- XML
- SOAP
- Mbstring
- Fileinfo
- Java (for signature generation)
- Composer for dependency management
Installation
For Laravel Applications
-
Install the package via Composer:
-
Publish the configuration file:
-
Publish the views (optional, only if you want to customize them):
-
Publish the assets (CSS, JS, images):
- Run the migrations:
Or use the install command for a guided installation:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Mohammed Zubiri
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Manual Installation (For Package Development)
-
Clone the repository:
-
Add the repository to your Laravel application's
composer.json
: - Require the package:
Configuration
Environment Variables
Add the following to your .env
file:
Configuration File
After publishing the configuration file, you can find it at config/esadad.php
. Here's a quick overview of the available options:
Environment Variables
Add the following to your .env
file:
Usage
Basic Usage
- Add the route to your
routes/web.php
:
This will register the following routes:
GET /esadad/form
- Show payment formPOST /esadad/process
- Process paymentGET /esadad/otp
- Show OTP formPOST /esadad/verify-otp
- Verify OTPGET /esadad/success
- Payment success pageGET /esadad/failure
- Payment failure page
Customizing Routes
You can customize the routes by passing an options array to the Route::esadad()
method:
Programmatic Usage
You can also use the package programmatically:
Events
The package dispatches the following events:
YourVendor\ESadad\Events\PaymentProcessed
- When a payment is successfully processedYourVendor\ESadad\Events\PaymentFailed
- When a payment failsYourVendor\ESadad\Events\OtpVerified
- When an OTP is successfully verifiedYourVendor\ESadad\Events\OtpVerificationFailed
- When OTP verification fails
You can listen for these events in your application:
Security
- All sensitive data is encrypted
- Secure SOAP communication with e-SADAD servers
- CSRF protection on all forms
- Input validation on all requests
- Secure session handling
- Comprehensive error logging
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.
Credits
- Your Name
- All Contributors
Support
For support, please email [email protected] or open an issue on our GitHub repository.
All versions of laravel-esadad with dependencies
ext-json Version *
ext-soap Version *
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/routing Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/view Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.5