PHPackages                             flipboxfactory/craft-link - 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. flipboxfactory/craft-link

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

flipboxfactory/craft-link
=========================

Link Field Type for Craft CMS

2.0.0(3y ago)130.5k1[5 issues](https://github.com/flipboxfactory/craft-link/issues)proprietaryPHPPHP ^8.0

Since Nov 9Pushed 3y ago2 watchersCompare

[ Source](https://github.com/flipboxfactory/craft-link)[ Packagist](https://packagist.org/packages/flipboxfactory/craft-link)[ RSS](/packages/flipboxfactory-craft-link/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

Link Field Type for Craft CMS
=============================

[](#link-field-type-for-craft-cms)

[![Join the chat at https://gitter.im/flipboxfactory/craft-link](https://camo.githubusercontent.com/d8edb28930cc7bacac8eac40e527b561055d04815d0c321496f4fae4c8645d97/68747470733a2f2f6261646765732e6769747465722e696d2f666c6970626f78666163746f72792f63726166742d6c696e6b2e737667)](https://gitter.im/flipboxfactory/craft-link?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Latest Version](https://camo.githubusercontent.com/52388dc1c23d56e743ea091e8a9f19e3076f893183f1bb7e8e4793309981ef32/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f666c6970626f78666163746f72792f63726166742d6c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/flipboxfactory/craft-link/releases)[![Software License](https://camo.githubusercontent.com/7bb09e7c53051d10bf37beea24a0396b80d87c85615a6c9db63a65f14c6cc977/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d50726f70726965746172792d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/1173063f0cd64c8bc88904034d9dbd01d4d0f7c8ced9ccad72c8e9538b4cf824/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f666c6970626f78666163746f72792f63726166742d6c696e6b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/flipboxfactory/craft-link)[![Quality Score](https://camo.githubusercontent.com/f12feb110e7c21c126ee04475e8da3da4fa004abb9e8f2d0387ff95608237c47/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f666c6970626f78666163746f72792f63726166742d6c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/flipboxfactory/craft-link)[![Total Downloads](https://camo.githubusercontent.com/3e37cc98058db3fb42f501fa98a194f2ce5ad78f650cbc1d29977fdcd5dab668/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666c6970626f78666163746f72792f63726166742d6c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/flipboxfactory/craft-link)

Link provides a robust field type for cross-content, external and various other link types.

[![Screenshot](resources/screenshots/field.png)](resources/screenshots/field.png)

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

[](#requirements)

This plugin requires Craft CMS 3.0 or later.

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

[](#installation)

Choose one of the following ways to add [Link](https://plugins.craftcms.com/link) to your project:

1. Composer:

    Simply run the following command from your project root:

    ```
    composer require flipboxfactory/craft-link

    ```
2. Craft CMS Plugin Store:

    Within your Craft CMS project admin panel, navigate to the '[Plugin Store](https://plugins.craftcms.com/link)' and search for '[Link](https://plugins.craftcms.com/link)'. Installation is a button click away.

Once the plugin is included in your project, navigate to the Control Panel, go to Settings → Plugins and click the “Install” button for [Link](https://plugins.craftcms.com/link).

Additional information (including pricing) can be found in the [Plugin Store](https://plugins.craftcms.com/link).

Features
--------

[](#features)

[Link](https://plugins.craftcms.com/link) is the most robust and configurable 'link' field type for Craft CMS. Built with the content publisher in mind, [Link](https://plugins.craftcms.com/link) is has an intuitive, easy to configure interface that enables admins to build a field precisely to their requirements.

Here are some of the features at a glance:

- Customizable labels
- Multiple link types per field
- Configurable settings per link-type
- Specify element sources to restrict available elements
- Add and link to new elements without leaving the page
- Simple rendering with overrides
- [Build your own custom link types](#third-party-link-types)

### Templating

[](#templating)

The field value will either be `null` or an instance of [Link Type Interface](https://github.com/flipboxfactory/craft-link/blob/master/src/types/TypeInterface.php).

Render a pre-constructed link:

```
{{ element.fieldHandle.getHtml()|raw }}
```

Render a pre-constructed link with overrides:

```
{{ element.fieldHandle.getHtml({
    text: 'Text Override'
})|raw }}
```

Render a pre-constructed link with additional attributes:

```
{{ element.fieldHandle.getHtml({
    class: "bg-blue hover:bg-blue-dark text-white font-bold py-2 px-4 rounded",
    rel: "noopener noreferrer",
    onclick: "return confirm('Are you sure?')"
})|raw }}
```

Build your own link:

```
{{ element.fieldHandle.text }}
```

### Screenshots

[](#screenshots)

[![Screenshot](resources/screenshots/input.png)](resources/screenshots/input.png)

[![Screenshot](resources/screenshots/input-alt.png)](resources/screenshots/input-alt.png)

[![Screenshot](resources/screenshots/field-settings.png)](resources/screenshots/field-settings.png)

### First Party Link Types

[](#first-party-link-types)

The following first party link types are supported:

- Element: Asset
- Element: Category
- Element: Entry
- Element: User
- HTTP/HTTPS

### Third Party Link Types

[](#third-party-link-types)

Including a custom link type is easy:

1. Create a new link type class. The class must implement: `flipbox\craft\link\types\TypeInterface` (Ref: [Link Type Interface](https://github.com/flipboxfactory/craft-link/blob/master/src/types/TypeInterface.php))

    *There are two abstract link types to help you get started:*

    - `\flipbox\craft\link\types\AbstractType` (Ref: [Abstract Link Type](https://github.com/flipboxfactory/craft-link/blob/master/src/types/AbstractType.php))
    - `\flipbox\craft\link\types\AbstractElement` (Ref: [Abstract Element Link Type](https://github.com/flipboxfactory/craft-link/blob/master/src/types/AbstractElement.php))
2. Register the link type class. Example:

```
\yii\base\Event::on(
    \flipbox\craft\link\Link::class,
    \flipbox\craft\link\Link::EVENT_REGISTER_TYPES,
    function(RegisterLinkTypes $event) {
        $event->types[] = YourLinkType::class; // Replace this with your link type class
    }
);
```

Credits
-------

[](#credits)

- [Flipbox Digital](https://github.com/flipbox)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity75

Established project with proven stability

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

Recently: every ~323 days

Total

10

Last Release

1340d ago

Major Versions

1.1.4 → 2.0.02022-09-06

### Community

Maintainers

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

---

Top Contributors

[![nateiler](https://avatars.githubusercontent.com/u/1892443?v=4)](https://github.com/nateiler "nateiler (41 commits)")

---

Tags

yii2craftcmslinksflipbox

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/flipboxfactory-craft-link/health.svg)

```
[![Health](https://phpackages.com/badges/flipboxfactory-craft-link/health.svg)](https://phpackages.com/packages/flipboxfactory-craft-link)
```

###  Alternatives

[craftcms/ckeditor

Edit rich text content in Craft CMS using CKEditor.

48359.1k51](/packages/craftcms-ckeditor)[craftcms/generator

Craft CMS component generator

88377.0k38](/packages/craftcms-generator)[craftcms/guest-entries

This plugin allows you to save guest entries from the front-end of your website.

10693.0k3](/packages/craftcms-guest-entries)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[rynpsc/craft-phone-number

International phone number field.

2265.9k](/packages/rynpsc-craft-phone-number)[craftcms/simple-text

This plugin adds a new “Simple Text” field type to Craft, which provides a textarea that’s optimized for entering documentation.

2624.1k](/packages/craftcms-simple-text)

PHPackages © 2026

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