#!/bin/bash
cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/php/"

for version in *; do
    # Install PHP config files
    cp $version/*.ini $(brew --prefix)/etc/php/$version/conf.d

    # Install PECL extensions
    usephp $version
    while read -r extension; do
        pecl install $extension
    done < "$version/pecl.list"
done

#!/bin/bash
source ~/.bash_profile;
cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/php/"

for version in *; do
    # Install PHP config files
    cp $version/*.ini $(brew --prefix)/etc/php/$version/conf.d

    # Install PECL extensions
    usephp $version
    while read -r extension; do
        pecl install $extension
    done < "$version/pecl.list"
done

Load missing aliases when installing PHP
Load missing aliases when installing PHP
