cryptoqo / laraimp
CoinImp integration for Laravel
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ^6.2
This package is auto-updated.
Last update: 2024-04-29 03:12:55 UTC
README
An easy CoinImp implementation for your Laravel 5.6+ application.
CoinImp
CoinImp's Documentation.
You'll also need a CoinImp Site Key, which you can retrieve by signing up and creating an account for your website.
Install
You can install the package via Composer:
composer require cryptoqo/laraimp
In Laravel 5.5 and up, the package will automatically register the service provider and facade
// config/app.php 'providers' => [ ... Cryptoqo\LaraImp\LaraImpServiceProvider::class, ], 'aliases' => [ ... "LaraImp": Cryptoqo\LaraImp\LaraImpFacade::class, ],
The facade is optional, but the rest of this guide assumes you're using the facade.
Next, publish the config files:
php artisan vendor:publish --provider="Cryptoqo\LaraImp\LaraImpServiceProvider" --tag="config"
Optionally publish the view files. Recommended if you want to add extra implementations.
php artisan vendor:publish --provider="Cryptoqo\LaraImp\LaraImpServiceProvider" --tag="views"
Usage
Basic Example
First you'll need to include LaraImp's script. Put it before closing body tag.
{{-- layout.blade.php --}}
<html>
{{-- ... --}}
<body>
{{-- ... --}}
@include('laraimp::script')
</body>
</html>
Support me
XMR : 47p7WRXi7fnXLk4TVfKuxJ5SaWQQFwrfhLXnKXYxTcutZZNLGZt931pjTKU3n1dEW8TzzRJLtHsrsKQRtypdugyZU6Dk5Gw WEB : 0x64d2a0c34896a966068b56564747f3135e7fba40
License
The MIT License (MIT). Please see License File for more information.