Passed
Push — main ( 2f2b55...b4a212 )
by Chema
02:26
created

lightning-config.php (2 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
use PhpLightning\Config\Backend\LnBitsBackendConfig;
6
use PhpLightning\Config\LightningConfig;
7
8
return (new LightningConfig())
9
    ->setMode('test')
10
    ->setDomain('https://your-domain.com')
11
    ->setReceiver('custom-receiver')
12
    ->setMinSendable(100_000)
0 ignored issues
show
The constant 100_000 was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
13
    ->setMaxSendable(10_000_000_000)
0 ignored issues
show
The constant 10_000_000_000 was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
14
    ->addBackend(
15
        (new LnBitsBackendConfig())
16
            ->setApiEndpoint('http://localhost:5000')  // lnbits endpoint : protocol://host:port
17
            ->setApiKey('XYZ'),  // put your lnbits read key here
18
    );
19