Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Building Websites with PHP Dependency Management Autoloading

Why don't you show how to work on variuos OS-es?

Hi,

I am not a fan of workspaces, I want to work on my computer and with code editor of my choice. Why don't you show how to install all of that on OSX (and others)?

3 Answers

I was on that link not long ago :) I think I will stick to MAMP a little while but later I will try to do this manually

Kevin Korte
Kevin Korte
28,148 Points

I think that's a great idea. Using command line tools like composer will help you get more comfortable as well.

Sam Deacon
Sam Deacon
2,650 Points

I struggle with windows 8 path dependancies, and things not working, and generally things going wrong in a horrible work environment. I also use 3 different laptops/PCs for coding depending on where I am.

This is why I now generally use cloud ides (cloud9/codeanywhere etc) as it gives you a 'fresh' ubunutu environment for every project, as well as a lot of languages / frameworks set up for you - you don't have to battle with OS discrepancies, languages or path routes, and you can switch computers and keep working on the same project without skipping a beat.

I also run a virtual box with linux + atom if I am on one pc for a prolonged time, especially if I need to sort out some horrible file directory structure for a php project close to deployment. Gonna get my head round vagrant and docker as well.

Lots to take in but I knew I had to ditch 30 years of using 100% microsoft OS at some point :)

Kevin Korte
Kevin Korte
28,148 Points

Most lessons do, I believe show you how to work locally as well.

Sometimes you just gotta go back a little: Like here http://teamtreehouse.com/library/build-a-simple-php-application

The first badge goes over installing PHP on Windows and OSX.

Or, as you'd have to do in a career, read the languages docs and learn to install what you need to install yourself. I also don't use workspaces here unless I'm forking someone else's workspace to help them with their code.

I googled and nothing helps, I simply can not install anything on Yosemite.

Kevin Korte
Kevin Korte
28,148 Points

Install this and you'll be good for PHP

https://www.mamp.info/en/

I had it, and I removed it because i wanted to have all of this installed the right way... Well, I am downloading and installing it again I guess.

Kevin Korte
Kevin Korte
28,148 Points

What do you mean "the right way"? That is not a wrong way. It's one way.

Are you talking about wanting to install everything via terminal? And manage all the separate parts of a full stack PHP environment yourself?

YES :) But It seems I am too green for that. I will try to do that later...

Kevin Korte
Kevin Korte
28,148 Points

Gottcha.

Try this: http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yosemite/

The learning experience could be good for you, or anyone. I can say that I use MAMP on OSX, and will continue to do so. It gives me no fits and I can just start the servers and go.

I don't want manage what MAMP does for me. But again, it it could be a good learning experience to give it a shot.