asdf-community / asdf-community/asdf-php

MacOS Quick Install guide

Open
#201 5 comments 15 reactions 1 assignee Claimed by @Rusydy View on GitHub
Dominant language
Shell
Stars
256
Forks
117
PR merge metrics
No merged PRs in 30d

Description

For newer PHP versions >= 8.1 if you want a quick install guide, just do the following:

- Tested on MacOS Sequoia 15.7.3

Enable Postgres, PHP interactive shell, GD, Zip, Curl...

You need to have **homebrew** installed.

## Required Packages
```bash
brew install pkgconf autoconf gd gmp icu4c zlib curl openssl@3 jpeg-turbo webp freetype oniguruma bison re2c libiconv libpq libpng libsodium libxml2 libzip
```

## Installation
```bash
export PHP_CONFIGURE_OPTIONS="--with-openssl=$(brew --prefix openssl@3) --with-iconv=$(brew --prefix libiconv) --with-icu=$(brew --prefix icu4c) --with-readline=$(brew --prefix readline) --with-pgsql=$(brew --prefix libpq) --with-libxml=$(brew --prefix libxml2)" && asdf install php 8.4.17
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.