PHPackages                             php-lightning/lnaddress - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-lightning/lnaddress

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

php-lightning/lnaddress
=======================

0.8.0(11mo ago)23503MITPHPPHP &gt;=8.2CI passing

Since Mar 31Pushed 11mo ago3 watchersCompare

[ Source](https://github.com/php-lightning/lnaddress)[ Packagist](https://packagist.org/packages/php-lightning/lnaddress)[ Fund](https://chemaclass.com/sponsor)[ RSS](/packages/php-lightning-lnaddress/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (11)Versions (8)Used By (0)

PHP Lightning Address
=====================

[](#php-lightning-address)

PHP Lightning Address is an easy way to get a [lightning address](https://lightningaddress.com/) in PHP.

 [ ![GitHub Build Status](https://github.com/php-lightning/lnaddress/workflows/CI/badge.svg) ](https://github.com/php-lightning/lnaddress/actions) [ ![Scrutinizer Code Quality](https://camo.githubusercontent.com/a25316f6bb7aaeb43fafa06b37e86d6505a5d75cdf369d13040fb254c93a9852/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068702d6c696768746e696e672f6c6e616464726573732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e) ](https://scrutinizer-ci.com/g/php-lightning/lnaddress/?branch=main) [ ![Scrutinizer Code Coverage](https://camo.githubusercontent.com/ac6a565cd8e9e756bbd59767ffcf91dd65f52f9184aab1e7543c827461200203/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068702d6c696768746e696e672f6c6e616464726573732f6261646765732f636f7665726167652e706e673f623d6d61696e) ](https://scrutinizer-ci.com/g/php-lightning/lnaddress/?branch=main) [ ![Psalm Type-coverage Status](https://camo.githubusercontent.com/6d31f8412436ff0685e80e9c4f77f8ccd1ef65060ec6208dffa8e26391b635aa/68747470733a2f2f73686570686572642e6465762f6769746875622f7068702d6c696768746e696e672f6c6e616464726573732f636f7665726167652e737667) ](https://shepherd.dev/github/php-lightning/lnaddress) [ ![MIT Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667) ](https://github.com/php-lightning/lnaddress/blob/master/LICENSE)

Usage / Development
-------------------

[](#usage--development)

Set up your custom config:

```
cp lightning-config.dist.php lightning-config.php
# or just simply the nostr.json to define the backends/user-settings
cp nostr.dist.json nostr.json
```

You can customize the invoice description and the success message by editing `lightning-config.php`:

```
use PhpLightning\Config\LightningConfig;

return (new LightningConfig())
    ->setDescriptionTemplate('Pay to %s on mynode')
    ->setSuccessMessage('Thanks for the payment!');
```

Run a local PHP server listening `public/index.php`

```
composer serve
```

### Demo template

[](#demo-template)

We prepared a demo template, so you can use this project as a dependency. The benefits from this approach is that you can update your project with `composer update` whenever there are new features or improvements on this `lnaddress` repository.

>

Wiki
----

[](#wiki)

Check the wiki for more details:

Contributions
-------------

[](#contributions)

Feel free to open issues &amp; PR if you want to contribute to this project.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance50

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.7% 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.

###  Release Activity

Cadence

Every ~131 days

Recently: every ~195 days

Total

7

Last Release

358d ago

PHP version history (3 changes)0.2.0PHP &gt;=8.0

0.5.0PHP &gt;=8.0.2

0.8.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d166420c6770c5941e10bd68b2d26501eabb432e280d8e6eba0a344bcc1e5ae?d=identicon)[Chemaclass](/maintainers/Chemaclass)

---

Top Contributors

[![Chemaclass](https://avatars.githubusercontent.com/u/5256287?v=4)](https://github.com/Chemaclass "Chemaclass (156 commits)")[![Bashy](https://avatars.githubusercontent.com/u/540518?v=4)](https://github.com/Bashy "Bashy (13 commits)")[![JesusValeraDev](https://avatars.githubusercontent.com/u/6381924?v=4)](https://github.com/JesusValeraDev "JesusValeraDev (5 commits)")

---

Tags

bitcoinlightning-addresslightning-networklnphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/php-lightning-lnaddress/health.svg)

```
[![Health](https://phpackages.com/badges/php-lightning-lnaddress/health.svg)](https://phpackages.com/packages/php-lightning-lnaddress)
```

###  Alternatives

[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)[symfony/ai-agent

PHP library for building agentic applications.

30536.7k44](/packages/symfony-ai-agent)[pixelopen/cloudflare-turnstile-bundle

A simple package to help integrate Cloudflare Turnstile on Symfony.

31205.8k3](/packages/pixelopen-cloudflare-turnstile-bundle)

PHPackages © 2026

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