PHP Velho Oeste 2024

Verwendung von Paketen

Es gibt verschiedene vorkompilierte und gepackte Versionen von PHP für macOS. Sie können zum Aufsetzen von Standardkonfigurationen verwendet werden. Sobald Sie spezielle Funktionen benötigen (z. B. unterschiedliche Datenbanktreiber), müssen Sie sich eventuell Ihr eigenes PHP und/oder auch einen eigenen Webserver kompilieren. Wenn Sie mit dem Kompilieren eigener Software nicht vertraut sind, sollten Sie prüfen, ob nicht bereits jemand ein gepacktes und vorkompiliertes System bereitstellt, das Ihren Anforderungen entspricht.

Am schnellsten lässt sich php auf macOS mit Homebrew installieren:

  1. Homebrew nach der Anleitung unter » brew.sh installieren.

  2. brew install php

Die folgenden alternativen Quellen bieten ebenfalls einfach zu installierende Pakete und vorkompilierte Programme für PHP unter Mac OS an:

add a note add a note

User Contributed Notes 3 notes

up
1
Sajt
2 years ago
You can use Laravel valet, what is included PHP, Nginx, DNSMasq and a lot of things for easy developing. (https://laravel.com/docs/8.x/valet)
up
0
saintalifrh at disroot dot org
2 years ago
Valet requires macOS and Homebrew. Before installation, you should make sure that no other programs such as Apache or Nginx are binding to your local machine's port 80.

you need to install brew anyway
up
0
marc_cole
2 years ago
Granted, this is not a "package", but I prefer to use phpbrew, as it allows me to install as many versions of PHP as I want for testing or whatever.

https://github.com/phpbrew/phpbrew
To Top