PHPackages                             majestic/laravel-litecoinrpc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. majestic/laravel-litecoinrpc

ActiveLibrary[HTTP &amp; Networking](/categories/http)

majestic/laravel-litecoinrpc
============================

Litecoin JSON-RPC Service Provider for Laravel

v1.1.2(8y ago)12712MITPHPPHP &gt;=5.6.0

Since Feb 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/majestic84/laravel-litecoinrpc)[ Packagist](https://packagist.org/packages/majestic/laravel-litecoinrpc)[ Docs](https://github.com/majestic84/laravel-litecoinrpc)[ RSS](/packages/majestic-laravel-litecoinrpc/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (5)Versions (6)Used By (0)

Litecoin JSON-RPC Service Provider for Laravel
==============================================

[](#litecoin-json-rpc-service-provider-for-laravel)

About
-----

[](#about)

This package allows you to make JSON-RPC calls to Litecoin Core JSON-RPC server from your laravel project. It's based on [php-litecoinrpc](https://github.com/majestic84/php-litecoinrpc) project - fully unit-tested Litecoin JSON-RPC client powered by GuzzleHttp.

Installation
------------

[](#installation)

Run `php composer.phar require majestic/laravel-litecoinrpc` in your project directory or add following lines to composer.json

```
"require": {
    "majestic/laravel-litecoinrpc": "^1.1"
}
```

and run `php composer.phar update`.

Add `Majestic\Litecoin\Providers\ServiceProvider::class,` line to the providers list somewhere near the bottom of your /config/app.php file.

```
'providers' => [
    ...
    Majestic\Litecoin\Providers\ServiceProvider::class,
];
```

Publish config file by running `php artisan vendor:publish --provider="Majestic\Litecoin\ServiceProvider"` in your project directory.

You might also want to add facade to $aliases array in /config/app.php.

```
'aliases' => [
    ...
    'Litecoind' => Majestic\Litecoin\Facades\Litecoind::class,
];
```

I recommend you to use .env file to configure client. To connect to Litecoin Core you'll need to add at least following parameters

```
LITECOIND_USER=(rpcuser from litecoin.conf)
LITECOIND_PASSWORD=(rpcpassword from litecoin.conf)

```

Requirements
------------

[](#requirements)

- PHP 7.0 or higher (should also work on 5.6, but this is unsupported)
- Laravel 5.1 or higher

Usage
-----

[](#usage)

You can perform request to Litecoin Core using any of methods listed below:

### Helper Function

[](#helper-function)

```
