PHPackages                             oussamamadjmaa/sofizpay-laravel - 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. oussamamadjmaa/sofizpay-laravel

ActiveLibrary[Payment Processing](/categories/payments)

oussamamadjmaa/sofizpay-laravel
===============================

A Laravel wrapper for the SofizPay API — CIB card payments and prepaid service operations (phone, internet, game recharge, bill payments) for Algeria, with typed DTOs, response objects, and built-in sandbox mocking.

v1.0.1(1mo ago)18↓75%MITPHPPHP ^8.1

Since Jul 16Pushed 1mo agoCompare

[ Source](https://github.com/oussamamadjmaa/sofizpay-laravel)[ Packagist](https://packagist.org/packages/oussamamadjmaa/sofizpay-laravel)[ Docs](https://github.com/oussamamadjmaa/sofizpay-laravel)[ RSS](/packages/oussamamadjmaa-sofizpay-laravel/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (10)Versions (3)Used By (0)

SofizPay for Laravel
====================

[](#sofizpay-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/aa048148a421765b4392c1aacf685e0896552ef6158f71bb4857122efb442163/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f757373616d616d61646a6d61612f736f66697a7061792d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oussamamadjmaa/sofizpay-laravel)[![License](https://camo.githubusercontent.com/7bc03179dcf8b0e52d2f875328545e6dbf886aa9b74a41b600415ecc9616ef60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f757373616d616d61646a6d61612f736f66697a7061792d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A Laravel package for SofizPay CIB transactions and service operations. It provides DTOs for phone, internet, game, and bill operations, plus typed response objects.

Requirements
------------

[](#requirements)

- PHP 8.1 or later
- Laravel 10, 11, 12, or 13

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

[](#installation)

```
composer require oussamamadjmaa/sofizpay-laravel
```

The package is discovered automatically. Publish its configuration when you need to set values in a config file:

```
php artisan vendor:publish --provider="OussamaMadjmaa\SofizPay\SofizPayServiceProvider" --tag=config
```

Set the required environment variables:

```
SOFIZPAY_ACCOUNT_ID=
SOFIZPAY_ENCRYPTED_SK=
SOFIZPAY_SANDBOX=true
```

Quick start
-----------

[](#quick-start)

```
use OussamaMadjmaa\SofizPay\DTOs\MakeCIBTransactionDTO;
use OussamaMadjmaa\SofizPay\SofizPay;

$payment = app(SofizPay::class)->cibTransaction()->make(
    new MakeCIBTransactionDTO(
        amount: 2500,
        fullName: 'Oussama Madjmaa',
        phone: '0555123456',
        email: 'oussama@example.com',
        returnUrl: 'https://example.com/payments/return',
    ),
);

return redirect()->away($payment->paymentUrl);
```

You may also use the `OussamaMadjmaa\SofizPay\Facades\SofizPay` facade.

Documentation
-------------

[](#documentation)

- [Installation](docs/installation.md)
- [Configuration](docs/configuration.md)
- [CIB transactions](docs/cib-transactions.md)
- [Service operations](docs/service-operations.md)
- [Sandbox behavior](docs/sandbox.md)
- [Error handling](docs/error-handling.md)
- [Architecture](docs/architecture.md)

Security
--------

[](#security)

Please report vulnerabilities according to [our security policy](SECURITY.md).

Contributing
------------

[](#contributing)

Contributions are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT.md](CODE_OF_CONDUCT.md) first.

License
-------

[](#license)

SofizPay for Laravel is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance91

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~4 days

Total

2

Last Release

41d ago

### Community

Maintainers

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

---

Top Contributors

[![oussamamadjmaa](https://avatars.githubusercontent.com/u/66445890?v=4)](https://github.com/oussamamadjmaa "oussamamadjmaa (2 commits)")

---

Tags

phplaravelsdkpaymentApi Wrapperpayment gatewayAlgeriacibDzOoredoomobile rechargerechargebill paymentsofizpaycib-paymentcarte-interbancairephone-rechargeinternet-rechargesonelgazalgerie-telecommobilisdjezzyidoom

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/oussamamadjmaa-sofizpay-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/oussamamadjmaa-sofizpay-laravel/health.svg)](https://phpackages.com/packages/oussamamadjmaa-sofizpay-laravel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

80732.6M273](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

58190.1k22](/packages/api-platform-laravel)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.5k](/packages/forjedio-inertia-table)

PHPackages © 2026

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