PHPackages                             inwebo/dirtree-by-file-content-hash - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. inwebo/dirtree-by-file-content-hash

ActiveComponent[File &amp; Storage](/categories/file-storage)

inwebo/dirtree-by-file-content-hash
===================================

How can one store a large number of files while maintaining a high level of performance during access? One solution is file content hashing.

27PHP

Since Oct 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/inwebo/dirtree-by-file-content-hash)[ Packagist](https://packagist.org/packages/inwebo/dirtree-by-file-content-hash)[ RSS](/packages/inwebo-dirtree-by-file-content-hash/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Dir tree by SHA512 hash from content's file
===========================================

[](#dir-tree-by-sha512-hash-from-contents-file)

How can one store a large number of files while maintaining a high level of performance during access? One solution is file content hashing.

This class will generate SHA 512 hash from the content of a file, and it will return you a directory structure based on the file hash.

How to
------

[](#how-to)

```
