Last active
April 26, 2018 12:11
-
-
Save allysonsilva/bdab33cd4e3f4133f57cd806b9cb2149 to your computer and use it in GitHub Desktop.
PHP 7.2⚡️Composer (macOS)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install jpeg | |
brew install libtiff --with-xz | |
brew install argon2 glib imap-uw libpq | |
brew install webp --with-giflib --with-libtiff | |
brew install libzip freetype | |
brew install unixodbc | |
brew install freetds --with-unixodbc | |
brew install aspell --with-lang-pt_BR | |
brew edit php72 | |
# Remove rows: | |
# depends_on "httpd" | |
# depends_on "apr" | |
# depends_on "apr-util" | |
brew install php72 | |
brew services start php | |
# The php.ini and php-fpm.ini file can be found in: | |
# /usr/local/etc/php/7.2/ | |
brew install php72-xdebug | |
brew install lz4 | |
# git clone --recursive --depth=1 https://github.com/kjdev/php-ext-lz4.git | |
# cd php-ext-lz4 && phpize && ./configure && make && make install | |
# | |
# Installing shared extensions: /usr/local/Cellar/php/7.2.3_2/pecl/20170718/ | |
# | |
# tee /usr/local/etc/php/7.2/conf.d/ext-lz4.ini <<EOF | |
# [lz4] | |
# extension=lz4.so | |
# EOF | |
brew install php72-lzf | |
brew install php72-mongodb | |
brew install igbinary php72-igbinary | |
brew install php72-redis | |
brew install php72-ref | |
brew install php72-swoole | |
brew install popt rabbitmq-c | |
brew install php72-amqp | |
brew install php72-ds | |
brew install php72-msgpack | |
brew install php72-meminfo | |
brew install php72-ssh2 | |
brew install php72-yaml | |
brew install php72-uopz | |
# SQL SERVER | |
brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release | |
brew update | |
brew install --no-sandbox msodbcsql17 | |
chmod -R ug+w /usr/local/opt/php/lib/php | |
pear config-set php_ini /usr/local/etc/php/7.2/php.ini system | |
pecl channel-update pecl.php.net | |
pecl install sqlsrv-5.2.0 | |
pecl install pdo_sqlsrv-5.2.0 | |
# COMPOSER | |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
# sudo chown -R `id -un`:admin /usr/local/bin/composer | |
# sudo chown -R :staff ~/.composer | |
composer install --no-interaction --no-dev --prefer-dist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment