PHPackages                             ybreaka98/ebtekardcb - 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. ybreaka98/ebtekardcb

ActiveLibrary[Payment Processing](/categories/payments)

ybreaka98/ebtekardcb
====================

ebtekar dcb payment package

0.0.7(8mo ago)016[4 PRs](https://github.com/YBreaka98/EbtekarDCB/pulls)MITBladePHP ^8.2CI passing

Since Mar 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/YBreaka98/EbtekarDCB)[ Packagist](https://packagist.org/packages/ybreaka98/ebtekardcb)[ Docs](https://github.com/ybreaka98/ebtekardcb)[ GitHub Sponsors](https://github.com/ybreaka98)[ RSS](/packages/ybreaka98-ebtekardcb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (13)Versions (12)Used By (0)

Ebtekar DCB Payment Package
===========================

[](#ebtekar-dcb-payment-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/def0120f98f2d050527b1b0a758b435f6fc71e760e45836b91486ef9de0c1d4d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79627265616b6139382f656274656b61726463622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ybreaka98/ebtekardcb)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5cd72bcdde923c1d1a75ce00a1b1437c7eda07c8d86f2abe7eb430071d087ef7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79627265616b6139382f656274656b61726463622f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ybreaka98/ebtekardcb/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e00a61373e07c6324e41bc698c5df8fa9927617baa869a7de8847f47dbd7e3d9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79627265616b6139382f656274656b61726463622f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/ybreaka98/ebtekardcb/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f8622b633736dace4158abec74b6e9342da74dba8c2e5fc9b19cf0712876b5e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79627265616b6139382f656274656b61726463622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ybreaka98/ebtekardcb)

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
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 11.0 or 12.0
- ext-json

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/298201b4addef4824f043a26c500c627bf9de83141c540fc4728a9aef8570958/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f456274656b61724443422e6a70673f743d31)](https://spatie.be/github-ad-click/EbtekarDCB)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

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](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#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
-----

[](#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
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [ybreaka98](https://github.com/ybreaka98)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance78

Regular maintenance activity

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.9% 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 ~91 days

Recently: every ~136 days

Total

7

Last Release

241d ago

PHP version history (2 changes)v0.0.1PHP ^8.1

0.0.7PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7b795ea1270e82be7a687fe2193d91a4971783cce68fbc5300231b4750f14b3?d=identicon)[YBreaka98](/maintainers/YBreaka98)

---

Top Contributors

[![YBreaka98](https://avatars.githubusercontent.com/u/46008548?v=4)](https://github.com/YBreaka98 "YBreaka98 (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

laravelybreaka98ebtekardcb

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ybreaka98-ebtekardcb/health.svg)

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

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[danestves/laravel-polar

A package to easily integrate your Laravel application with Polar.sh

7812.3k](/packages/danestves-laravel-polar)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[creagia/laravel-redsys

Laravel Redsys Payments Gateway

2013.6k](/packages/creagia-laravel-redsys)

PHPackages © 2026

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