masmerise / scrada-for-laravel
Laravel framework adapter for the Scrada SDK.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/masmerise/scrada-for-laravel
Requires
- php: ~8.4
- illuminate/contracts: ^12.0
- illuminate/support: ^12.0
- masmerise/scrada-php-sdk: ^0.1.0
- webmozart/assert: ^1.12
Requires (Dev)
- larastan/larastan: ^3.6.1
- laravel/pint: ^1.24
- orchestra/testbench: ^10.6
This package is auto-updated.
Last update: 2025-10-30 10:56:08 UTC
README
Laravel adapter for the Scrada SDK
This package provides convenient access to the Scrada SDK using the Laravel framework.
Installation
You can install the package via composer:
composer require masmerise/scrada-for-laravel
After that, define your scrada credentials inside the config/services.php configuration file:
'scrada' => [ 'api_key' => env('SCRADA_API_KEY'), 'password' => env('SCRADA_PASSWORD'), ],
Usage
$company = scrada()->company->get($id);
$scrada = app('scrada'); $company = $scrada->company->get($id);
use Scrada\Company\Type\Primitive\CompanyId; use Scrada\Scrada; final readonly class CompanyController { private function __construct(private Scrada $scrada) {} public function show(string $id): void { $id = CompanyId::fromString($id); return view('company.show', [ 'company' => $this->scrada->company->get($id), ]); } }
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
If you discover any security related issues, please email support@masmerise.be instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.