Looking to hire Laravel developers? Try LaraJobs

scrada-for-laravel maintained by masmerise

Description
Laravel framework adapter for the Scrada SDK.
Author
Muhammed Sarı
Last update
2026/04/15 13:03 (dev-master)
License
Downloads
12
Tags

Comments
comments powered by Disqus

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.