Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

eru123/php-directory-index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Directory Indexer using Linker

PHP Directory Indexer using Linker

Installing

change <path> to where you want to extract the project

git clone https://github.com/eru123/php-directory-index <path>

Change directory to <path>

cd <path>

Install dependencies with composer

composer install

Configuration

You can configure the projects setting on /config.php

// Path of the directory you want to index
$dir = "path/to/your/dir";

// Columns you want to use
// Available columns are (name|ext|size|mime|type|modified)
$columns = ["name","ext","mime","size","type","modified"];

// Document title
$doc_title      = "PHP File Indexer";

// Page title
$page_title     = "Index of /";

// Page icon
$favicon        =  "favicon.png";

// Custom CSS you want to use
// NOTE: you can inject multiple css
$injected_css   = ["style.css"];

// Configurable icon set as file icon
$icon_set = [
    "directory" => "📁",
    "file"      => "📝",
    "document"  => "📄",
    "video"     => "🎞️",
    "audio"     => "🎧",
    "image"     => "📷",
    "text"      => "📝",
    "binary"    => "🔢",
    "app"       => "📦",
    "mobile"    => "📱",
    "script"    => "📜",
    "program"   => "💾",
    "markdown"  => "📖",
    "unknown"   => "🗑️"
];

About

List and index all files in a directory like Apache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published