PHPackages                             reliqarts/laravel-common - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. reliqarts/laravel-common

ActivePackage[Utility &amp; Helpers](/categories/utility)

reliqarts/laravel-common
========================

Reliq Arts' base/common classes and functions for Laravel.

v8.0.4(1y ago)24.3k↓49.3%7MITPHPPHP ^8.2CI failing

Since Sep 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/reliqarts/laravel-common)[ Packagist](https://packagist.org/packages/reliqarts/laravel-common)[ RSS](/packages/reliqarts-laravel-common/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (11)Versions (60)Used By (7)

Laravel Common
==============

[](#laravel-common)

Reliq Arts' base/common classes and functions for Laravel 6+.

[![Built For Laravel](https://camo.githubusercontent.com/5eeeef36666bf2aefe6800cfd097832e37f96e2d2f2b944baf4744637b05c4c9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c74253230666f722d6c61726176656c2d7265642e7376673f7374796c653d666c61742d737175617265)](http://laravel.com)[![Test](https://github.com/reliqarts/laravel-common/actions/workflows/test.yml/badge.svg)](https://github.com/reliqarts/laravel-common/actions/workflows/test.yml)[![Maintainability](https://camo.githubusercontent.com/e737614bbc601aedfc87fbacd59569ebd4c96c07702599929957d6021c9d7295/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65376236383462363930336335666335626133342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/reliqarts/laravel-common/maintainability)[![Codecov](https://camo.githubusercontent.com/e654c5d3e272c4ce2477a016ba696afc5c64127b4e440a2589db1384d0a4af07/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f72656c6971617274732f6c61726176656c2d636f6d6d6f6e2e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/reliqarts/laravel-common)[![License](https://camo.githubusercontent.com/69682d5452c590956f4ef390b3627edbbbb4269cce41a74af4cb59e03a7614a5/68747470733a2f2f706f7365722e707567782e6f72672f72656c6971617274732f6c61726176656c2d636f6d6d6f6e2f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/reliqarts/laravel-common)[![Latest Stable Version](https://camo.githubusercontent.com/27a11a45bf51fb8967de8550f02f692a75a48dd4710c2068b9b0ee37a834934e/68747470733a2f2f706f7365722e707567782e6f72672f72656c6971617274732f6c61726176656c2d636f6d6d6f6e2f76657273696f6e3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/reliqarts/laravel-common)[![Latest Unstable Version](https://camo.githubusercontent.com/5bc042bfc31adb8e3c9debaf881eee05ecb9be705662554c23b368243079c086/68747470733a2f2f706f7365722e707567782e6f72672f72656c6971617274732f6c61726176656c2d636f6d6d6f6e2f762f756e737461626c653f666f726d61743d666c61742d737175617265)](//packagist.org/packages/reliqarts/laravel-common)

Features/Contents
-----------------

[](#featurescontents)

- Config provider implementation
    - uses `Illuminate\Contracts\Config\Repository`
    - allows easy access to config keys under specific (package) 'namespace'
- `Illuminate\Filesystem` implementation
    - Specifically changing the behaviour of `deleteDirectory()`
- [Monolog](https://github.com/Seldaek/monolog) Logger
- Result Object (simple DTO)
- Version Provider
- Sitemap generation command
    - via Spatie's [Laravel Sitemap](https://github.com/spatie/laravel-sitemap)
- NonWWW middleware: Tiny middleware to redirect all www requests to non-www counterparts.

Installation &amp; Use
----------------------

[](#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! 🍻

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance42

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~47 days

Recently: every ~90 days

Total

59

Last Release

473d ago

Major Versions

v5.7.0 → v6.0.02021-06-26

v6.3.1 → v7.0.02023-09-25

v7.0.1 → v8.0.02024-03-16

6.x-dev → 7.x-dev2024-03-22

v7.0.2 → v8.0.12024-03-22

PHP version history (7 changes)v1.0.0-betaPHP &gt;=5.6.4

v2.0.0-betaPHP &gt;=7.1.3

v2.1.0PHP ^7.2

v5.0.0-beta.1PHP ^7.4

v5.7.0PHP ^7.4 || ^8.0

v6.0.0PHP ^8.0

v7.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6fe8ddd9e024531dab6ec959ec29afc5cca84bb2129dc5405ff8f443bb19672?d=identicon)[Reliq](/maintainers/Reliq)

---

Top Contributors

[![reliq](https://avatars.githubusercontent.com/u/2624812?v=4)](https://github.com/reliq "reliq (140 commits)")

---

Tags

basecommonlaravelnon-wwwredirectreliqartssharedwwwlaravelhelperscommonSimplebasefunctionsglobal

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/reliqarts-laravel-common/health.svg)

```
[![Health](https://phpackages.com/badges/reliqarts-laravel-common/health.svg)](https://phpackages.com/packages/reliqarts-laravel-common)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
