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

0.1.0 2025-10-30 10:39 UTC

This package is auto-updated.

Last update: 2025-10-30 10:56:08 UTC


README

Scrada PHP SDK PHP

Build Status Total Downloads Latest Stable Version License

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.