XAMP-CLI is a command-line tool to manage your local PHP development environment. It simplifies the management of a PHP web server using the command line. The script provides easy-to-use commands for starting, stopping, checking the status, and viewing logs of the server.
-
Clone the repository:
git clone https://github.com/adithyanmk/XAMP-CLI.git cd XAMP-CLI
-
Make the script executable:
chmod +x xamp.sh
-
Start server:
./xamp.sh start 0.0.0.0:5000
-
Stop server:
./xamp.sh stop 0.0.0.0:5000
-
Show logs:
./xamp.sh logs
-
Check server status:
./xamp.sh status 0.0.0.0:5000
- Logs are saved in
logs/server.log
. - Make sure you have PHP installed on your system for this script to work.
- The script should be executed in the same directory as the
xamp.sh
file.
Contributions are welcome! If you find a bug or want to improve the script, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.