How do I use terminal to install plugins and libraries for PHP (MAMP)?

edgariguana

New Member
Can you walk me through the installation of a library for php, specifically what each terminal command does?I have been learning web development for 6 months and it is time I need the console / terminal. I can't find any beginner walkthrough of using the terminal to add libraries and plugins to PHP. There are a lot of tutorials for specific steps or errors, but none start to finish.


If you want specifics to make your example concrete, here is what I am trying to install:The library I am installing: http://code.google.com/p/phpquery/.My directory for PHP on MAMP: /Applications/MAMP/bin/php/php5.3.6/bin


Thanks!
Donedit: I figured out my specific issue, but I don't think I really understand what I did, so I can't repeat it by myself in any other situation. This thread can help a lot of new terminal users including myself. The type of response I am looking for would go like this:Step 1: Open your terminal. (This is an alternative way to navigate and execute commands on files on your computer).Step 2: Find out where MAMP is installed however you like. Then go to your terminal, and type in \[code\]cd\[/code\] followed by the path. \[code\]cd\[/code\] stands for current directory and tells your terminal where it should execute its commands. The command you use will be very similar to this \[code\]cd /Applications/MAMP\[/code\]. This will make your current directory MAMP. Step 3: You are adding a library to PHP. So you need to go to the PHP folder in MAMP.... (please help us from this part!)
 
Back
Top