PHPackages                             the-3labs-team/laravel-keyword-linker - 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. the-3labs-team/laravel-keyword-linker

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

the-3labs-team/laravel-keyword-linker
=====================================

A Laravel package to link keywords in your content

v1.2.0(1mo ago)451[1 PRs](https://github.com/The-3Labs-Team/laravel-keyword-linker/pulls)MITPHPPHP ^8.2|^8.3|^8.4CI passing

Since Oct 2Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/The-3Labs-Team/laravel-keyword-linker)[ Packagist](https://packagist.org/packages/the-3labs-team/laravel-keyword-linker)[ Docs](https://github.com/the-3labs-team/laravel-keyword-linker)[ GitHub Sponsors](https://github.com/The-3Labs-Team)[ RSS](/packages/the-3labs-team-laravel-keyword-linker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (25)Versions (32)Used By (0)

Laravel Keyword Linker
======================

[](#laravel-keyword-linker)

[![Latest Version on Packagist](https://camo.githubusercontent.com/11e917f70b3f5d2d7cd509443f5a15d56bafe9f93549a3b130e9219082152dc5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468652d336c6162732d7465616d2f6c61726176656c2d6b6579776f72642d6c696e6b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/the-3labs-team/laravel-keyword-linker)[![GitHub Tests Action Status](https://camo.githubusercontent.com/6e14e907347bc52678b115c57829beb8bcf3130363107c5a9300ad99a9230343/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7468652d336c6162732d7465616d2f6c61726176656c2d6b6579776f72642d6c696e6b65722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/the-3labs-team/laravel-keyword-linker/actions?query=workflow%3Arun-tests+branch%3Amain)[![Github PHPStan](https://camo.githubusercontent.com/dd16ebd3e6f5f09e5deb9975dca21177652368864836960734ed0562b96d483f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7468652d336c6162732d7465616d2f6c61726176656c2d6b6579776f72642d6c696e6b65722f7068707374616e2e796d6c3f6272616e63683d6d61696e266c6162656c3d7068707374616e267374796c653d666c61742d737175617265)](https://github.com/the-3labs-team/laravel-keyword-linker/actions?query=workflow%3Aphpstan+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/96d67fafaf8f88e68d376b915268f76df8a36827e35a5c8a95e78de88d2391c5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7468652d336c6162732d7465616d2f6c61726176656c2d6b6579776f72642d6c696e6b65722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/the-3labs-team/laravel-keyword-linker/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![License Mit](https://camo.githubusercontent.com/b3b89520b53d06cd919b8156fa18efa8b86e5498d0989dc1ccc1568e14ede1f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d7572646572636f64652f6c61726176656c2d73686f7274636f64652d706c7573)](https://camo.githubusercontent.com/b3b89520b53d06cd919b8156fa18efa8b86e5498d0989dc1ccc1568e14ede1f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d7572646572636f64652f6c61726176656c2d73686f7274636f64652d706c7573)[![Total Downloads](https://camo.githubusercontent.com/202d24c86b95b8c3cff4c8dc58d7c6d51b4d44de97fd7aec174c144659e48c12/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468652d336c6162732d7465616d2f6c61726176656c2d6b6579776f72642d6c696e6b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/the-3labs-team/laravel-keyword-linker)

This is a package that converts keywords into links.

Requirements
------------

[](#requirements)

Package VersionRequirementVersion1.x.xPHP8.2, 8.3 or 8.41.x.xLaravel10.x, 11.x or 12.xInstallation
------------

[](#installation)

You can install the package via composer:

```
composer require the-3labs-team/laravel-keyword-linker
```

You can publish the config file with:

```
 php artisan vendor:publish --tag=keyword-linker-config
```

This is the contents of the published config file:

```
return [
    'limit-auto-keywords' => 5, // limit auto keywords to be linked
    'whitelist' => [
        'p',
        'blockquote',
    ],

    'query_tracking' => [
        'enabled' => false,
        'query_string' => 'tracking=kwlinker',
    ],
];
```

Usage
-----

[](#usage)

```
use The3LabsTeam\KeywordLinker\Facades\KeywordLinker;

$content = "This is a test content";

$keywords = [
    'test' => 'https://example.com/test',
    // Usage: 'keyword' => 'link'
];

echo KeywordLinker::parse($content, $keywords);

# output: This is a test content
```

### Common usage

[](#common-usage)

Use rel attribute to add nofollow to the link

```
$keywords = [
    'test' => [
        'link' => 'https://example.com/test',
        'rel' => 'nofollow'
    ],
    // Usage: 'keyword' => ['link' => 'link', 'rel' => 'nofollow']
];
```

Use target attribute to open the link in a new tab

```
$keywords = [
    'test' => [
        'link' => 'https://example.com/test',
        'target' => '_blank'
    ],
    // Usage: 'keyword' => ['link' => 'link', 'target' => '_blank']
];
```

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)

- [The-3Labs-Team](https://github.com/the-3labs-team)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Sponsor
-------

[](#sponsor)

 [ ![Tom's Hardware - Notizie, recensioni, guide all'acquisto e approfondimenti per tutti gli appassionati di computer, smartphone, videogiochi, film, serie tv, gadget e non solo](https://camo.githubusercontent.com/a9fa1ed2b6a72e6fcb0b2f3176c99d5073f5b75d532223562736659d447022f2/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f746f6d732e706e67) ](https://www.tomshw.it/) [ ![Spaziogames - Tutto sul mondo dei videogiochi. Troverai tantissime anteprime, recensioni, notizie dei giochi per tutte le console, PC, iPhone e Android.](https://camo.githubusercontent.com/e197c1e8d1428d36e0a1f9b9ec750b26d9432a7a2911c926c3aa29852edfdf6b/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f7370617a696f2e706e67) ](https://spaziogames.it/)
 [ ![Cpop - News, recensioni, guide su fumetto, cinema & serie TV, gioco da tavolo e di ruolo e collezionismo. Tutto quello di cui hai bisogno per rimanere aggiornato sul mondo della cultura pop](https://camo.githubusercontent.com/d6c1e37a8034b0d2d7df21c8130509e6ca539141bbed582a39021ea1a9f9d479/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f63706f702e706e67) ](https://cpop.it/) [ ![Data4Biz - Sito dedicato alla trasformazione digitale del business](https://camo.githubusercontent.com/5558e851010e4ae4b5cb43921a90e7cf67afd89d3e6b9ce5c780858e6f34ab19/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f6434622e706e67) ](https://data4biz.com/)
 [ ![SOS Home & Garden - Realtà dedicata a 360 gradi ai settori della casa e del giardino.](https://camo.githubusercontent.com/ef1f19fa4635ea5a313915fb5e7e4fdfc97007e168f51cf4da5009a9b1934da2/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f736f732e706e67) ](https://soshomegarden.com/) [ ![Techradar - Le ultime notizie e recensioni dal mondo della tecnologia, su computer, sistemi per la casa, gadget e altro.](https://camo.githubusercontent.com/df0dac8e4d85175fac6143938c38e370f9fdfa60d19647e8cafe554624246b33/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f7465636872616461722e706e67) ](https://global.techradar.com/it-it)
 [ ![Aibay - Scopri AiBay, il leader delle notizie sull'intelligenza artificiale. Resta aggiornato sulle ultime innovazioni, ricerche e tendenze del mondo AI con approfondimenti, interviste esclusive e analisi dettagliate.](https://camo.githubusercontent.com/647cb00914c70c5851526defce1b0a9ec012e2fcd97ddb029c8abda7bf9c2037/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f61696261792e706e67) ](https://aibay.it/) [ ![Coinlabs - Notizie, analisi approfondite, guide e opinioni aggiornate sul mondo delle criptovalute, blockchain e finanza](https://camo.githubusercontent.com/5b483d538588264ca081383dacf830d9aab280a07c2388c70bd02887ef59fa0f/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f636f696e6c6162732e706e67) ](https://coinlabs.it/)

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance91

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~74 days

Total

11

Last Release

48d ago

PHP version history (3 changes)v1.0.0PHP ^8.1|^8.2|^8.3

v1.1.1PHP ^8.1|^8.2|^8.3|^8.4

v1.2.0PHP ^8.2|^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d15c41e526b0044aef2fc0955ea1ecfedea9d481c21272ec2b3b0341bafee14?d=identicon)[the-3labs-team](/maintainers/the-3labs-team)

---

Top Contributors

[![Claudio-Emmolo](https://avatars.githubusercontent.com/u/113107618?v=4)](https://github.com/Claudio-Emmolo "Claudio-Emmolo (32 commits)")[![murdercode](https://avatars.githubusercontent.com/u/7630252?v=4)](https://github.com/murdercode "murdercode (22 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

laravelThe-3Labs-Teamlaravel-keyword-linker

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/the-3labs-team-laravel-keyword-linker/health.svg)

```
[![Health](https://phpackages.com/badges/the-3labs-team-laravel-keyword-linker/health.svg)](https://phpackages.com/packages/the-3labs-team-laravel-keyword-linker)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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