PHPackages                             kminek/laravel-title - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kminek/laravel-title

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kminek/laravel-title
====================

Probably the easiest way to add dynamic HTML title to Laravel app

v3.0.0(1mo ago)2270MITPHPPHP &gt;=8.3.0

Since Jan 18Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/kminek/laravel-title)[ Packagist](https://packagist.org/packages/kminek/laravel-title)[ Docs](https://github.com/kminek/laravel-title)[ RSS](/packages/kminek-laravel-title/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

Laravel Title
=============

[](#laravel-title)

Probably the easiest way to add dynamic HTML title to Laravel app

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

[](#installation)

Run the following command from your terminal:

```
composer require kminek/laravel-title
```

or add this to `require` section in your `composer.json` file:

```
"kminek/laravel-title": "^3.0"
```

then run `composer update`

### Version compatibility

[](#version-compatibility)

`laravel/framework``kminek/laravel-title`13.x3.x11.x / 12.x1.x / 2.xUsage
-----

[](#usage)

Modify your layout view (for example `resources/views/layouts/app.blade.php`):

```
>

        {{ title() }}

            @yield('content')

```

Modify your controller action view (for example `resources/views/auth/register.blade.php`):

```
@extends('layouts.app')

@title('Register')

@section('content')

        Register

    ...

@endsection
```

Advanced usage
--------------

[](#advanced-usage)

Change default separator (`|`):

```
{{ title()->separator(' - ') }}
```

Change default text (`config('app.name')`):

```
{{ title()->default('AppName') }}
```

Set a description which is displayed when no title is set inside controller action view:

```
{{ title()->default('AppName')->description('This app will blow your mind!') }}
```

You are not required to use `@title()` Blade directive, you can call library directly which opens more possibilities:

```
@extends('layouts.app')

@php(title()->append('Register')) {{-- append (same behaviour as Blade directive) --}}
@php(title()->prepend('Register')) {{-- prepend --}}
@php(title()->set('Register')) {{-- replace whole stack --}}

@section('content')

        Register

    ...

@endsection
```

You can have multiple title "stacks" under different keys. Default stack is using "default" as a key, but you are free to create new ones:

```
{{ title('homepage') }}
```

and later in Blade view:

```
@php(title('homepage')->append('Register'))
```

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance89

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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 ~141 days

Total

4

Last Release

55d ago

Major Versions

v1.1.0 → v2.0.02025-11-19

v2.0.0 → v3.0.02026-03-18

PHP version history (2 changes)v1.0.0PHP &gt;=8.2.0

v3.0.0PHP &gt;=8.3.0

### Community

Maintainers

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

---

Top Contributors

[![kminek](https://avatars.githubusercontent.com/u/373962?v=4)](https://github.com/kminek "kminek (10 commits)")

---

Tags

laravelhtmltitle

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/kminek-laravel-title/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k5.4k1](/packages/vinkius-labs-laravel-page-speed)[unisharp/laravel-ckeditor

JavaScript WYSIWYG web text editor (for laravel).

377762.3k5](/packages/unisharp-laravel-ckeditor)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[wearepixel/laravel-cart

A cart implementation for Laravel

1310.5k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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