PHPackages                             hillus/sin-ticketing-client - 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. hillus/sin-ticketing-client

ActiveLibrary[API Development](/categories/api)

hillus/sin-ticketing-client
===========================

Cliente Sin-Ticketing

v1.0.4(1y ago)02.9k1MITPHPPHP ^8.1.2

Since Nov 16Pushed 1y ago3 watchersCompare

[ Source](https://github.com/sinsolution/sin-ticketing-client)[ Packagist](https://packagist.org/packages/hillus/sin-ticketing-client)[ RSS](/packages/hillus-sin-ticketing-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (7)Used By (0)

Sin-Ticketing Client for Laravel
--------------------------------

[](#sin-ticketing-client-for-laravel)

### Laravel SDK client for [Sin-Ticketing](https://sinticketing.sinsolution.com.br)

[](#laravel-sdk-client-for-sin-ticketing)

Require this package in your composer.json and update composer. This will download the package and the dompdf + fontlib libraries also.

```
composer require hillus/sin-ticketing-client

```

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

[](#installation)

### Laravel 5.x:

[](#laravel-5x)

Depois de atualizar o composer, altere o arquivo config/app.php e na lista de providers adicione o arquivo ServiceProvider

```
Hillus\SinTicketingClient\ServiceProvider::class,

```

Você também pode adicionar a fachada, colocando no array aliases dentro de config/app.php

```
'SinTicketingClient' => Hillus\SinTicketingClient\Facade::class,

```

### Lumen:

[](#lumen)

Depois de atualizar o composer adicione a linha baixo para registrar o proviver em bootstrap/app.php

$app-&gt;register(\\Hillus\\SinTicketingClient\\ServiceProvider::class);

Para alterar a configuração, copie o arquivo config para a sua pasta config e habilite no arquivo bootstrap/app.php:

$app-&gt;configure('sinTicketing');

Using

Métodos
-------

[](#métodos)

- **SinTicketingClient::login()** - Realiza a autenticação com API retornando o JWT Token
- **SinTicketingClient::storeUsuario()** - Realiza inclusão de um novo usuário
- **SinTicketingClient::getUsuarios()** - Retorna lista de usuários do período atual
- **SinTicketingClient::deleteUsuarios()** - Remove os usuarios por projeto e periodo
- **SinTicketingClient::getUsoIntegracao()** - Retorna lista de uso da integracao por projeto e periodo

Using
-----

[](#using)

Você pode receber uma instancia do cliente a partir do exemplo abaixo

```
    $client = App::make('sinticketing');
    $res = $client->storeUsuario([...]);
    return $res;
```

Ou você pode usar a fachada:

```
    $res = SinTicketingClient::login();
    return $res->json()->accessToken;
```

Para os métodos de storeUsuario, getUsuarios você recebe uma instancia de Hillus\\SinTicketingClient\\Rest\\Response, uma classe que tem os métodos auxiliares status, body, json, heder, headers e erro. Essa classe recebe no seu construtor uma instancia da classe Reponse do Guzzle6.0 por uma questão de compatiblidade com os projetos antigos.

```
    $res = SinTicketingClient::storeUsuario([
        "codigo" => 1,
        "nome" => 'Nome',
        "email" => 'usuario@example.com',
        "status" => 'A',
        "permissao" => 'Administrador',
        "grupoEconomico" => null,
        "criadoEm" => Carbon::now()->format('Y-m-d H:i:s'),
        "atualizadoEm" => Carbon::now()->format('Y-m-d H:i:s')
    ]);

    if($res->status() == 201){
        $this->info($res->json()->id);
    }else if($res->status() >= 400){
        $this->error("erro ao processar usuario");
        dump($res->json());
    }
```

Use `php artisan vendor:publish` to create a config file located at `config/sinticketing.php` which will allow you to define local configurations to change some settings (default paper etc). You can also use your ConfigProvider to set certain keys.

### License

[](#license)

This Sin Ticketing Client for Laravel is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance41

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~286 days

Total

5

Last Release

497d ago

PHP version history (2 changes)v1.0.0PHP ^7.1.3

v1.0.4PHP ^8.1.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d10ef85bc169974108804b39409d5929cf4ed6e191c0299a7feaa15f0f36f48?d=identicon)[hillushilbert](/maintainers/hillushilbert)

---

Top Contributors

[![fernando35088](https://avatars.githubusercontent.com/u/79102855?v=4)](https://github.com/fernando35088 "fernando35088 (1 commits)")[![gsavio](https://avatars.githubusercontent.com/u/29316658?v=4)](https://github.com/gsavio "gsavio (1 commits)")[![hillushilbert](https://avatars.githubusercontent.com/u/17234429?v=4)](https://github.com/hillushilbert "hillushilbert (1 commits)")[![luizneves01](https://avatars.githubusercontent.com/u/19174385?v=4)](https://github.com/luizneves01 "luizneves01 (1 commits)")

---

Tags

apiclientlaravelsin-ticketing

### Embed Badge

![Health badge](/badges/hillus-sin-ticketing-client/health.svg)

```
[![Health](https://phpackages.com/badges/hillus-sin-ticketing-client/health.svg)](https://phpackages.com/packages/hillus-sin-ticketing-client)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[devio/pipedrive

Complete Pipedrive API client for PHP and/or Laravel

1691.8M](/packages/devio-pipedrive)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)

PHPackages © 2026

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