PHPackages                             codeofsolomon/laravel-saby-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. codeofsolomon/laravel-saby-api

ActiveLibrary[API Development](/categories/api)

codeofsolomon/laravel-saby-api
==============================

Unofficial Laravel SDK for the Saby API

v1.0.0(9mo ago)114MITPHPPHP ^8.2

Since Jul 16Pushed 9mo agoCompare

[ Source](https://github.com/codeofsolomon/saby-api)[ Packagist](https://packagist.org/packages/codeofsolomon/laravel-saby-api)[ RSS](/packages/codeofsolomon-laravel-saby-api/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (11)Versions (9)Used By (0)

Laravel Saby API
================

[](#laravel-saby-api)

Unofficial Laravel SDK for the Saby API.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 10.x, 11.x, or 12.x
- Composer
- Guzzle HTTP 7.9+
- PSR HTTP Client &amp; PSR HTTP Message

Installation
------------

[](#installation)

Install via Composer:

```
composer require codeofsolomon/laravel-saby-api
```

This package will be auto-discovered by Laravel via the service provider configured in `composer.json`.

Publishing Configuration
------------------------

[](#publishing-configuration)

Publish the configuration file with:

```
php artisan vendor:publish --tag=saby-api-config
```

This creates a `config/saby-api.php` file.

Configuration
-------------

[](#configuration)

In your `.env` file, add the following:

```
SABY_APP_CLIENT_ID=your-client-id
SABY_APP_SECRET=your-app-secret
SABY_SECRET_KEY=your-secret-key
SABY_BASE_URI=https://api.sbis.ru/retail/
SABY_AUTH_URL=https://online.sbis.ru/oauth/service/
SABY_CLOUD_TIMEOUT=20.0
SABY_TOKEN_TTL=3540
SABY_CACHE_STORE=null
```

You can customize other settings in `config/saby-api.php`:

```
