reliqarts / laravel-common
Reliq Arts' base/common classes and functions for Laravel.
v8.0.4
2025-03-18 10:55 UTC
Requires
- php: ^8.2
- ext-json: *
- anhskohbo/no-captcha: ^3.1||dev-master
- illuminate/support: ^11.0||^12.0
- monolog/monolog: ^3.5
- spatie/laravel-sitemap: ^7.0
Requires (Dev)
- laravel/pint: ^1.13
- orchestra/testbench: ^9.0||^10.0
- phpro/grumphp: ^2.0
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^11.0
- roave/security-advisories: dev-latest
- yieldstudio/grumphp-laravel-pint: ^1.0
Replaces
This package is auto-updated.
Last update: 2026-05-19 14:32:13 UTC
README
Reliq Arts' base/common classes and functions for Laravel 6+.
Features/Contents
- Config provider implementation
- uses
Illuminate\Contracts\Config\Repository - allows easy access to config keys under specific (package) 'namespace'
- uses
Illuminate\Filesystemimplementation- Specifically changing the behaviour of
deleteDirectory()
- Specifically changing the behaviour of
- Monolog Logger
- Result Object (simple DTO)
- Version Provider
- Sitemap generation command
- via Spatie's Laravel Sitemap
- 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! 🍻