PHPackages                             bitquick/pathtastic - 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. bitquick/pathtastic

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

bitquick/pathtastic
===================

Methods to determine if a specified file or directory is within another specified directory.

v1.0.1(7y ago)014MITPHPPHP &gt;=4.0.0

Since Aug 19Pushed 7y agoCompare

[ Source](https://github.com/bitquick/pathtastic)[ Packagist](https://packagist.org/packages/bitquick/pathtastic)[ Docs](https://github.com/bitquick/pathtastic)[ RSS](/packages/bitquick-pathtastic/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Pathtastic
==========

[](#pathtastic)

Pathtastic PHP provides a way to verify that a specified target directory or file is contained within a subpath of a specified required parent directory.

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

[](#requirements)

I haven't test it but you should only need PHP 4.0.0 or above to run pathtastic. If you want to run the PHPUnit tests then it [requires PHP 7.1 or newer](https://phpunit.de/announcements/phpunit-7.html).

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

[](#installation)

You can install Pathtastic with composer using the following command

```
composer require bitquick/pathtastic

```

Usage
-----

[](#usage)

Check whether a **target** file or directory is within a subpath of a **required** directory.

```
use Bitquick\Pathtastic\Pathtastic;

if ( Pathtastic::verifyPath($targetPath, $requiredPath) ) {
    // target path is within required path
} else {
    // target path exists outside of required path.
}

```

License
-------

[](#license)

Pathtastic is released under the MIT license.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~69 days

Total

2

Last Release

2756d ago

### Community

Maintainers

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

---

Top Contributors

[![WebsyTech](https://avatars.githubusercontent.com/u/39170671?v=4)](https://github.com/WebsyTech "WebsyTech (5 commits)")[![bitquick](https://avatars.githubusercontent.com/u/39171330?v=4)](https://github.com/bitquick "bitquick (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bitquick-pathtastic/health.svg)

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

PHPackages © 2026

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