Download the PHP package jbzoo/path without Composer
On this page you can find all versions of the php package jbzoo/path. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package path
JBZoo / Path
A PHP library for creating memory-based aliases for your project file system. This virtual path system allows you to map logical names to physical directories, making file access and URL generation much easier and more maintainable.
Features
- 🚀 Virtual Path Mapping: Create logical aliases for filesystem paths
- 🔗 URL Generation: Automatically generate URLs from file paths
- 📁 Multiple Path Support: Add multiple directories under the same alias
- 🔍 File Resolution: Find files across multiple registered paths
- 🧹 Path Normalization: Clean and normalize file paths
- ⚡ Performance Optimized: Faster than native PHP realpath() in many scenarios
Requirements
- PHP 8.2 or higher
- Composer for installation
Installation
Quick Start
Basic Usage
Advanced Examples
Performance
JBZoo Path provides excellent performance compared to native PHP functions. See detailed benchmarks here.
| Subject | Groups | Iterations | Revisions | Mean | StdDev | RStdDev | Memory | Performance |
|---|---|---|---|---|---|---|---|---|
| benchBaseline | 3 | 10000 | 2.53μs | 0.11μs | 4.39% | 6,291,456b | 1.00x | |
| benchNative | 3 | 10000 | 138.22μs | 0.46μs | 0.33% | 6,291,456b | 54.64x | |
| benchJBZooPath | 3 | 10000 | 192.58μs | 0.87μs | 0.45% | 6,291,456b | 76.13x |
Development
Running Tests
Project Structure
License
MIT
All versions of path with dependencies
PHP Build Version
Package Version
The package jbzoo/path contains the following files
Loading the files please wait ...