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.
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
- dev-main
- 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
- dev-develop
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\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! 🍻