PHPackages                             vesperabr/laravel-macros - 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. vesperabr/laravel-macros

ActiveLibrary

vesperabr/laravel-macros
========================

A set of useful Laravel macros

1.0.2(4y ago)01841MITPHPPHP ^7.3|^8.0

Since Sep 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/vesperabr/laravel-macros)[ Packagist](https://packagist.org/packages/vesperabr/laravel-macros)[ Docs](https://github.com/vesperabr/laravel-macros)[ RSS](/packages/vesperabr-laravel-macros/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (4)Used By (1)

A set of useful Laravel macros
==============================

[](#a-set-of-useful-laravel-macros)

The `vesperabr/laravel-macros` package add a set of useful macros to your Laravel app.

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

[](#installation)

You can install the package via composer:

```
$ composer require vesperabr/laravel-macros
```

The package will automatically register itself.

Str macros
----------

[](#str-macros)

### `Str::dot()`

[](#strdot)

The `Str::dot()` method converts the given string to dot notation. This is especially useful when you need to handle form input names.

```
use Illuminate\Support\Str;

Str::dot('users[email]'); // users.email
```

### `Str::initials()`

[](#strinitials)

The `Str::initials()` method return the initials from a given string. The first parameter is the string and the second is the character limit.

```
use Illuminate\Support\Str;

Str::initials('Brenda Astin Zaion', 3); // BAZ
```

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Ricardo Monteiro](https://github.com/ricazao)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~28 days

Total

3

Last Release

1653d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7110502?v=4)[Ricardo Monteiro](/maintainers/ricazao)[@ricazao](https://github.com/ricazao)

---

Top Contributors

[![ricazao](https://avatars.githubusercontent.com/u/7110502?v=4)](https://github.com/ricazao "ricazao (6 commits)")

---

Tags

laravelmacrosvespera

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vesperabr-laravel-macros/health.svg)

```
[![Health](https://phpackages.com/badges/vesperabr-laravel-macros/health.svg)](https://phpackages.com/packages/vesperabr-laravel-macros)
```

###  Alternatives

[werxe/laravel-collection-macros

Custom Laravel Collection macros.

2625.8k](/packages/werxe-laravel-collection-macros)

PHPackages © 2026

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