djam90 / xampper
Easily add an xampp virtual host and an entry in the hosts file.
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/djam90/xampper
Requires
- symfony/console: ~2.3
- symfony/process: ~2.3
This package is auto-updated.
Last update: 2025-09-25 04:13:07 UTC
README
Create a new Apache virtual host in seconds when using Xampp for Windows
Installation
Install using composer globally using the following command:
composer global require "djam90/xampper=1.0.1"
Usage
1- Ensure that your composer bin
directory is in your PATH by running the following, assuming a default Composer installation: setx path "%path%;%APPDATA%\Composer\vendor\bin;"
2- Run from the command line: xampper new
Assumptions
- You have the latest Xampp for Windows, with Apache 2.4
- Your hosts file is located at C:\Windows\System32\drivers\etc\hosts
- Your Apache virtual hosts file is located at C:\xampp\apache\conf\extra\httpd-vhosts.conf
What Happens?
This package will add an extra virtual host at the bottom of your file, and an entry into the hosts file, something I have to do regularly when creating a new project every other day.