Skip to content

Repository files navigation

This is my package utils

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.

About

My personal "utils" that I use in Laravel projects.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages