Skip to content

Simple directory lister in PHP (Single file, no dependencies)

License

Notifications You must be signed in to change notification settings

esyede/php-dirlister

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-dirlister

Simple directory lister in PHP (Single file, no dependencies)

screenshot

Requirements:

  • PHP 5.3 or newer
  • pathinfo()

Install

Just download the latest release and upload the index.php file to your server's subdirectory. That's it!

Configuration

You can modify the default configuration inside the index.php file:

/*
|--------------------------------------------------------------------------
| CONFIGURATION
|--------------------------------------------------------------------------
|
| Modify this to suits your
|
*/

$config = array(
    'page_title' => 'Index of [path]',
    'page_subtitle' => 'Total: [items] items, [size]',
    'browse_directories' => true,
    'show_breadcrumbs' => true,
    'show_directories' => true,
    'show_footer' => true,
    'show_parent' => false,
    'show_hidden' => false,
    'directory_first' => true,
    'content_alignment' => 'center',
    'date_format' => 'd M Y H:i',
    'timezone' => 'Asia/Jakarta',
    'ignore_list' => array(
        '.DS_Store',
        '.git',
        '.gitmodules',
        '.gitignore',
        '.vscode',
        'vendor',
        'node_modules',
    ),
);

License

Released under the MIT License