PHPackages                             elivz/vzurl - 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. elivz/vzurl

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

elivz/vzurl
===========

A URL fieldtype with validation.

2.1.2(7y ago)4433.2k2[2 issues](https://github.com/elivz/VzUrl-Craft/issues)MITPHP

Since Oct 26Pushed 7y agoCompare

[ Source](https://github.com/elivz/VzUrl-Craft)[ Packagist](https://packagist.org/packages/elivz/vzurl)[ RSS](/packages/elivz-vzurl/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (1)Versions (6)Used By (0)

VZ URL Fieldtype for Craft
==========================

[](#vz-url-fieldtype-for-craft)

A VZ URL field displays a text input where the user can enter a URL. It will ping the URL they entered and display an error message if it doesn't find a valid webpage there. It also prompts the user to update URLs that are redirected to a different location.

[![Screenshot of VZ URL for Craft](resources/img/screenshot.png)](resources/img/screenshot.png)

Please note that VZ URL will not prevent the user from saving their entry if if cannot validate the URL - it just warns them. This is intentional, perhaps they are linking to a page they have not yet created, or the site they are linking to is currently down but they know the URL is correct.

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

[](#requirements)

This plugin requires Craft CMS 3.0 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
    cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
    composer require elivz/vzurl

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for VZ URL.

Template Variables
------------------

[](#template-variables)

### Simple output

[](#simple-output)

Just output the URL that was entered.

```
Link

```

### Redirect

[](#redirect)

Immediately redirects a visitor's browser to the specified URL. Any other code in a template containing this tag will never be displayed.

```
{% redirect entry.fieldName %}

```

### URL Parts

[](#url-parts)

A helper function, `craft.vzUrl.parse` makes available an array of all the pieces of a URL. Keep in mind that many of these components are likely to be empty for any particular URL. You may also use this to get the components of *any* URL by passing in a string or other variable in place of the field name.

```
Domain: {{ craft.vzUrl.parse(entry.fieldName).host }}

```

The following components are available:

- `scheme` e.g. http
- `host` e.g. [www.google.com](http://www.google.com)
- `root` e.g.
- `port`
- `user`
- `pass`
- `path` e.g. /about
- `query` (without the question mark)
- `params` an associative array containing any query parameters
- `fragment` (without the hash)
- `filetype` e.g. pdf

Support
-------

[](#support)

Please post all bugs or feature requests in [GitHub Issues](https://github.com/elivz/VzUrl-Craft/issues). I maintain this fieldtype in my spare time, but I will try to respond to questions as quickly as possible.

Roadmap
-------

[](#roadmap)

- Cache validation results
- More output options
- Retrieve additional information about the webpage (OpenGraph, etc) and make it available in templates

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 96.1% 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 ~51 days

Total

4

Last Release

2607d ago

### Community

Maintainers

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

---

Top Contributors

[![elivz](https://avatars.githubusercontent.com/u/62592?v=4)](https://github.com/elivz "elivz (49 commits)")[![janhenckens](https://avatars.githubusercontent.com/u/755428?v=4)](https://github.com/janhenckens "janhenckens (1 commits)")[![oyvind-stenhaug](https://avatars.githubusercontent.com/u/6312143?v=4)](https://github.com/oyvind-stenhaug "oyvind-stenhaug (1 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginvz url

### Embed Badge

![Health badge](/badges/elivz-vzurl/health.svg)

```
[![Health](https://phpackages.com/badges/elivz-vzurl/health.svg)](https://phpackages.com/packages/elivz-vzurl)
```

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.5k](/packages/acclaro-translations)

PHPackages © 2026

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