lantern-lighthouse / urlser
Functions useful for parsing URLs into tags
1.1.4
2026-01-30 18:38 UTC
Requires
- php: >=8.1
Requires (Dev)
- phpunit/phpunit: ^10.0
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