Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHP language setup with mcrypt or any other module #56

Open
sdavara opened this issue Nov 27, 2015 · 12 comments
Open

Add PHP language setup with mcrypt or any other module #56

sdavara opened this issue Nov 27, 2015 · 12 comments

Comments

@sdavara
Copy link
Contributor

sdavara commented Nov 27, 2015

No description provided.

@sb2nov
Copy link
Owner

sb2nov commented Nov 27, 2015

@sdavara do you want to make a PR to take this on ?

@sdavara
Copy link
Contributor Author

sdavara commented Nov 27, 2015

I have that instruction as below:

Installation on local machine (Mac)

Install php 5.4 and MySQL through homebrew. Follow instructions from homebrew-php for specific installation instructions on your OS.

brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php

Update homebrew formulas and install PHP 5.5

brew update
xcode-select --install
brew install php55 --with-thread-safety --with-mysql
brew install php55-mcrypt mysql

Set precedence of newly installed php over system php. Modify your ~/.bash_profile or ~/.zshrc (for bash and zsh respectively) and add the following at the bottom:

PATH=/usr/local/bin:$PATH

Set timezone in php.ini. It should be located at /usr/local/etc/php/5.4/php.ini.

Install PHP Composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

@sdavara
Copy link
Contributor Author

sdavara commented Nov 27, 2015

I'll see, If I can create a PR with PHP and composer(it's package manager)

@sb2nov
Copy link
Owner

sb2nov commented Dec 5, 2015

@sdavara thanks for taking this on, would love to help with the PR whenever you create it.

@sb2nov
Copy link
Owner

sb2nov commented Sep 4, 2016

@sdavara ping^

@Kyslik
Copy link
Collaborator

Kyslik commented Jun 30, 2017

Is it necesssry to have php 5.5 guide?

What OS X version should this be for?
(I am still on Yosemite)

@Kyslik Kyslik self-assigned this Jul 12, 2017
@Kyslik
Copy link
Collaborator

Kyslik commented Aug 27, 2017

Anyone who wanders here and have not seen stack overflow question on this topic here is a link: https://stackoverflow.com/questions/26493762/yosemite-el-capitan-php-gd-mcrypt-installation

@Kyslik
Copy link
Collaborator

Kyslik commented Sep 19, 2017

In case you need only one version (5.6 or 7.x..) just install it using guide linked above (stackoverflow). In case you need 2 versions simultaneously you have multiple options:
https://medium.com/@wvervuurt/how-to-run-multiple-php-versions-simultaneously-under-os-x-el-capitan-using-standard-apache-98351f4cec67
or
https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions
or
(advanced, since guide is not for macOS but for Linux, but gives you the idea)
https://pehapkari.cz/blog/2017/03/27/multiple-php-versions-the-easy-way/

@sb2nov sb2nov added need-help and removed need-help labels Nov 7, 2017
@Kyslik
Copy link
Collaborator

Kyslik commented Dec 1, 2017

New suggestions if you develop using some kind of framework/library... use Valet

Laravel, Lumen, Bedrock, CakePHP 3, Concrete5, Contao, Craft, Drupal, Jigsaw, Joomla , Katana, Kirby, Magento, OctoberCMS, Sculpin, Slim, Statamic, Static HTML, Symfony, WordPress, Zend

@Kyslik
Copy link
Collaborator

Kyslik commented Jan 4, 2019

I do not really know how to proceed here; I just use Valet and it does all the stuff behind the scenes for me (for my use case). Using Valet is easy, but it does not support development with no frameworks (see list in #56 (comment)).

I also use brew pining for PHP so it does not upgrade to PHP 7.3.

Also PHP 7.2 comes with these modules, and the trouble ones (intl, mcrypt) are either built-in statically or depreciated:

➜  ~ php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_dblib
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
phpdbg_webhelper
posix
pspell
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

@sb2nov
Copy link
Owner

sb2nov commented Jan 5, 2019

@Kyslik want to just turn your guidelines into a Php page? Since I think you've enough experience with this as well as there is not much we can do beyond this on the issue.

@simeg
Copy link
Collaborator

simeg commented Jan 5, 2019

@Kyslik Not knowing much about PHP and the ecosystem of the language I think anything would be useful, like how do I install PHP and manage versions? And if you think Valet is a good choice then I'd say include that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants