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.7.0(1mo ago)02.9kMITPHPPHP ^8.4

Since Sep 8Pushed 1mo 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 4w ago

READMEChangelog (10)Dependencies (12)Versions (94)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, BytesConvention, 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 (legacy default, accepts `BytesConvention`)`human_readable_bytes_size_si()`Format bytes using SI convention (1000-based, kB/MB/GB/TB)`human_readable_bytes_size_iec()`Format bytes using IEC convention (1024-based, KiB/MiB/GiB/TiB)`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_lcfirst()`Translate with first char lowercase`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`BytesConvention`Byte size conventions (SI / IEC)`Civilities`Form civilities (Mrs, Mr)Requirements
------------

[](#requirements)

- PHP 8.4+
- Laravel 12.x or 13.x

License
-------

[](#license)

MIT

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity97

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 64.7% 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 ~42 days

Recently: every ~11 days

Total

92

Last Release

56d ago

Major Versions

6.9.0 → 7.0.02019-12-27

7.7.2 → 8.0.02022-08-14

8.1.0 → 9.0.02023-05-04

9.x-dev → 10.0.02024-04-01

10.3.2 → 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://avatars.githubusercontent.com/u/1314974?v=4)[Axel Neumann](/maintainers/axn)[@axn](https://github.com/axn)

---

Top Contributors

[![forxer](https://avatars.githubusercontent.com/u/407917?v=4)](https://github.com/forxer "forxer (123 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

[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[statamic/cms

The Statamic CMS Core Package

4.8k3.5M925](/packages/statamic-cms)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19664.8M1.6k](/packages/drupal-core)[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[getkirby/cms

The Kirby core

1.5k567.4k438](/packages/getkirby-cms)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)

PHPackages © 2026

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