Search by

alexmanase / utils

This is my package utils

Maintainers

Package info

github.com/alexmanase/utils

pkg:composer/alexmanase/utils

Transparency log

Fund package maintenance!

alexmanase

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-08-28 16:52 UTC

This package is auto-updated.

Last update: 2026-08-28 16:54:20 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

This package contains some "utils" that I often use in my Laravel projects.

Installation

You can install the package via composer:

composer require alexmanase/utils

Usage

ClassNames facade

Inspired by Livewire Flux's class-merging approach.

use AlexManase\Utils\Facades\ClassNames;

echo ClassNames::add(['btn', 'btn-primary' => true, 'btn-disabled' => false]);
// btn btn-primary

echo ClassNames::make()
    ->add('btn')
    ->add(['btn-primary' => true]);
// btn btn-primary

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.