k4l3b4/laravel-support

Common support helpers, contracts, and traits. Validator functionality, and basic controller included out-of-the-box.

Maintainers

Package info

github.com/k4l3b4/laravel-support

Documentation

pkg:composer/k4l3b4/laravel-support

Statistics

Installs: 3

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v8.0.3 2026-05-14 17:55 UTC

This package is auto-updated.

Last update: 2026-05-14 17:56:49 UTC


README

common support helpers, contracts, and traits required by various K4l3b4 packages. Validator functionality, and basic controller included out-of-the-box.

Important

This package is a fork of rinvex/laravel-support, which is currently in a public archive. We have taken over maintenance to ensure compatibility with modern Laravel versions and to add new features.

Packagist Scrutinizer Code Quality StyleCI License

Note: this package is just a support package for other K4l3b4 packages, which may not be useful on it's own, but contains some complementary generic functionality and also may not respect SemVer and break backward compatibility.

Changes from Original

Since forking from Rinvex, we have implemented several improvements and modernizations:

  • Laravel 11+ Compatibility: Updated dependencies and code to support the latest Laravel versions.
  • Enhanced Testing: Significantly expanded the test suite using Pest PHP, increasing coverage from ~30% to over ~90%.
  • Trait Improvements:
    • Enhanced HasTimezones for better user-specific timezone handling.
    • Updated ConsoleTools to support multiple theme structures and simplified namespaced view paths.
    • Added ArtisanCanValidateAnswers for interactive CLI input validation.
  • Validator Updates: Refactored and modernized the unique_with validator.
  • Helper Expansion: Added recursive array helpers and modernized string comparison helpers.
  • Infrastructure: Updated CI/CD pipelines and moved to modern PHP 8.4 syntax.

Installation

Install via composer require k4l3b4/laravel-support

Usage

mimetypes() helper

The mimetypes method gets valid mime types:

$mimetypes = mimetypes();

timezones() helper

The timezones method gets valid timezones:

$timezones = timezones();

unique_with Validator Rule

This feature contains a variant of the validateUnique rule for Laravel, that allows for validation of multi-column UNIQUE indexes.

It was forked and merged from the awesome felixkiss/uniquewith-validator package, which at the time been outdated and un-maintained for a long time. Many thanks to core contributors for developing this.

Changelog

Refer to the Changelog for a full history of the project.

Support

The following support channels are available at your fingertips:

Contributing & Protocols

Thank you for considering contributing to this project! The contribution guide can be found in CONTRIBUTING.md.

Bug reports, feature requests, and pull requests are very welcome.

Security Vulnerabilities

If you discover a security vulnerability within this project, please send an e-mail to help@k4l3b4.com. All security vulnerabilities will be promptly addressed.

About K4l3b4

K4l3b4 is a software solutions startup, specialized in integrated enterprise solutions for SMEs established in Alexandria, Egypt since June 2016. We believe that our drive The Value, The Reach, and The Impact is what differentiates us and unleash the endless possibilities of our philosophy through the power of software. We like to call it Innovation At The Speed Of Life. That’s how we do our share of advancing humanity.

License

This software is released under The MIT License (MIT).

(c) 2016-2022 K4l3b4 LLC, Some rights reserved.