ybreaka98 / ebtekardcb
ebtekar dcb payment package
Fund package maintenance!
ybreaka98
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
Language:Blade
Requires
- php: ^8.2
- illuminate/contracts: ^11.0||^12.0
- spatie/laravel-package-tools: ^1.16.0
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.17
- nunomaduro/collision: ^8.0
- orchestra/testbench: ^9.0||^10.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^1.2
- phpstan/phpstan-phpunit: ^1.4
- spatie/laravel-ray: ^1.37
This package is auto-updated.
Last update: 2025-09-17 01:59:30 UTC
README
A Laravel package for integrating with Ebtekar DCB (Direct Carrier Billing) payment services. This package provides a simple and elegant API for handling mobile subscription payments, user authentication, and subscription management.
Requirements
- PHP 8.2 or higher
- Laravel 11.0 or 12.0
- ext-json
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Installation
You can install the package via composer:
composer require ybreaka98/ebtekardcb
You can publish and run the migrations with:
php artisan vendor:publish --tag="ebtekardcb-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="ebtekardcb-config"
This is the contents of the published config file:
return [ 'base_url' => env('EBTEKAR_BASE_URL', 'https://connexlive.ebtekarcloud.com/external-api/'), 'email' => env('EBTEKAR_DCB_EMAIL', ''), 'password' => env('EBTEKAR_DCB_PASSWORD', ''), ]
Optionally, you can publish the views using
php artisan vendor:publish --tag="ebtekardcb-views"
Usage
use Ybreaka98\EbtekarDCB\Facades\EbtekarDCB; // Initialize subscription login $response = EbtekarDCB::login('218912345678', 'unique_transaction_id'); if ($response->isSuccessful()) { // Handle successful login request $data = $response->getJson(); } // Confirm login with OTP $confirmResponse = EbtekarDCB::confirmLogin('218912345678', '1234'); // Get subscription details $details = EbtekarDCB::subscriptionDetails('218912345678'); // Request protected script $script = EbtekarDCB::requestProtectedScript('#payment-button');
Testing
composer test
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.
Credits
License
The MIT License (MIT). Please see License File for more information.