https://github.com/renekreijveld/macos_php_local_development
PHP development setup on macOS
https://github.com/renekreijveld/macos_php_local_development
apache macos mailpit mariadb nginx php
Last synced: about 1 month ago
JSON representation
PHP development setup on macOS
- Host: GitHub
- URL: https://github.com/renekreijveld/macos_php_local_development
- Owner: renekreijveld
- Created: 2025-02-28T13:02:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-15T10:12:36.000Z (about 1 year ago)
- Last Synced: 2025-03-15T10:29:42.603Z (about 1 year ago)
- Topics: apache, macos, mailpit, mariadb, nginx, php
- Language: PHP
- Homepage:
- Size: 318 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Apache/NginX/MariaDB/PHP development stack for macOS
This is a command-line-driven local PHP development environment for macOS. It allows you to run PHP-based websites on your macOS machine, providing a powerful setup for local web development.
### Supported macOS Versions
Compatible with **Big Sur, Monterey, Ventura, Sonoma, and Sequoia** on both **Intel** and **Apple Silicon** processors.
### Features
- While the setup is command-line-based, a collection of scripts automates most of the heavy lifting.
- Supports both Apache and NginX as web servers, allowing easy switching between the two.
- Includes MariaDB as the database server.
- Supports multiple PHP versions: 7.4, 8.1, 8.2, 8.3, 8.4, 8.5 β allowing different local sites to run concurrently with different PHP versions.
- Xdebug is installed and enabled by default for all PHP versions, with an option to toggle it on or off.
- Automatic SSL certificates for all local websites.
- Mailpit for easy email testing.
- A comprehensive set of command-line scripts to simplify website and database management:
- Easily add and delete local websites and databases.
- Create backups effortlessly.
- Start, stop, and restart the development environment with ease.
- All features are well-documented on the local landing page.
### Backup & Safety
If you already have a Homebrew-based PHP development setup, don't worry! The installer script automatically creates backups of all configuration files before making any changes.
### Installation & Updates
Follow these installation instructions to get everything up and running.
Regular updates are provided in this repository. Use the update instructions to keep your setup up to date.
### Is This Tool Right for You?
If you dislike working with the command line, this tool is not for you.
But if you're comfortable in the terminal, it provides a powerful, flexible, and customizable local PHP development environment.
Is this better or easier than tools like MAMP, Laravel Valet, or Laravel Herd? Probably not. π
But itβs open, flexible, and free β and if you're not afraid of the macOS terminal, you can modify it to suit your needs.
### Support the Project
If you like and use this tool, please consider making a donation to support further development. π