PHP Velho Oeste 2024

Paketlerin Kullanımı

PHP'nin macOS için bir kaç tane paketlenmiş ve derlenmiş sürümü vardır. Standart bir yapılandırma için bunlar yeterlidir, ancak farklı özelliklere ihtiyaç duyarsanız (güvenli sunucu, farklı bir veritabanı sürücüsü gibi), kendi PHP'nizi ve/veya HTTP sunucunuzu derlemeniz gerekebilir. Bu işleri yapacak tecrübeniz yoksa, sizin ihtiyaçlarınıza uygun olarak derlenmiş paketlerin olup olmadığını araştırmalısınız.

PHP'yi macOS üzerinde kurmanın en hızlı yolu homebrew kullanmaktır.

  1. » brew.sh içindeki talimatları izleyerek homebrew'i kurun.

  2. brew install php

Aşağıdakiler, macOS üzerinde PHP için paket ve derlenmiş ikillerin kurulumunu kolaylaştıracaktır:

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