reliqarts / simple-commons
This package is abandoned and no longer maintained.
The author suggests using the reliqarts/laravel-common package instead.
Reliq Arts' base/common classes and functions for Laravel.
Package info
github.com/reliqarts/laravel-simple-commons
Type:package
pkg:composer/reliqarts/simple-commons
v6.0.0
2021-06-26 15:08 UTC
Requires
- php: ^8.0
- ext-json: *
- anhskohbo/no-captcha: ^3.1
- illuminate/support: ^8.0
- monolog/monolog: 1.24 - 2
- spatie/laravel-sitemap: ^6.0
Requires (Dev)
- orchestra/testbench: 6
- phpro/grumphp: ^1.0
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.3
- roave/security-advisories: dev-latest
- symplify/easy-coding-standard: ^8.2
Replaces
This package is auto-updated.
Last update: 2022-02-01 13:09:46 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! 🍻