PHPackages                             alexmanase/utils - 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. alexmanase/utils

ActiveLibrary

alexmanase/utils
================

This is my package utils

00PHPCI passing

Pushed todayCompare

[ Source](https://github.com/alexmanase/utils)[ Packagist](https://packagist.org/packages/alexmanase/utils)[ RSS](/packages/alexmanase-utils/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersionsUsed By (0)

This is my package utils
========================

[](#this-is-my-package-utils)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d754de3b4098a19a587f6017d849e6c59a5821ac5fdd8d9c39dc7112d8353248/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c65786d616e6173652f7574696c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alexmanase/utils)[![GitHub Tests Action Status](https://github.com/alexmanase/utils/actions/workflows/run-tests.yml/badge.svg)](https://github.com/alexmanase/utils/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/691f141573c3ce6b807a01431ca2902c32f3e6a7626bada88371abb7c9d4e068/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c65786d616e6173652f7574696c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alexmanase/utils)

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

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require alexmanase/utils
```

Usage
-----

[](#usage)

### `ClassNames` facade

[](#classnames-facade)

Inspired by [Livewire Flux](https://github.com/livewire/flux/blob/main/src/FluxManager.php#L84-L89)'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
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Alex Manase](https://github.com/alexmanase)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity8

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![alexmanase](https://avatars.githubusercontent.com/u/10696975?v=4)](https://github.com/alexmanase "alexmanase (16 commits)")

### Embed Badge

![Health badge](/badges/alexmanase-utils/health.svg)

```
[![Health](https://phpackages.com/badges/alexmanase-utils/health.svg)](https://phpackages.com/packages/alexmanase-utils)
```

PHPackages © 2026

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