Functions useful for parsing URLs into tags

Maintainers

Package info

github.com/Lantern-Lighthouse/URLser

pkg:composer/lantern-lighthouse/urlser

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.4 2026-01-30 18:38 UTC

This package is auto-updated.

Last update: 2026-03-29 01:22:39 UTC


README

Functions useful for parsing URLs into tags.

Installation

composer require lantern-lighthouse/urlser

Usage

Parsing URL to Domain and Subdomain

use URLser\URLser;

foreach (array_map("strtolower", URLser::parse_domain("https://github.com/Lantern-Lighthouse/URLser")) as $tag)
{
	// ...
}

Get Page Name

$pgName = URLser::get_page_name("https://github.com/Lantern-Lighthouse/URLser"); // Set the value to "Lantern-Lighthouse/URLser"

Requirements

  • PHP 8.1 or higher

License

GPL-3.0 License