masmerise/scrada-for-laravel
最新稳定版本:1.0.0
Composer 安装命令:
composer require masmerise/scrada-for-laravel
包简介
Laravel framework adapter for the Scrada SDK.
README 文档
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.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-30