reliqarts/laravel-common

Reliq Arts' base/common classes and functions for Laravel.
4,359 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

deeplink/common

Contains All the common Laravel 5.3 Helpers. Including Push Notification Provide...

15 2
lsrur/toolbelt

Set of PHP helper functions wrapped for Laravel.

40,571 2
kun391/laravel-helpers

Laravel Helpers for Non-Laravel Projects

6,469 2
rappasoft/laravel-helpers

Laravel Helpers for Non-Laravel Projects

701,269 277