reliqarts / laravel-common
Reliq Arts' base/common classes and functions for Laravel.
Installs: 2 998
Dependents: 8
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^8.2
- ext-json: *
- anhskohbo/no-captcha: ^3.1||dev-master
- illuminate/support: ^11.0
- monolog/monolog: ^3.5
- spatie/laravel-sitemap: ^7.0
Requires (Dev)
- laravel/pint: ^1.13
- orchestra/testbench: ^9.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
- dev-main
- v8.0.3
- v8.0.2
- v8.0.1
- v8.0.0
- 7.x-dev
- v7.0.2
- v7.0.1
- v7.0.0
- 6.x-dev
- v6.3.2
- v6.3.1
- v6.3.0
- v6.2.4
- v6.2.3
- v6.2.2
- v6.2.1
- v6.2.0
- v6.1.0
- v6.0.2
- v6.0.1
- v6.0.0
- v5.7.0
- v5.6.0
- v5.5.0
- v5.4.0
- v5.3.3
- v5.3.2
- v5.3.1
- v5.3.0
- v5.2.0
- v5.1.0
- v5.0.1
- v5.0.0
- v5.0.0-beta.3
- v5.0.0-beta.2
- v5.0.0-beta.1
- v5.0.0-beta
- 4.x-dev
- v4.0.1
- v4.0.0
- v3.0.0
- v2.2.0
- v2.1.0
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v2.0.0-beta
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v1.0.0-beta.1
- v1.0.0-beta
This package is auto-updated.
Last update: 2024-10-23 15:50:17 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\Filesystem
implementation- 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! 🍻