Search by

datalogix / laravel-utils

ricardogobbosouza

A Laravel package that provides a set of useful utilities and service providers to enhance your application.

Package info

github.com/datalogix/laravel-utils

pkg:composer/datalogix/laravel-utils

Statistics

Installs: 1 171

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

v6.1.0 2026-11-10 16:50 UTC

README

Latest Stable Version Total Downloads ci codecov License

A Laravel package that provides a set of useful utilities and service providers to enhance your application.

Requirements

  • PHP 8.2 or higher
  • Laravel 12 or 13

Installation

You can install the package via composer:

composer require datalogix/laravel-utils

The package will automatically register itself.

Features

These features work out of the box, with no additional configuration:

  • 🌍 Multi-language support: Laravel's built-in translations (auth, pagination, passwords, validation and JSON strings) for English (en) and Brazilian Portuguese (pt_BR). They are loaded automatically, and any key your application defines in its own lang/ folder takes precedence. Translations for Respect Validation rules and error pages are provided by their own packages.
  • ✔️ Respect Validation integration: Respect Validation rules through datalogix/laravel-validation, with zero setup.
  • 🧠 Query builder macros: reusable macros for cleaner, more expressive queries, powered by datalogix/laravel-builder-macros.
  • 🧩 Sensible defaults: opinionated, production-ready defaults for performance, security and testability, powered by datalogix/laravel-sensible.
  • 🚨 Error pages: ready-to-use, customizable error pages, powered by datalogix/laravel-error-pages.

Helpers

statesBR(); // ['AC' => 'Acre', 'AL' => 'Alagoas', ..., 'TO' => 'Tocantins']

Translations

To customize the translations, publish them:

php artisan vendor:publish --tag="laravel-utils-lang"

This copies the package's whole lang folder into your application's lang/ folder. Published keys take precedence over the package and no longer receive its updates; keys added to the package later are still loaded from it. Existing files are not overwritten; use --force to replace them (this discards your edits).

Note

The lang tag still works but is deprecated and will be removed in the next major version. Use laravel-utils-lang instead.

Translations shipped by the bundled packages are published through their own tags:

php artisan vendor:publish --tag="laravel-validation-lang"
php artisan vendor:publish --tag="error-pages-lang"

Changelog

See GitHub Releases.

License

The MIT License (MIT). See LICENSE.