PHPackages                             dinhdjj/laravel-thesieure - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dinhdjj/laravel-thesieure

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

dinhdjj/laravel-thesieure
=========================

Provide a helper interface to communicate with thesieure easily

v1.2.0(4y ago)030[3 PRs](https://github.com/divndev/laravel-thesieure-deprecated/pulls)MITPHPPHP ^8.1

Since May 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/divndev/laravel-thesieure-deprecated)[ Packagist](https://packagist.org/packages/dinhdjj/laravel-thesieure)[ Docs](https://github.com/dinhdjj/thesieure)[ RSS](/packages/dinhdjj-laravel-thesieure/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (14)Versions (8)Used By (0)

Provide a helper interface to communicate with thesieure easily
===============================================================

[](#provide-a-helper-interface-to-communicate-with-thesieure-easily)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c3c1b199dd90c8baa3401a7b544ea51c347ddea78cc2a9e3ee6d4adfa76958d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64696e68646a6a2f7468657369657572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dinhdjj/thesieure)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c6ad27dccf19f4dbcb47c85baee0808e16938f1e8d5c8bed38ef3125c527d562/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f64696e68646a6a2f7468657369657572652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/dinhdjj/thesieure/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/bae81e0d0a96e46098bc30e4f168b1618ea9063815c34dc31acb05c72e6a86dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f64696e68646a6a2f7468657369657572652f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/dinhdjj/thesieure/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/12721308811409ab243f05b8bd3189f4020330ac79adefa090eb5b72384a245a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64696e68646a6a2f7468657369657572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dinhdjj/thesieure)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

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

[](#installation)

You can install the package via composer:

```
composer require dinhdjj/laravel-thesieure
```

You can publish the config file with:

```
php artisan vendor:publish --tag="thesieure-config"
```

This is the contents of the published config file:

```
// config for dinhdjj/laravel-thesieure
return [
    'domain' => env('THESIEURE_DOMAIN', 'thesieure.com'),
    'partner_id' => env('THESIEURE_PARTNER_ID'),
    'partner_key' => env('THESIEURE_PARTNER_KEY'),

    /**
     * The callback will be call when thesieure callback to server.
     */
    'callback' => [
        'route' => [
            'name' => 'thesieure.callback',
            'uri' => 'api/thesieure/callback',
            'middleware' => [
                'api',
            ],
            'method' => 'post',
        ],
    ],

    /**
     * Used when fetch card types from thesieure server.
     */
    'fetch_card_types' => [
        'cache' => [
            'enabled' => true,
            'key' => 'thesieure.card_types',
            'ttl' => 60 * 5, // 5 minutes,
            'store' => null, // used default store
        ],
    ],
];
```

Usage
-----

[](#usage)

Firstly, you should register logic to handle the callback from thesieure.

```
// app/Providers/AppServiceProvider.php

public function boot()
{
    \Thesieure::onCallback(function(Dinhdjj\Thesieure\Types\ApprovedCard $card){
        // Each property of $card equivalent to thesieure's attributes read more on `thesieure`
        // Besides, $card also have some helper methods

        if($card->isApproving()){
            // Do something
        }

        if($card->isSuccess()){
            $receivedValue = $card->getReceivedValue();
            $realFaceValue = $card->getRealFaceValue();

            // Do something
        }

        if($card->isError()){
            // Do something
        }
    });
}
```

Next, you should register the callback in thesieure. By default, the callback route is`post`:`/api/thesieure/callback`.

Finally, when you need to send a card to `thesieure` approve:

```
    \Thesieure::approveCard('VIETTEL', 20000, '20002346728333', '239847923483242432', 'anything');
    \Thesieure::updateApprovedCard('VIETTEL', 20000, '20002346728333', '239847923483242432', 'anything');
```

When `thesieure` response the result, error or when you call `approveCard`, `updateApprovedCard` method, closure you transfer to `\Thesieure::onCallback` will be invoked. All things you need to do is register logic in `\Thesieure::onCallback`.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

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

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~1 days

Total

4

Last Release

1506d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47e2161449a748d8324f83eca75917aac149ae95ced37796d72a1da71be7df90?d=identicon)[dileedotdev](/maintainers/dileedotdev)

---

Top Contributors

[![dinwwwh](https://avatars.githubusercontent.com/u/64189902?v=4)](https://github.com/dinwwwh "dinwwwh (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")

---

Tags

laraveldinhdjjthesieure

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/dinhdjj-laravel-thesieure/health.svg)

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

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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