PHPackages                             carry0987/filetree - 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. carry0987/filetree

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

carry0987/filetree
==================

A PHP library for generating signed and encrypted URLs with FileTree-API, using AES-256-GCM and HMAC-SHA256

1.0.2(2y ago)08MITPHPPHP &gt;=7.4

Since Mar 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/carry0987/PHP-FileTree)[ Packagist](https://packagist.org/packages/carry0987/filetree)[ RSS](/packages/carry0987-filetree/feed)WikiDiscussions master Synced yesterday

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

PHP-FileTree
============

[](#php-filetree)

[![Packgist](https://camo.githubusercontent.com/38dacf7395afca752ed0863afa1b9d1f6a95e81b864e17e0056b23e36f347add/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361727279303938372f66696c65747265652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/carry0987/filetree)
A PHP script for generating signed and encrypted URLs with **[FileTree-API](https://github.com/carry0987/FileTree-API/)**, using AES-256-GCM and HMAC-SHA256.

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

[](#installation)

Use Composer to install PHP-FileTree in your project:

```
composer require carry0987/filetree
```

Configuration
-------------

[](#configuration)

To use PHP-FileTree, you need to have a signature key and signature salt for encryption and hashing. These should be provided as hexadecimal strings.

Usage
-----

[](#usage)

Below is an example demonstrating how to encrypt an URL using PHP-FileTree:

```
require_once 'vendor/autoload.php';

use carry0987\FileTree\FileTree;

// Initialize the keys and salt. Replace these values with your actual keys and salt.
$signatureKey = 'your_hex_signature_key';
$signatureSalt = 'your_hex_signature_salt';

// Create a new instance of PHP-FileTree.
$imageEncryptor = new FileTree($signatureKey, $signatureSalt);

// The URL of the folder you want to encrypt.
$originalPath = 'test/hello-world';

try {
    $signedUrl = $encryptor->generateEncryptedUrl($originalPath);
    echo 'http://127.0.0.1:3000' . $signedUrl;
} catch (Exception $e) {
    // handle exceptions
    echo "An error occurred: " . $e->getMessage();
}
```

Contributing
------------

[](#contributing)

Contributions to PHP-FileTree are welcome! Feel free to submit pull requests to improve the codebase.

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~4 days

Total

3

Last Release

827d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12984973?v=4)[carry0987](/maintainers/carry0987)[@carry0987](https://github.com/carry0987)

---

Top Contributors

[![carry0987](https://avatars.githubusercontent.com/u/12984973?v=4)](https://github.com/carry0987 "carry0987 (4 commits)")

### Embed Badge

![Health badge](/badges/carry0987-filetree/health.svg)

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

###  Alternatives

[predaddy/predaddy

Common DDD classes and utilities

16826.6k1](/packages/predaddy-predaddy)

PHPackages © 2026

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