PHPackages                             antonsayapin/yclients-laravel-sdk - 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. antonsayapin/yclients-laravel-sdk

ActiveLibrary[API Development](/categories/api)

antonsayapin/yclients-laravel-sdk
=================================

yclients laravel sdk. Fork from Nikitin SDK

010PHP

Since Sep 28Pushed 3y agoCompare

[ Source](https://github.com/AntonSayapin/yclients-laravel-sdk)[ Packagist](https://packagist.org/packages/antonsayapin/yclients-laravel-sdk)[ RSS](/packages/antonsayapin-yclients-laravel-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/8be17aca8a0eb8e2aa390e416b85c581e34b282219e8f78fc00f3c8771bc76d5/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7361796170696e2f79636c69656e74732d6c61726176656c2d73646b2f762f737461626c65)](https://packagist.org/packages/antonsayapin/yclients-laravel-sdk)[![Latest Unstable Version](https://camo.githubusercontent.com/3fb4a1ad422c88a0b5112f5db921226dcefc4017cca71f8a902871b05a0713da/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7361796170696e2f79636c69656e74732d6c61726176656c2d73646b2f762f756e737461626c65)](https://packagist.org/packages/antonsayapin/yclients-laravel-sdk)[![Total Downloads](https://camo.githubusercontent.com/a8522ec490e99c7cb825ffbcf4292a7ba676cb4dcc6714434553b5745791dd73/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7361796170696e2f79636c69656e74732d6c61726176656c2d73646b2f646f776e6c6f616473)](https://packagist.org/packages/antonsayapin/yclients-laravel-sdk)[![License](https://camo.githubusercontent.com/34ea81400ae16a2d5f1fc8e8bbe5c6ad64230d0166265daa8e5cb3742dc73c95/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7361796170696e2f79636c69656e74732d6c61726176656c2d73646b2f6c6963656e7365)](https://packagist.org/packages/antonsayapin/yclients-laravel-sdk)

Laravel YClients SDK
====================

[](#laravel-yclients-sdk)

Install
-------

[](#install)

```
$ composer require antonsayapin/yclients-laravel-sdk
```

**Publish config file**

```
$ php artisan vendor:publish --tag=yclients-laravel-sdk
```

**Laravel 5.5+**

Fork add Laravel 9 requirements. If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
...
 antonsayapin\YClientsSDK\YClientsSDKServiceProvider::class
...
```

**Set configs\\yclients-laravel-sdk**

```
'accounts' => [
     'default' => [
     // Login and password are required to receive USER TOKEN.
     // If you have them you do not have to fill in these fields
     'login' => '',
     'password' => '',
      // Used in all requests and is mandatory
     'bearer_token' => '',
     'user_token' => ''
   ],
]
```

Obtain TOKENS
-------------

[](#obtain-tokens)

**Bearer token** can be recived from yclients support.

To obtain **user token** set login, password and bearer token in configs and run

```
    use antonsayapin\YClientsSDK\Facades\YClientsSDK;
    ...
    YClientsSDK::authorization()->get() // return USER TOKEN
```

Supported API methods
---------------------

[](#supported-api-methods)

- Authorization
- Clients
- Companies
- Goods
- Records
- Salons
- Services
- ServiceCategory
- Staff
- Visits
    - VisitDetails

Examples
--------

[](#examples)

**Clients**

```
use antonsayapin\YClientsSDK\Facades\YClientsSDK;
...
$clients = YClientsSDK::clients()->setCompany($companyId)->get();
```

**Companies**

```
use antonsayapin\YClientsSDK\Facades\YClientsSDK;
...
$companies = YClientsSDK::companies()->setSalonId($salonId)->get();
```

**Goods**

```
use antonsayapin\YClientsSDK\Facades\YClientsSDK;
...
$goods = YClientsSDK::goods()->setCompany($companyId)->get();
```

**Records**

```
use antonsayapin\YClientsSDK\Facades\YClientsSDK;
...
$records = YClientsSDK::records()->setCompany($companyId)->setChangedAfter(Carbon::today())->get();
```

**Groups**

```
use antonsayapin\YClientsSDK\Facades\YClientsSDK;
...
$salons = YClientsSDK::groups()->get();
```

**ServiceCategory**

```
use antonsayapin\YClientsSDK\Facades\YClientsSDK;
...
$serviceCategory = YClientsSDK::serviceCategory()->setCompany($companyId)->get();
```

**Staff**

```
use antonsayapin\YClientsSDK\Facades\YClientsSDK;
...
$staff = YClientsSDK::staff()->setCompany($companyId)->get();
```

**Visits**

```
use antonsayapin\YClientsSDK\Facades\YClientsSDK;
...
$visits = YClientsSDK::visits()->setVisitId($visitId)->get();
```

**VisitDetails**

```
use antonsayapin\YClientsSDK\Facades\YClientsSDK;
...
$visitDetails = YClientsSDK::visitDetails()->setVisitId($visitId)->setSalonId($salonId)->setRecordId($recordId)->get();
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 96.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0392346dda0c6e1bcdfd63ac4421eba1e6509dc50eb140e9931f9ca4400b5db4?d=identicon)[AntonSayapin](/maintainers/AntonSayapin)

---

Top Contributors

[![e-nikitin](https://avatars.githubusercontent.com/u/15894528?v=4)](https://github.com/e-nikitin "e-nikitin (51 commits)")[![AntonSayapin](https://avatars.githubusercontent.com/u/3025576?v=4)](https://github.com/AntonSayapin "AntonSayapin (2 commits)")

### Embed Badge

![Health badge](/badges/antonsayapin-yclients-laravel-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/antonsayapin-yclients-laravel-sdk/health.svg)](https://phpackages.com/packages/antonsayapin-yclients-laravel-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
