{"id":13408809,"url":"https://github.com/PeerMeHQ/mx-sdk-laravel","last_synced_at":"2025-03-14T13:32:06.330Z","repository":{"id":38689859,"uuid":"414772131","full_name":"PeerMeHQ/mx-sdk-laravel","owner":"PeerMeHQ","description":"MultiversX SDK for Laravel (written in PHP).","archived":false,"fork":false,"pushed_at":"2024-11-04T13:42:11.000Z","size":765,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-10T15:17:50.385Z","etag":null,"topics":["laravel","multiversx","sdk"],"latest_commit_sha":null,"homepage":"https://peerme.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeerMeHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"peermehq"}},"created_at":"2021-10-07T22:12:50.000Z","updated_at":"2024-11-04T13:41:44.000Z","dependencies_parsed_at":"2024-10-26T04:07:53.458Z","dependency_job_id":"2aad17c6-9728-43b0-b3b2-621cf9e4e903","html_url":"https://github.com/PeerMeHQ/mx-sdk-laravel","commit_stats":{"total_commits":276,"total_committers":2,"mean_commits":138.0,"dds":"0.018115942028985477","last_synced_commit":"801d104fd3fcf296fd8409465e47b6cca8ccfed5"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeerMeHQ%2Fmx-sdk-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeerMeHQ%2Fmx-sdk-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeerMeHQ%2Fmx-sdk-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeerMeHQ%2Fmx-sdk-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeerMeHQ","download_url":"https://codeload.github.com/PeerMeHQ/mx-sdk-laravel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243584480,"owners_count":20314771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","multiversx","sdk"],"created_at":"2024-07-30T20:00:55.401Z","updated_at":"2025-03-14T13:32:05.916Z","avatar_url":"https://github.com/PeerMeHQ.png","language":"PHP","funding_links":["https://github.com/sponsors/peermehq"],"categories":["MultiversX community"],"sub_categories":["SDKs and dev tools"],"readme":"# MultiversX SDK for Laravel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/PeerMe/mx-sdk-laravel.svg?style=for-the-badge)](https://packagist.org/packages/PeerMe/mx-sdk-laravel)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/PeerMeHQ/mx-sdk-laravel/tests.yml?style=for-the-badge\u0026branch=main\u0026label=Tests)](https://github.com/PeerMeHQ/mx-sdk-laravel/actions?query=workflow%3ATests+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/PeerMe/mx-sdk-laravel.svg?style=for-the-badge)](https://packagist.org/packages/PeerMe/mx-sdk-laravel)\n[![](https://img.shields.io/twitter/follow/PeerMeHQ?color=%23555555\u0026label=Follow%20PeerMe\u0026logo=twitter\u0026style=for-the-badge)](https://twitter.com/PeerMeHQ)\n[![](https://dcbadge.vercel.app/api/server/sDeejyk3VR)](https://discord.gg/sDeejyk3VR)\n\nThis 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.\n\nAdditionally, 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.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require peerme/mx-sdk-laravel\n```\n\nAnd publish the config file `config/multiversx.php` via\n\n```bash\nphp artisan vendor:publish --provider=\"MultiversX\\ServiceProvider\" --tag=\"config\"\n```\n\n## Usage\n\nSince this package wraps \u0026 configures the native packages for Laravel, you can access their utitlies without further configurations.\n\nThis includes:\n\n-   User Login Signature Verification\n-   MultiversX constants\n-   Domain Objects\n-   Blockchain-specific constants\n-   Other Utitilies \u0026 more\n\nFor more details, please refer to their documentation:\n\n-   Core: [mx-sdk-php](https://github.com/PeerMeHQ/mx-sdk-php)\n-   Network Providers: [mx-sdk-php-network-providers](https://github.com/PeerMeHQ/mx-sdk-php-network-providers)\n\n### Calling the API\n\nWhen instantiating the Network Providers, you can decide to optionally cache responses:\n\n```php\nuse MultiversX\\Multiversx;\n\n// retrieve fresh responses each time\n$api = Multiversx::api();\n\n// or retrieve cached responses subsequently for 1 hour\n$api = Multiversx::apiWithCache(expiresAt: now()-\u003eaddHour());\n```\n\n### Validation Rules\n\nThis package exposes the following Laravel [Validation Rules](https://laravel.com/docs/9.x/validation#available-validation-rules).\n\n`MxAddressRule` – to validate a given address format:\n\n```php\n[\n    'address' =\u003e ['required', new MxAddressRule],\n]\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n-   [Micha Vie](https://github.com/michavie)\n-   [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPeerMeHQ%2Fmx-sdk-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPeerMeHQ%2Fmx-sdk-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPeerMeHQ%2Fmx-sdk-laravel/lists"}