PHPackages                             charliedev/advanced-url-field - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. charliedev/advanced-url-field

AbandonedCraft-plugin[Validation &amp; Sanitization](/categories/validation)

charliedev/advanced-url-field
=============================

Configurable URL field that provides multiple format restrictions and validation.

1.0.0(8y ago)548.0k↓50%2[1 issues](https://github.com/charliedevelopment/craft3-advanced-url-field/issues)1MITPHP

Since Dec 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/charliedevelopment/craft3-advanced-url-field)[ Packagist](https://packagist.org/packages/charliedev/advanced-url-field)[ RSS](/packages/charliedev-advanced-url-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

Advanced URL Field for Craft 3
==============================

[](#advanced-url-field-for-craft-3)

This plugin provides a field type that can be configured to only allow URLs that match a specific set of formats. It expands upon the built-in URL field by allowing a field to be set to absolute, relative, mailto, or tel uris.

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

[](#requirements)

- Craft CMS 3.0.0-RC1 or above

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

[](#installation)

1. Open a terminal and navigate to your project folder:

```
cd /path/to/project
```

2. Require the package to download it via Composer:

```
composer require charliedev/advanced-url-field
```

3. Install the plugin on the `Settings -> Plugins` page in the Craft control panel.

**--- or ---**

3. Install the plugin via the command line:

```
./craft install/plugin advanced-url-field
```

Usage
-----

[](#usage)

### Creating an Advanced URL Field

[](#creating-an-advanced-url-field)

1. Create a new field in your craft control panel via the Settings -&gt; Fields panel.
2. Select *Advanced URL* as the field type.
3. Fill out placeholder text to show when the field is blank.
4. Select which URL types to allow (more info on the types below).
5. Attach the new field to a section.

[![Screenshot of field creation screen](./resources/creating-advanced-url-field.png)](./resources/creating-advanced-url-field.png)

#### URL Types

[](#url-types)

- **Relative URLS** must match the format of a URL path, relative to the document root, for example `/about` or `/categories/new#first`.
- **Absolute URLS** must match a full absolute url, prefixed with protocol and containing a domain name, for example `https://www.example.com/` or `https://example.com/about`.
- **Mailto Protocol** must be an email address prefixed by `mailto:`.
- **Tel Protocol** must be a phone number prefixed by `tel:`.

### Templating with an Advanced URL Field

[](#templating-with-an-advanced-url-field)

In a Twig template, the field is rendered directly, without any other additional inner properties. See the following example, where `myURL` is an Advanced URL field on the entry:

```
My Link
```

---

*Built for [Craft CMS](https://craftcms.com/) by [Charlie Development](http://charliedev.com/)*

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3072d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9edd713bbcd8345655c44e05943b8368341f5d2dd0e30dd9dc7f720a9126876a?d=identicon)[charliedev](/maintainers/charliedev)

---

Top Contributors

[![sbossarte](https://avatars.githubusercontent.com/u/10968087?v=4)](https://github.com/sbossarte "sbossarte (19 commits)")

---

Tags

craft3craftcmscraftcms-pluginfield-typeurlurlcmsfieldCraftcraftcms

### Embed Badge

![Health badge](/badges/charliedev-advanced-url-field/health.svg)

```
[![Health](https://phpackages.com/badges/charliedev-advanced-url-field/health.svg)](https://phpackages.com/packages/charliedev-advanced-url-field)
```

###  Alternatives

[elivz/vzurl

A URL fieldtype with validation.

4433.2k](/packages/elivz-vzurl)

PHPackages © 2026

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