PHPackages                             arcanisgk/project-structure-viewer - 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. arcanisgk/project-structure-viewer

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

arcanisgk/project-structure-viewer
==================================

A PHP library to visualize project directory structures with .gitignore support and interactive HTML output

1.0.0(9mo ago)03[1 issues](https://github.com/arcanisgk/project-structure-viewer/issues)MITPHPPHP &gt;=8.0

Since Jul 16Pushed 9mo agoCompare

[ Source](https://github.com/arcanisgk/project-structure-viewer)[ Packagist](https://packagist.org/packages/arcanisgk/project-structure-viewer)[ Docs](https://github.com/arcanisgk/project-structure-viewer)[ RSS](/packages/arcanisgk-project-structure-viewer/feed)WikiDiscussions master Synced 1mo ago

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

Project Structure Viewer
========================

[](#project-structure-viewer)

[![PHP Version](https://camo.githubusercontent.com/f9a61eee600abfa4c06628ff826dc6a7dfffc0cceca828fd79751b43e44f451f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e302d626c75652e737667)](https://php.net/)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![Packagist](https://camo.githubusercontent.com/27f2e6149ae050a561773716da4b972fba065e57335ff5d829f031c917915598/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617263616e6973676b2f70726f6a6563742d7374727563747572652d7669657765722e737667)](https://packagist.org/packages/arcanisgk/project-structure-viewer)

A powerful PHP library to visualize project directory structures with `.gitignore` support and interactive HTML output. Perfect for documentation, project analysis, and development tools.

✨ Features
----------

[](#-features)

- 🌳 **Interactive Tree View**: Beautiful HTML tree structure with expand/collapse functionality
- 🚫 **Gitignore Support**: Respects `.gitignore` rules automatically
- 📊 **Multiple Output Formats**: HTML, JSON, and Array formats
- 🔒 **Security First**: Built-in protection against accessing system directories
- 🎨 **VS Code Theme**: Dark theme inspired by Visual Studio Code
- 📱 **Responsive Design**: Works perfectly on desktop and mobile devices
- ⚡ **Framework Independent**: Works with any PHP project or framework
- 🔧 **Easy Integration**: Simple API with fluent interface
- 📈 **Statistics**: File counts, sizes, and project metrics
- ⌨️ **Keyboard Shortcuts**: Ctrl+E (expand), Ctrl+C (collapse), Ctrl+R (refresh)

🚀 Installation
--------------

[](#-installation)

### Via Composer (Recommended)

[](#via-composer-recommended)

```
composer require arcanisgk/project-structure-viewer
```

### Manual Installation

[](#manual-installation)

1. Download the latest release
2. Extract to your project
3. Include the autoloader or manually require the files

📖 Quick Start
-------------

[](#-quick-start)

### Basic Usage

[](#basic-usage)

```
