New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

reliqarts/laravel-common

Reliq Arts' base/common classes and functions for Laravel.
4,441 2
Install
composer require reliqarts/laravel-common
Latest Version:v9.0.0
PHP:^8.2
Laravel:12 · 13
Older releases:5 – 11
License:MIT
Last Updated:Oct 20, 2026
Links: GitHub  ·  Packagist
Maintainer: Reliq

Laravel Common

Reliq Arts' base/common classes and functions for Laravel 12 and 13.

Built For Laravel Test Maintainability Codecov License Latest Stable Version Latest Unstable Version

Features/Contents

  • Config provider implementation
    • uses Illuminate\Contracts\Config\Repository
    • allows easy access to config keys under specific (package) 'namespace'
  • Illuminate\Filesystem implementation
    • Specifically changing the behaviour of deleteDirectory()
  • Monolog Logger
  • Result Object (simple DTO)
  • Version Provider
  • Sitemap generation command
  • NonWWW middleware: Tiny middleware to redirect all www requests to non-www counterparts.

Installation & Use

Install via composer:

composer require reliqarts/laravel-common

Add service provider:

ReliqArts\ServiceProvider::class,

Use anywhere throughout your application. e.g.

$versionProvider = resolve(ReliqArts\Contract\VersionProvider::class);
$versionProvider->getVersion();

Use NonWWW middleware in Kernel. i.e.

'web' => [
    // ...

    \ReliqArts\NonWWW\Http\Middleware\NonWWW::class,

    // ...
],

All done! :beers:

Related Packages

mossengine/helpersarray

A PHP sub library for the Mossengine/Helper library that provides Array helper f...

1,842 0
mossengine/helpersstatement

A PHP sub library for the Mossengine/Helper library that provides Statement help...

1,841 0
sven/helpers

A collection of useful helper functions for in Laravel applications.

13 20
aurion72/helpers

Aurion72 Helpers

14,667 0

Version History

Version Released PHP Laravel License
v9.0.0 ^8.2 ^12.0 || ^13.0 MIT
v8.0.4 ^8.2 ^11.0||^12.0 MIT
v8.0.3 ^8.2 ^11.0 MIT
v8.0.2 ^8.2 ^11.0 MIT
v8.0.1 ^8.2 ^11.0 MIT
Pre-releases (7)
Version Released PHP Laravel License
v5.0.0-beta.3 ^7.4 ^5.7|^6.0 MIT
v5.0.0-beta.2 ^7.4 ^5.7|^6.0 MIT
v5.0.0-beta.1 ^7.4 ^5.7|^6.0 MIT
v5.0.0-beta ^7.2 ^5.7|^6.0 MIT
v2.0.0-beta >=7.1.3 ^5.7 MIT