Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/owenvoke/laravel-arionum
A Laravel adapter for the Arionum PHP wrapper.
https://github.com/owenvoke/laravel-arionum
api api-client arionum composer laravel php
Last synced: about 1 month ago
JSON representation
A Laravel adapter for the Arionum PHP wrapper.
- Host: GitHub
- URL: https://github.com/owenvoke/laravel-arionum
- Owner: owenvoke
- License: mit
- Created: 2019-08-29T11:19:25.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-06T10:49:53.000Z (over 3 years ago)
- Last Synced: 2024-05-03T04:02:18.912Z (8 months ago)
- Topics: api, api-client, arionum, composer, laravel, php
- Language: PHP
- Homepage: https://packagist.org/packages/owenvoke/laravel-arionum
- Size: 67.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel Arionum
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-github-actions]][link-github-actions]
[![Style CI][ico-styleci]][link-styleci]
[![Total Downloads][ico-downloads]][link-downloads]
[![Buy us a tree][ico-treeware-gifting]][link-treeware-gifting]A Laravel adapter for the [Arionum PHP wrapper][link-arionum-php].
## Install
Via Composer
```bash
$ composer require owenvoke/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.
```php
// Resolving from the app container
app(\OwenVoke\Arionum\Arionum::class)->getNodeInfo();
app('arionum')->getNodeInfo();// Using the facade (with, and without the short alias)
\Arionum::getNodeInfo();
\OwenVoke\LaravelArionum\Facades\Arionum::getNodeInfo();// Type hinting with dependency injection
public function __construct(\OwenVoke\Arionum\Arionum $arionum)
{
$arionum->getNodeInfo();
}
```## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Testing
```bash
$ composer test
```## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Owen Voke][link-author]
- [All Contributors][link-contributors]## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
## Treeware
You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.
It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
You can buy trees [here][link-treeware-gifting].
Read more about Treeware at [treeware.earth][link-treeware].
[ico-version]: https://img.shields.io/packagist/v/owenvoke/laravel-arionum.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-github-actions]: https://img.shields.io/github/workflow/status/owenvoke/laravel-arionum/Tests.svg?style=flat-square
[ico-styleci]: https://styleci.io/repos/205146498/shield
[ico-downloads]: https://img.shields.io/packagist/dt/owenvoke/laravel-arionum.svg?style=flat-square
[ico-treeware-gifting]: https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen?style=flat-square[link-packagist]: https://packagist.org/packages/owenvoke/laravel-arionum
[link-github-actions]: https://github.com/owenvoke/laravel-arionum/actions
[link-styleci]: https://styleci.io/repos/205146498
[link-downloads]: https://packagist.org/packages/owenvoke/laravel-arionum
[link-arionum-php]: https://github.com/owenvoke/arionum-php
[link-treeware]: https://treeware.earth
[link-treeware-gifting]: https://ecologi.com/owenvoke?gift-trees
[link-author]: https://github.com/owenvoke
[link-contributors]: ../../contributors