madpilot78 / laravel-freebox-php
Laravel FreeBoxPHP package
1.1.0
2025-03-03 14:43 UTC
Requires
- php: ^8.3
- illuminate/support: ^11.0 | ^12.0
- madpilot78/freebox-php: ^1.1.0
- psr/log: ^3.0
- symfony/cache: ^7.1
Requires (Dev)
- ergebnis/composer-normalize: ^2.42
- friendsofphp/php-cs-fixer: ^3.54
- illuminate/testing: ^11.0 | ^12.0
- madpilot78/php-cs-fixer-config: ^1.0
- orchestra/testbench: ^9.2 | ^10.0
- phpstan/phpstan: ^2.1
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^11 | ^12
README
Package to use FreeBoxPHP library to access you FreeBox/IliadBox from Laravel apps.
Install
Using composer:
composer require madpilot78/Laravel-FreeBoxPHP
Usage
This package provides in laravel a madpilot78\FreeBoxPHP\Box
class that can be
injected in controllers.
Otherwise it can be instantiated via the Laravel Service Container like this:
namespace App\Repositories; use Illuminate\Support\Facades\App; use madpilot78\FreeBoxPHP\Box; class RouterRepository { private Box $box; public function __construct() { $this->box = App::make(Box::class); if (empty($this->box->getBoxInfo())) { $this->box->discover(); } } /* ... */ }
Refer to FreeBoxPHP for details on how to use the underlying library.