reliqarts/laravel-common
Laravel Common
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! :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
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v8.0.4 | ^8.2 | ^11.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 | |
| v7.0.2 | ^8.2 | ^8.0 | | MIT | |
| v7.0.1 | ^8.2 | ^8.0 | | MIT | |
| v7.0.0 | ^8.2 | ^8.0 | | MIT | |
| v6.3.2 | ^8.0 | ^8.0 | | MIT | |
| v6.3.1 | ^8.0 | ^8.0 | | MIT | |
| v6.3.0 | ^8.0 | ^8.0 | | MIT | |
| v6.2.4 | ^8.0 | ^8.0 | | MIT | |
| v6.2.3 | ^8.0 | ^8.0 | | MIT | |
| v6.2.2 | ^8.0 | ^8.0 | | MIT | |
| v6.2.1 | ^8.0 | ^8.0 | | MIT | |
| v6.2.0 | ^8.0 | ^8.0 | | MIT | |
| v6.1.0 | ^8.0 | ^8.0 | | MIT | |
| v6.0.2 | ^8.0 | ^8.0 | | MIT | |
| v6.0.1 | ^8.0 | ^8.0 | | MIT | |
| v6.0.0 | ^8.0 | ^8.0 | MIT | |
| v5.7.0 | ^7.4 | | 6 - 8 | MIT | |
| v5.6.0 | ^7.4 | 6 - 8 | MIT | |
| v5.5.0 | ^7.4 | 6 - 8 | MIT | |
| v5.4.0 | ^7.4 | 6 - 8 | MIT | |
| v5.3.3 | ^7.4 | 6 - 7 | MIT | |
| v5.3.2 | ^7.4 | 6 - 7 | MIT | |
| v5.3.1 | ^7.4 | 6 - 7 | MIT | |
| v5.3.0 | ^7.4 | 6 - 7 | MIT | |
| v5.2.0 | ^7.4 | 6 - 7 | MIT | |
| v5.1.0 | ^7.4 | 6 - 7 | MIT |
Showing the latest 30 of 49. See every release on Packagist
Pre-releases (7)
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v5.0.0-beta.3 | ^7.4 | ^5.7| | MIT | |
| v5.0.0-beta.2 | ^7.4 | ^5.7| | MIT | |
| v5.0.0-beta.1 | ^7.4 | ^5.7| | MIT | |
| v5.0.0-beta | ^7.2 | ^5.7| | MIT | |
| v2.0.0-beta | >=7.1.3 | ^5.7 | MIT | |
| v1.0.0-beta.1 | >=5.6.4 | 5.* | MIT | |
| v1.0.0-beta | >=5.6.4 | 5.* | MIT |