An open API service indexing awesome lists of open source software.

https://github.com/odan/php-dev-box

PHP Dev Box
https://github.com/odan/php-dev-box

apache mysql php powershell windows xampp xampp-windows xdebug

Last synced: 5 months ago
JSON representation

PHP Dev Box

Awesome Lists containing this project

README

          

# PHP Dev Box

A lightweight, developer-friendly local server stack featuring **PHP**, **Apache**, and **MySQL** β€” designed for fast, simple local development without the bloat of traditional stacks.

## Features

- βœ… Easy to install and run
- πŸ”§ Includes PHP, Apache and MySQL
- πŸ“¦ All-in-one local development environment
- πŸ—‚ Simple status UI
- πŸ’» Designed for developers building PHP applications

## What's inside

| Component | Version | Notes |
|-----------|---------|----------------------------|
| PHP | 8.4.5 | |
| Apache | 2.4.63 | |
| MySQL | 8.4.4 | |

## But why?

Since [XAMPP](https://www.apachefriends.org/) isn’t actively developed anymore, I went ahead and created this package to help you install and manage Apache, PHP (with XDebug) and MySQL on Windows.

## Installation

### Windows

1. **Clone or download** this repository to `c:\xampp`.

2. **Open PowerShell as administrator** (important to ensure everything installs smoothly).

3. **Run** `.\devbox-setup.ps1` to install Apache, PHP, MySQL.

- The script will handle the downloading and configuring of these components for you.

4. **Follow any on-screen prompts** and let the script do its magic.

5. Run: `devbox.exe` to start the services.

### macOS & Linux

> Support for Unix-based systems is not planned.

# Usage

Start the local server with one click (GUI) or via terminal:

```
c:\xampp\devbox.exe
```

Once the Apache webserver is running, open your preferred browser and navigate to:

The default document root (where you place your PHP files) is:

`c:\xampp\htdocs`

## Limitations

* The server currently listens on port 80.
Changing the HTTP port is not supported at this time.

* HTTPS is not supported in this version. All traffic runs over plain HTTP.
SSL/TLS support may be added in a future release.

## Security

This tool is designed for **local development only**. Never expose it to a public network.

## Screenshot

## Contributing

Pull requests are welcome! If you have ideas or issues, please open an issue.

## License

This project is licensed under the [MIT License](https://opensource.org/license/mit).