reliqarts/laravel-common

Reliq Arts' base/common classes and functions for Laravel.
4,367 2
Install
composer require reliqarts/laravel-common
Latest Version:v8.0.4
PHP:^8.2
License:MIT
Last Updated:Mar 19, 2025
Links: GitHub  ·  Packagist
Maintainer: Reliq

Laravel Common

Reliq Arts' base/common classes and functions for Laravel 6+.

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
ronasit/laravel-helpers

Provided helpers function and some helper class.

90,389 20

Version History

Version Released PHP Laravel License
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
v8.0.0 ^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