PHPackages                             uendel-silveira/api-connection - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. uendel-silveira/api-connection

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

uendel-silveira/api-connection
==============================

Pacote de autenticação API para Laravel usando Passport

v1.0.0(5mo ago)00MITPHPPHP ^8.2CI passing

Since Nov 18Pushed 5mo agoCompare

[ Source](https://github.com/uendelsilveira/api-connection)[ Packagist](https://packagist.org/packages/uendel-silveira/api-connection)[ RSS](/packages/uendel-silveira-api-connection/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Laravel API Connection
======================

[](#laravel-api-connection)

[![Latest Version](https://camo.githubusercontent.com/463badd01f4ea7efd48f2a683517e4defabc6afca14ef53c8edc05691bf6353e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f75656e64656c2d73696c76656972612f6170692d636f6e6e656374696f6e2e737667)](https://packagist.org/packages/uendel-silveira/api-connection)[![Total Downloads](https://camo.githubusercontent.com/01b14ff76d22e7a52cef96186407c1896acaac8d0862f7ad8170c2c0708b2d20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f75656e64656c2d73696c76656972612f6170692d636f6e6e656374696f6e2e737667)](https://packagist.org/packages/uendel-silveira/api-connection)[![License](https://camo.githubusercontent.com/cff14edc798be4a1abe16502755599ef47b8fd861c5a429117406e770d61e4cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f75656e64656c2d73696c76656972612f6170692d636f6e6e656374696f6e2e737667)](https://packagist.org/packages/uendel-silveira/api-connection)

Pacote Laravel para autenticação e conexão de APIs usando Laravel Passport com OAuth2.

Requisitos
----------

[](#requisitos)

- PHP 8.2 ou superior
- Laravel 10.x ou 11.x
- Laravel Passport 12.x

Instalação
----------

[](#instalação)

Instale o pacote via Composer:

```
composer require uendel-silveira/api-connection
```

O service provider será automaticamente registrado.

### Publicar Configurações

[](#publicar-configurações)

Publique os arquivos de configuração:

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

Publique as migrations:

```
php artisan vendor:publish --tag=auth-api-migrations
```

Execute as migrations:

```
php artisan migrate
```

Configuração
------------

[](#configuração)

Após publicar as configurações, edite o arquivo `config/auth-api.php` conforme necessário.

Configure suas variáveis de ambiente no arquivo `.env`:

```
# Adicione as configurações necessárias
```

Uso
---

[](#uso)

### Básico

[](#básico)

```
// Exemplo de uso do pacote
```

Testes
------

[](#testes)

Execute os testes com:

```
composer test
```

Para gerar relatório de cobertura:

```
composer test-coverage
```

Contribuindo
------------

[](#contribuindo)

Contribuições são bem-vindas! Por favor, sinta-se à vontade para enviar um Pull Request.

### Processo de Contribuição

[](#processo-de-contribuição)

1. Fork o projeto
2. Crie uma branch para sua feature (`git checkout -b feature/AmazingFeature`)
3. Commit suas mudanças (`git commit -m 'Add some AmazingFeature'`)
4. Push para a branch (`git push origin feature/AmazingFeature`)
5. Abra um Pull Request

Segurança
---------

[](#segurança)

Se você descobrir algum problema de segurança, por favor envie um e-mail para \[\] ao invés de usar o issue tracker.

Créditos
--------

[](#créditos)

- [Uendel Silveira](https://github.com/uendel-silveira)
- [Todos os Contribuidores](../../contributors)

Licença
-------

[](#licença)

Este projeto está licenciado sob a Licença MIT - veja o arquivo [LICENSE](LICENSE) para detalhes.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance70

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

175d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9297d8e7fe16b509423d16efb4959688388743af689ddd494cd560806c6366af?d=identicon)[uendelsilveira](/maintainers/uendelsilveira)

---

Top Contributors

[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (2 commits)")

---

Tags

apilaravelAuthenticationoauth2passport

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/uendel-silveira-api-connection/health.svg)

```
[![Health](https://phpackages.com/badges/uendel-silveira-api-connection/health.svg)](https://phpackages.com/packages/uendel-silveira-api-connection)
```

###  Alternatives

[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

55342.3k2](/packages/jeremy379-laravel-openid-connect)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6712.1k2](/packages/hasinhayder-tyro)[wearedevtical/novassport

A Laravel Nova tool to manage API Authentication (Passport).

663.1k](/packages/wearedevtical-novassport)

PHPackages © 2026

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