r/PHPhelp • • Feb 04 '17

New to PHP but not web development

I've built a handful of apps with Node worked a little with Python/Django and. I've been wanting to learn Php because it being the industry standard but don't want to waste time with beginner "Hello World" examples. What are some good resources and tutorials for building useful and interesting things?

I feel like once I pick up the syntax, I'll be okay, but maybe I'm over-simplifying it. People who've used other languages--what are things to be wary of when coming to Php from a different background?

10 Upvotes

10 comments sorted by

8

u/Gjrdiesel Feb 04 '17

Laracasts.com has some free content

http://www.phptherightway.com/ php bible

Learn by using a framework if you wanna skip past the php fundamentals https://scotch.io/tag/laravel

1

u/crashspringfield Feb 04 '17

So it seems like there's consensus that I at least state with Laravel? I guess I'll start with that and head over here with all my questions about how to handle things synchronously....

0

u/halfercode Feb 05 '17

You don't have to use Laravel, no. It's a full-fat framework so it will slow you down to start with whilst you're learning it; if you want to learn the basics quickly go with a microframework (e.g. Slim) or raw PHP.

1

u/crashspringfield Feb 04 '17

Follow up question: I'm using Mint and everything is being stored is in root/opt/lampp/htdocs. Now, I usually don't work anywhere near this directory. Is this standard, or should I move things somewhere else?

1

u/colshrapnel Feb 05 '17

It's just a matter of taste. Put your files wherever your web-server can access it. Given you are using Apache, just define DocumentRoot to point at your files location.

1

u/[deleted] Feb 05 '17

opt is an odd choice since it's not typical and doesn't semantically align with the folder's purpose, but it's not necessarily harmful. /var/www and /srv/www are the most common, with /srv/www being the most 'correct' choice imo. As long as you're not in a user's home dir or tmp it's fine but I reccomend the above.

3

u/[deleted] Feb 04 '17

The PHP manual is pretty rad. http://php.net/manual/en/index.php

You could try ranking up in code wars, codeeval or a similar service.

If you are looking for work as a PHP dev then I would also learn Zend, Laravel, or some other MVC framework.

2

u/[deleted] Feb 04 '17

Learn Zend, Symfony, Laravel and then realize that the PHP community is in a state that the frameworks can be picked apart and used for its best parts.

Learn Composer and review the PSRs.

2

u/colshrapnel Feb 05 '17

Learn Symfony he meant, because it was designed intentionally for the purpose of being picked apart. It was a success, which is proven by the fact that Laravel is largely using Symfony components.

1

u/internweb Feb 05 '17

what i can advice to you and my self is learn how code structure work in PHP, learn how function, procedure, and class look a like in PHP and then learn how to use PHP documentation and implement it to your code. Only 3 of it you can good at any programming languages