PHPackages                             localbitcoin/endpoints - 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. localbitcoin/endpoints

ActiveLibrary

localbitcoin/endpoints
======================

LocalBitcoins -- A library to interact with localbitcoins.com through laravel. localbitcoins.com is a cryptocurrency exchange where anyone can purchase/sell cryptocurrency

00PHP

Since Nov 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/haxxan21/localbitcoins-php-laravel)[ Packagist](https://packagist.org/packages/localbitcoin/endpoints)[ RSS](/packages/localbitcoin-endpoints/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

localbitcoins-php-laravel
=========================

[](#localbitcoins-php-laravel)

Interact with localbitcoins.com usng this package [localbitcoin/endpoints](https://packagist.org/users/haxxan21/)

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

[](#installation)

using composer.json file

Add this to your required dependency object

```
"localbitcoin/endpoints": "*"

```

Or alternatively, through composer dependency manager

```
composer require localbitcoin/endpoints

```

After successfull installation, register the service provider in providers/app.php

```
Localbitcoin\Endpoints\LocalBtcServiceProvider::class,

```

and then,

```
php artisan vendor:publish --provider="Localbitcoin\Endpoints\LocalBtcServiceProvider"

```

It will create a file named localbtc.php inside the config folder. You can directly add your API keys there. But I suggest you to create two environment variables in your .env file as following.

```
API_AUTH_KEY= public key here
API_AUTH_SECRET= private key here

```

Usage
-----

[](#usage)

After installation, you can now use the following namespace to access API methods.

```
use Localbitcoin\Endpoints\Localbtc;

```

and after that Localbtc class can be accessed by instantiating the class object.

```
$localbtc = new Localbtc();

```

Documentation
-------------

[](#documentation)

After instantiating the Localbtc class object, you just need to call methods for different endpoints as

```
$localbtc->Dashboard();

```

Methods follow the following naming conventions. Access them like below. To return all ads of the authenticated user. Here's the url in official documention at [localbitcoins.com](https://localbitcoins.com/api-docs)

```
/api/ads

```

To use the method for advertisements, capitalise the first letter of ads and use the method

```
$localbtc->Ads();

```

In some cases, URL is having a hyphen like

```
/api/ad-get/

```

To resolve this, access the Method like

```
$localbtc->AdGet();

```

In case, there are some missing methods for certain endpoints, to implement the functionality you can use the Query method like this.

```
return $this->Query('api-endpoint-url','','',array(optional-parameters));

```

As for /api/ads-get

```
return $this->Query('/api/ad-get/','','', array('ads'=>$ad_id));

```

Disclaimer
----------

[](#disclaimer)

Pagination isn't tested at this point. Feel free to contribute to this repository.

Contact
-------

[](#contact)

Email me at [](mailto:malikhassan053@gmail.com)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3493f58058e26acc88c0b49347f8140a51cf1c492aea58f79bbc7c5195f9be27?d=identicon)[haxxan21](/maintainers/haxxan21)

---

Top Contributors

[![haxxan21](https://avatars.githubusercontent.com/u/24965012?v=4)](https://github.com/haxxan21 "haxxan21 (13 commits)")

### Embed Badge

![Health badge](/badges/localbitcoin-endpoints/health.svg)

```
[![Health](https://phpackages.com/badges/localbitcoin-endpoints/health.svg)](https://phpackages.com/packages/localbitcoin-endpoints)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
