PHPackages                             tawk/url-utils - 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. tawk/url-utils

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tawk/url-utils
==============

2.0.2(1y ago)011.7k—7.4%11OSL-3.0PHPCI failing

Since Oct 12Pushed 1y ago5 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (5)Used By (1)

Tawk URL Utils Module
=====================

[](#tawk-url-utils-module)

Overview
--------

[](#overview)

A tawk.to utility library for URLs.

Modules
-------

[](#modules)

### Url Pattern Matcher

[](#url-pattern-matcher)

This module handles matching of the provided URL to the provided patterns.

#### match(string $current\_url, array $patterns)

[](#matchstring-current_url-array-patterns)

Matches the provided url and patterns. Returns `true` if it matches. Otherwise, `false`.

##### Example

[](#example)

```
