PHPackages                             axn/laravel-extension - 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. [Framework](/categories/framework)
4. /
5. axn/laravel-extension

Abandoned → [axn/tool-kit-for-laravel](/?search=axn%2Ftool-kit-for-laravel)Library[Framework](/categories/framework)

axn/laravel-extension
=====================

Includes a set of useful tools for the Laravel framework.

11.4.0(2mo ago)02.9kMITPHPPHP ^8.4

Since Sep 8Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/AXN-Informatique/laravel-extension)[ Packagist](https://packagist.org/packages/axn/laravel-extension)[ Docs](https://github.com/AXN-Informatique/laravel-extension)[ RSS](/packages/axn-laravel-extension/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (6)Versions (89)Used By (0)

Tool Kit for Laravel
====================

[](#tool-kit-for-laravel)

Includes a set of useful tools for the Laravel framework.

Documentation
-------------

[](#documentation)

- [Helpers](docs/helpers.md) - Global helper functions
- [Blade Directives](docs/blade-directives.md) - @nltobr, @nltobrcompact, @nltop, @nltopflat
- [Components](docs/components.md) - Required field marker
- [Enums](docs/enums.md) - AppEnv, Civilities

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

[](#installation)

With Composer:

```
composer require axn/tool-kit-for-laravel
```

To use some of these tools you must have correctly installed the package [forxer/generic-term-translations-for-laravel](https://github.com/forxer/generic-term-translations-for-laravel#generic-term-translations-for-laravel) already prerequisite by this package (therefore present).

Use the locales publisher of [Laravel Lang](https://laravel-lang.com/) to add/update/reset or remove translations:

- If you have never used [Laravel Lang](https://laravel-lang.com/): [add locales](https://laravel-lang.com/usage/add-locales.html)
- If you are already using [Laravel Lang](https://laravel-lang.com/): just [update the locales](https://laravel-lang.com/usage/update-locales.html)

Quick Reference
---------------

[](#quick-reference)

### Helpers

[](#helpers)

HelperDescription`app_env_enum()`Get standardized environment enum`app_env_name()`Get standardized environment name`carbon()`Create Carbon instance from various formats`collect_models()`Create Eloquent collection`str_html()`Create HtmlString instance`linebreaks()`Normalize line endings to UNIX format`nl_to_br()`Alias of `nl2br()``nl_to_br_compact()`Convert consecutive newlines to single ```nl_to_p()`Convert newlines to paragraphs`nl_to_p_flat()`Convert text to single paragraph with ```number_formatted()`Format number with locale`compute_dec_to_time()`Decimal to time array`convert_dec_to_time()`Decimal to time string`human_readable_bytes_size()`Format bytes to human readable`mime_type_to_fa5_class()`MIME type to FontAwesome 5 icon`mime_type_to_fa6_class()`MIME type to FontAwesome 6 icon`mime_type_to_fa7_class()`MIME type to FontAwesome 7 icon`trans_ucfirst()`Translate with first char uppercase`is_valid_model()`Check if class is valid Eloquent model`semver_to_id()`Convert semver to numeric ID### Blade Directives

[](#blade-directives)

DirectiveDescription`@nltobr()`Convert newlines to ```@nltobrcompact()`Convert consecutive newlines to single ```@nltop()`Convert newlines to paragraphs`@nltopflat()`Convert to single paragraph with ``### Components

[](#components)

ComponentDescription``Display required field indicator### Enums

[](#enums)

EnumDescription`AppEnv`Standardized environment names`Civilities`Form civilities (Mrs, Mr)Requirements
------------

[](#requirements)

- PHP 8.4+
- Laravel 12.x

License
-------

[](#license)

MIT

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance86

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity96

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 63.6% 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 ~44 days

Recently: every ~36 days

Total

87

Last Release

70d ago

Major Versions

6.9.0 → 7.0.02019-12-27

7.7.2 → 8.0.02022-08-14

8.x-dev → 9.0.02023-05-04

9.1.0 → 10.0.02024-04-01

10.x-dev → 11.0.02025-03-13

PHP version history (3 changes)8.0.0PHP ^8.0

10.0.0PHP ^8.2

11.0.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/121384f0b2f969c933a358bb40d5cf97c85558c328e9778cb9bb60f3c6302379?d=identicon)[axn](/maintainers/axn)

---

Top Contributors

[![forxer](https://avatars.githubusercontent.com/u/407917?v=4)](https://github.com/forxer "forxer (117 commits)")[![lgtaxn](https://avatars.githubusercontent.com/u/23211553?v=4)](https://github.com/lgtaxn "lgtaxn (59 commits)")[![JimmyJanisson](https://avatars.githubusercontent.com/u/20086774?v=4)](https://github.com/JimmyJanisson "JimmyJanisson (5 commits)")[![crenan291](https://avatars.githubusercontent.com/u/93982998?v=4)](https://github.com/crenan291 "crenan291 (2 commits)")[![Sai-real](https://avatars.githubusercontent.com/u/93660581?v=4)](https://github.com/Sai-real "Sai-real (1 commits)")

---

Tags

laravelpackage

###  Code Quality

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/axn-laravel-extension/health.svg)

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

###  Alternatives

[orchid/platform

Platform for back-office applications, admin panel or CMS your Laravel app.

4.8k2.5M59](/packages/orchid-platform)[getkirby/cms

The Kirby core

1.5k535.5k352](/packages/getkirby-cms)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[ecotone/laravel

Laravel integration for Ecotone

21307.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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