PHP Velho Oeste 2024

パッケージの使用

macOS 用にコンパイルされた PHP パッケージがいくつか存在します。 一般的なセットアップを行うにあたって、利用することができます。ただし、 (セキュアサーバーや様々なデータベースドライバなど)少々特殊な機能が必要な場合、 PHP を自分でビルドする必要が有るかもしれません。ソフトウエアの ビルドやコンパイルに不慣れな場合は、必要な機能を含めてビルドされたパッケージを 誰か他の人が作成済みでないかを調べてみると良いでしょう。

macOS で一番手っ取り早いインストール方法は、 以下のようにして、homebrew を使うやり方です。

  1. » brew.sh にある手順に従って、homebrew をインストールします。

  2. brew install php

以下の場所にも、簡単にインストールできる macOS 用のコンパイル済み PHP パッケージがあります。

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