GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - dwiwijaya/localhost-explorer: Clean and interactive localhost dashboard to explore projects and automatically detect frameworks and correct entry points (Laravel, CI, Yii, Symfony, JS, and more).

BranchesTags
Open more actions menu

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
core
core
 
 
views
views
 
 
.gitignore
.gitignore
 
 
.htaccess
.htaccess
 
 
.htaccess-root
.htaccess-root
 
 
folders.png
folders.png
 
 
index-copy.php
index-copy.php
 
 
index.php
index.php
 
 
install.php
install.php
 
 
package.json
package.json
 
 
readme.md
readme.md
 
 
tailwind.config.js
tailwind.config.js
 
 

Repository files navigation

๐Ÿš€ Localhost Explorer

Screenshot 1 Screenshot 2

๐Ÿงญ Clean, modern, and developer-friendly localhost dashboard Stop scrolling through folders. Instantly see, detect, and open your local projects with the correct entry point.


โœจ Why Localhost Explorer?

If you work with many local projects (Laravel, Yii2, React, WordPress, etc.), the default Apache index quickly becomes messy and unproductive.

Localhost Explorer replaces it with a smart dashboard that:

โœ… Detects frameworks automatically
โœ… Routes to the correct entry point
โœ… Looks clean, modern, and fast
โœ… Requires zero configuration


๐Ÿ”ฅ Features

๐Ÿ“ Project Explorer

  • Browse all local project folders (personal, work, experiments)
  • Clean card-based UI with project grouping

๐Ÿ” Automatic Framework Detection

Supports popular frameworks out of the box:

  • ๐ŸŸฃ Yii2 โ†’ /web
  • ๐Ÿ”ด Laravel โ†’ /public
  • ๐ŸŸข CodeIgniter 4 โ†’ /public
  • ๐Ÿ”ต Symfony โ†’ /public
  • ๐Ÿฐ CakePHP โ†’ /webroot
  • ๐Ÿ“ฐ WordPress โ†’ root
  • ๐Ÿ“„ Plain PHP projects
  • โš›๏ธ JavaScript projects (React, Vue, Next, Vite, etc.)

๐Ÿš€ Smart Entry Point Routing

Automatically redirects to:

  • public/
  • web/
  • webroot/
  • dist/
  • build/

No more guessing URLs.

๐ŸŽจ Developer-Friendly UI

  • Modern, responsive design
  • Framework badges
  • Easy scanning & navigation

๐Ÿ”’ Secure by Default

  • Prevents directory traversal (../)
  • Restricts access to document root
  • Uses safe realpath() validation

โšก Lightweight

  • Pure PHP
  • No database
  • No framework dependency

๐Ÿ–ฅ๏ธ Preview

A modern dashboard displaying all local projects with framework badges, system info, and smart routing โ€” replacing the default Apache welcome page.


๐Ÿ“‚ Example Folder Structure

/var/www/html
โ”œโ”€โ”€ index.php          # Localhost Explorer
โ”œโ”€โ”€ example-folder/
โ”‚   โ”œโ”€โ”€ app-1/         # Plain PHP / standard folder
โ”‚   โ”œโ”€โ”€ app-2/         # Laravel project
โ”‚   โ”œโ”€โ”€ app-3/         # CodeIgniter 4 project
โ”‚   โ”œโ”€โ”€ app-4/         # Yii2 project
โ”‚   โ””โ”€โ”€ app-5/         # Node.js / JS project

๐Ÿ“‚ Required Folder Structure

โš ๏ธ IMPORTANT The repository must be placed directly inside Apache document root.

Example:

Apache Document Root
(htdocs / www / html)
โ”‚
โ”œโ”€โ”€ localhost-explorer/     โ† this repository
โ”‚   โ”œโ”€โ”€ index.php
โ”‚   โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ install.php
โ”‚   โ””โ”€โ”€ ...
โ”‚
โ”œโ”€โ”€ index.php               โ† auto-generated (redirect)
โ”œโ”€โ”€ .htaccess               โ† auto-generated
โ”œโ”€โ”€ project-a/
โ”œโ”€โ”€ project-b/

โš™๏ธ Installation (Cross-Platform)

Works on:
โœ… Linux
โœ… Windows (XAMPP / Laragon)
โœ… macOS
โœ… CLI & Browser


1๏ธโƒฃ Clone repository into Apache document root

cd <APACHE_DOCUMENT_ROOT>
git clone https://github.com/dwiwijaya/localhost-explorer.git

Examples:

Linux    : /var/www/html
XAMPP    : C:\xampp\htdocs
Laragon  : C:\laragon\www

2๏ธโƒฃ Run installer

You can run the installer using CLI or Browser.

Option A โ€” CLI (Recommended)

cd localhost-explorer
php install.php

Option B โ€” Browser

http://localhost/localhost-explorer/install.php

3๏ธโƒฃ What the installer does

The installer will:

โœ… Detect Apache document root automatically

  • (parent directory of the repository)*

โœ… Create or overwrite:

  • index.php
  • .htaccess

โœ… Backup existing files with timestamp
โœ… Redirect Apache root (/) to localhost-explorer/


4๏ธโƒฃ Generated files

/index.php

<?php
header('Location: localhost-explorer/');
exit;

/.htaccess

RewriteEngine On

# Redirect root to localhost-explorer
RewriteRule ^$ localhost-explorer/ [L]

5๏ธโƒฃ Apache configuration (one-time check)

Make sure Apache prioritizes index.php:

DirectoryIndex index.php index.html index.htm

Usually already set by default in XAMPP / Laragon / Ubuntu.

Reload Apache if needed.


6๏ธโƒฃ Open in browser

http://localhost/

๐ŸŽ‰ Localhost Explorer is now your Apache root dashboard.


๐Ÿง  How Detection Works

Localhost Explorer scans each folder and detects frameworks based on well-known files:

Framework Detection File Entry Point
Yii2 yii /web
Laravel artisan /public
CI4 spark /public
Symfony bin/console /public
CakePHP bin/cake /webroot
WordPress wp-config.php /
JS Apps package.json /dist or /build

๐Ÿ“Œ If no framework is detected, the folder is treated as a standard directory.


๐Ÿงฉ Supported JavaScript Projects

โš›๏ธ React (CRA, Vite)
๐ŸŸข Vue (Vue CLI, Vite)
โ–ฒ Next.js
๐Ÿงช Vanilla JS

If no production build is found, the project will be marked as JS (dev).


๐Ÿ” Security Considerations

๐Ÿšซ Blocks ../ path traversal
๐Ÿ”’ Limits access strictly to document root
๐Ÿ›ก๏ธ Uses realpath() validation everywhere

Safe to use as a local development dashboard.


๐Ÿšง Roadmap

Planned improvements:

๐Ÿ”Ž Detect running dev servers (3000, 5173, etc.)
โญ Favorite / pin projects
๐Ÿ Python framework support


๐Ÿค Contributing

Contributions are very welcome โค๏ธ

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Open a pull request

Ideas, issues, and feedback are appreciated.


๐Ÿ“„ License

MIT License โ€” free to use, modify, and share.


๐Ÿ‘จโ€๐Ÿ’ป Author

Built for developers who juggle many local projects and want a clean, productive localhost experience.

If this tool helps you, consider โญ starring the repo!

About

Clean and interactive localhost dashboard to explore projects and automatically detect frameworks and correct entry points (Laravel, CI, Yii, Symfony, JS, and more).

Topics

explorerlocalhost-dashboardlocalhost-explorerphp-dashboardproject-dashboardproject-explorer

Resources

Readme
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.