Skip to content

An easy CoinImp implementation for your Laravel 5 application.

License

Notifications You must be signed in to change notification settings

cryptoqo/LaraIMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaraImp - CoinImp Implementation for Laravel

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.