PHPackages                             peerme/mx-sdk-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. peerme/mx-sdk-laravel

ActiveLibrary

peerme/mx-sdk-laravel
=====================

MultiversX SDK for Laravel (written in PHP).

v3.0.0(1y ago)135.1k5MITPHPPHP ^8.2CI passing

Since Oct 29Pushed 1y ago3 watchersCompare

[ Source](https://github.com/PeerMeHQ/mx-sdk-laravel)[ Packagist](https://packagist.org/packages/peerme/mx-sdk-laravel)[ Docs](https://github.com/peermehq/mx-sdk-laravel)[ GitHub Sponsors](https://github.com/sponsors/peermehq)[ RSS](/packages/peerme-mx-sdk-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (47)Used By (0)

MultiversX SDK for Laravel
==========================

[](#multiversx-sdk-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8e1272d7149c89d9364f7f384d9443e449dfaead88f5157ff857aad56238e464/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f506565724d652f6d782d73646b2d6c61726176656c2e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/PeerMe/mx-sdk-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5983c9dfe30fb40ec161735ff20a93ada80343ea83c8a69c65fed479997faa57/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f506565724d6548512f6d782d73646b2d6c61726176656c2f74657374732e796d6c3f7374796c653d666f722d7468652d6261646765266272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/PeerMeHQ/mx-sdk-laravel/actions?query=workflow%3ATests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/4e1cf4fe2bf296a15ab191e76f5a5fe63d51ecdca063020cfcbc8d131884e4b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f506565724d652f6d782d73646b2d6c61726176656c2e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/PeerMe/mx-sdk-laravel)[![](https://camo.githubusercontent.com/949eb63acf41304e77b6ace40635d192cb0d0390d2c32acbfbe171a30d60b571/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f506565724d6548513f636f6c6f723d253233353535353535266c6162656c3d466f6c6c6f77253230506565724d65266c6f676f3d74776974746572267374796c653d666f722d7468652d6261646765)](https://twitter.com/PeerMeHQ)[![](https://camo.githubusercontent.com/7db0ab2286a63ed99ce788a745f52ed5694a017125cee518657208f1122cf0db/68747470733a2f2f646362616467652e76657263656c2e6170702f6170692f7365727665722f734465656a796b335652)](https://discord.gg/sDeejyk3VR)

This SDK is a wrapper around the native [mx-sdk-php](https://github.com/PeerMeHQ/mx-sdk-php) to enable out-of-the-box support for [Laravel](https://laravel.com/) applications.

Additionally, it comes with pre-configured MultiversX API [Network Providers](https://github.com/PeerMeHQ/mx-sdk-php-network-providers) including caching mechanisms using the default Laravel cache driver.

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

[](#installation)

You can install the package via composer:

```
composer require peerme/mx-sdk-laravel
```

And publish the config file `config/multiversx.php` via

```
php artisan vendor:publish --provider="MultiversX\ServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

Since this package wraps &amp; configures the native packages for Laravel, you can access their utitlies without further configurations.

This includes:

- User Login Signature Verification
- MultiversX constants
- Domain Objects
- Blockchain-specific constants
- Other Utitilies &amp; more

For more details, please refer to their documentation:

- Core: [mx-sdk-php](https://github.com/PeerMeHQ/mx-sdk-php)
- Network Providers: [mx-sdk-php-network-providers](https://github.com/PeerMeHQ/mx-sdk-php-network-providers)

### Calling the API

[](#calling-the-api)

When instantiating the Network Providers, you can decide to optionally cache responses:

```
use MultiversX\Multiversx;

// retrieve fresh responses each time
$api = Multiversx::api();

// or retrieve cached responses subsequently for 1 hour
$api = Multiversx::apiWithCache(expiresAt: now()->addHour());
```

### Validation Rules

[](#validation-rules)

This package exposes the following Laravel [Validation Rules](https://laravel.com/docs/9.x/validation#available-validation-rules).

`MxAddressRule` – to validate a given address format:

```
[
    'address' => ['required', new MxAddressRule],
]
```

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Micha Vie](https://github.com/michavie)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance49

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity75

Established project with proven stability

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

Recently: every ~92 days

Total

46

Last Release

371d ago

Major Versions

v0.9.5 → v1.0.02023-01-04

v1.2.1 → v2.0.02024-02-28

v2.3.0 → v3.0.02025-05-05

PHP version history (3 changes)v0.1.0PHP ^8.0

v1.0.0PHP ^8.1

v2.1.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/76559572a8e6d0db59fecca3b299e219394ed0b90451588a092fddb78a1c9f5b?d=identicon)[michavie](/maintainers/michavie)

---

Top Contributors

[![michavie](https://avatars.githubusercontent.com/u/39144548?v=4)](https://github.com/michavie "michavie (306 commits)")

---

Tags

laravelmultiversxsdklaravelmultiversx

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/peerme-mx-sdk-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/peerme-mx-sdk-laravel/health.svg)](https://phpackages.com/packages/peerme-mx-sdk-laravel)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M225](/packages/laravel-horizon)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

3786.5k](/packages/harris21-laravel-fuse)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[dragon-code/laravel-cache

An improved interface for working with cache

6844.8k10](/packages/dragon-code-laravel-cache)

PHPackages © 2026

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