PHPackages                             caiocesar173/laravel-utils - 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. caiocesar173/laravel-utils

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

caiocesar173/laravel-utils
==========================

Utils Laravel Package

067PHP

Since Oct 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Caiocesar173/laravel-utils)[ Packagist](https://packagist.org/packages/caiocesar173/laravel-utils)[ RSS](/packages/caiocesar173-laravel-utils/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (35)Used By (0)

 [![GitHub Readme Stats](https://camo.githubusercontent.com/db82ad7e01c5fc8655f1d26e1cafbeaacafec2d1b04ca26e036c00fc4c0eaa30/68747470733a2f2f6361636f6465732e636f6d2e62722f696d672f6c6f676f2f6c6f676f2e737667)](https://camo.githubusercontent.com/db82ad7e01c5fc8655f1d26e1cafbeaacafec2d1b04ca26e036c00fc4c0eaa30/68747470733a2f2f6361636f6465732e636f6d2e62722f696d672f6c6f676f2f6c6f676f2e737667)

Laravel Utils
=============

[](#laravel-utils)

---

This is a Laravel package which created to make your life easier. The package comes with most of everything you may need for develop large applications with less effort.

Considerations
--------------

[](#considerations)

- **Laravel Utils** comes with [`laravel-passport`](https://laravel.com/docs/passport) already setup.
- Login and CRUD for the User is implemented whith route middlewares.
- Permission system is implemented whith route middlewares.
- **Laravel Utils** comes with a status system defined.

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

[](#installation)

1. Install the package via composer:

    ```
    composer require caiocesar173/laravel-utils
    ```
2. Publish owenit via the following command:

    ```
    php artisan vendor:publish --provider "OwenIt\Auditing\AuditingServiceProvider" --tag="config"
    ```
3. On your `config/auth` add the gurad api and place his driver as passport:

    ```
    'guards' => [
        ...
        'api' => [
            'driver' => 'passport',
            'provider' => 'users',
        ],
    ],
    ```
4. On your `config/auth` inside providers replace de default User Model (App\\Models\\User::class):

    ```
    'providers' => [
        ...
        'users' => [
            'driver' => 'eloquent',
            'model' => Caiocesar173\Utils\Entities\User::class,
        ],
    ],
    ```
5. Execute migrations via the following command:

    ```
    php artisan migrate
    ```
6. Setup [`laravel-passport`](https://laravel.com/docs/passport) via the following command:

    ```
    php artisan passport:install
    ```
7. Seed the database via the following command:

    ```
    php artisan db:seed
    ```
8. Done!

Language
--------

[](#language)

Additionally, the package comes with the [`laravel-pt-BR-localization`](https://github.com/lucascudo/laravel-pt-BR-localization) language support. To install it, just do:

1. Publish the translation

    ```
    php artisan vendor:publish --tag=laravel-pt-br-localization
    ```
2. On your `config/app.php` in `locale` replace de default `en` with:

    ```
    'locale' => 'pt-BR',
    ```
3. On your `config/app.php` in `timezone` replace de default `UTC` with:

    ```
    'timezone' => 'America/Sao_Paulo',
    ```
4. Done!

Social Login
============

[](#social-login)

On your `config/services` add the provider api and place his driver as passport:

```
'provider_name' => [
    client_id => env(PROVIDER_NAME_CLIENT_ID),
    client_secret => env(PROVIDER_NAME_CLIENT_SECRET),
    redirect => env(PROVIDER_NAME_URL_CALLBACK),
],
```

Envirement Varibles
===================

[](#envirement-varibles)

The Varibles accepted on `.env`:

```
    #In case you olny want to use the classes inside the package set the UTILS_ONLY_CLASSES=TRUE
    UTILS_ONLY_CLASSES = FALSE
    UTILS_GEOLOC_ENABLE = TRUE #GeoLoc: locatins, coins, language and internet and phone zones

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/043b4ce013bbf2096a006bc0e2addef9a30127019c4af8eeaa1e0f522d424cc0?d=identicon)[cacesa626](/maintainers/cacesa626)

---

Top Contributors

[![Caiocesar173](https://avatars.githubusercontent.com/u/29044431?v=4)](https://github.com/Caiocesar173 "Caiocesar173 (97 commits)")

---

Tags

authenticationlaravelpermissionsstableutils

### Embed Badge

![Health badge](/badges/caiocesar173-laravel-utils/health.svg)

```
[![Health](https://phpackages.com/badges/caiocesar173-laravel-utils/health.svg)](https://phpackages.com/packages/caiocesar173-laravel-utils)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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