{"id":20121428,"url":"https://github.com/reliqarts/laravel-common","last_synced_at":"2025-10-09T00:12:52.797Z","repository":{"id":43650023,"uuid":"102303172","full_name":"reliqarts/laravel-common","owner":"reliqarts","description":"Reliq Arts' base/common classes and functions for Laravel","archived":false,"fork":false,"pushed_at":"2025-03-19T11:30:01.000Z","size":140,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T14:05:53.296Z","etag":null,"topics":["base","common","laravel","non-www","redirect","reliqarts","shared","www"],"latest_commit_sha":null,"homepage":"https://reliqarts.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reliqarts.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-09-04T00:31:05.000Z","updated_at":"2025-03-19T11:30:05.000Z","dependencies_parsed_at":"2023-01-21T16:15:22.728Z","dependency_job_id":"51384007-5336-43cb-bdc5-86450926d626","html_url":"https://github.com/reliqarts/laravel-common","commit_stats":{"total_commits":96,"total_committers":2,"mean_commits":48.0,"dds":0.28125,"last_synced_commit":"8bc947889450cecc840d6e02eca022df18de4b0b"},"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reliqarts%2Flaravel-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reliqarts%2Flaravel-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reliqarts%2Flaravel-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reliqarts%2Flaravel-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reliqarts","download_url":"https://codeload.github.com/reliqarts/laravel-common/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252712828,"owners_count":21792378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["base","common","laravel","non-www","redirect","reliqarts","shared","www"],"created_at":"2024-11-13T19:29:02.664Z","updated_at":"2025-10-09T00:12:47.762Z","avatar_url":"https://github.com/reliqarts.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Common\n\nReliq Arts' base/common classes and functions for Laravel 6+.\n\n[![Built For Laravel](https://img.shields.io/badge/built%20for-laravel-red.svg?style=flat-square)](http://laravel.com)\n[![Test](https://github.com/reliqarts/laravel-common/actions/workflows/test.yml/badge.svg)](https://github.com/reliqarts/laravel-common/actions/workflows/test.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/e7b684b6903c5fc5ba34/maintainability)](https://codeclimate.com/github/reliqarts/laravel-common/maintainability)\n[![Codecov](https://img.shields.io/codecov/c/github/reliqarts/laravel-common.svg?style=flat-square)](https://codecov.io/gh/reliqarts/laravel-common)\n[![License](https://poser.pugx.org/reliqarts/laravel-common/license?format=flat-square)](https://packagist.org/packages/reliqarts/laravel-common)\n[![Latest Stable Version](https://poser.pugx.org/reliqarts/laravel-common/version?format=flat-square)](https://packagist.org/packages/reliqarts/laravel-common)\n[![Latest Unstable Version](https://poser.pugx.org/reliqarts/laravel-common/v/unstable?format=flat-square)](//packagist.org/packages/reliqarts/laravel-common)\n\n## Features/Contents\n- Config provider implementation\n    - uses `Illuminate\\Contracts\\Config\\Repository`\n    - allows easy access to config keys under specific (package) 'namespace'\n- `Illuminate\\Filesystem` implementation\n    - Specifically changing the behaviour of `deleteDirectory()`\n- [Monolog](https://github.com/Seldaek/monolog) Logger\n- Result Object (simple DTO)\n- Version Provider\n- Sitemap generation command\n    - via Spatie's [Laravel Sitemap](https://github.com/spatie/laravel-sitemap)\n- NonWWW middleware: Tiny middleware to redirect all www requests to non-www counterparts.\n\n## Installation \u0026 Use\n\nInstall via composer:\n\n```php\ncomposer require reliqarts/laravel-common\n```\n\nAdd service provider:\n\n```php\nReliqArts\\ServiceProvider::class,\n```\n\nUse anywhere throughout your application. e.g.\n\n```php\n$versionProvider = resolve(ReliqArts\\Contract\\VersionProvider::class);\n$versionProvider-\u003egetVersion();\n```\nUse NonWWW middleware in Kernel. i.e.\n\n```php\n'web' =\u003e [\n    // ...\n\n    \\ReliqArts\\NonWWW\\Http\\Middleware\\NonWWW::class,\n\n    // ...\n],\n```\n\nAll done! :beers:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freliqarts%2Flaravel-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freliqarts%2Flaravel-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freliqarts%2Flaravel-common/lists"}