owenvoke/laravel-arionum

A Laravel adapter for the Arionum PHP wrapper.


Keywords
api, php, laravel, composer, api-client, arionum
License
MIT

Documentation

Laravel Arionum

Latest Version on Packagist Software License Build Status Style CI Code Coverage Total Downloads

A Laravel adapter for the Arionum PHP wrapper.

Install

Via Composer

$ composer require pxgamer/laravel-arionum

Usage

This adapter allows the use of the Arionum PHP wrapper directly in Laravel projects.

The ARIONUM_NODE_URI property must be set in the .env or environment.

All methods can be used statically, via the Arionum facade, or resolved from the service container.

// Resolving from the app container
app(\pxgamer\Arionum\Arionum::class)->getNodeInfo();
app('arionum')->getNodeInfo();

// Using the facade (with, and without the short alias)
\Arionum::getNodeInfo();
\pxgamer\LaravelArionum\ArionumFacade::getNodeInfo();

// Type hinting with dependency injection
public function __construct(\pxgamer\Arionum\Arionum $arionum)
{
    $arionum->getNodeInfo();
}

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email security@pxgamer.xyz instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.