Good resources for experienced web developers switching to PHP?

Good morning everyone.

I have been working on websites for about seven years (most of them were in ASP.NET, but some are just HTML), and I'm ready to switch to PHP for my next project. Can anyone suggest some resources and / or tutorials that are more than the usual Hello World stuff?

In particular, any recommendations for reusing code, such as the ASP.NET equivalent of MasterPages, UserControls, etc.

Thanks in advance, Matt

+4
source share
4 answers

Matte

Link:

http://php.net

Environment:

XAMPP

Wamp

Tutorials:

One PHP.net

At w3schools

Web Framework:

Symphony

CodeIgniter

Cakephp

Also consider checking Python and Ruby as alternatives for web development. They are more powerful than PHP, since you can also use them for desktop applications and support scripts, where possible, and this is very undesirable.

Ruby

Python

+1
source

As a five-year-old PHP encoder who yearned for the release of a "better" platform such as ASP.NET, I offer you luck.

By itself, you have nothing like MasterPages, UserControls, page execution loops, handlers, etc. PHP is much more like ASP classic, because the script starts at the top and ends at the bottom. Everything in the middle can be anything that you like, and if you need the structure that ASP.NET proposed to you, you will have to implement it yourself.

Once you understand your way around the basics, move on to the massive lack of standard library organization, accept that the bolt-tin reliance is a bit awkward, learn to accept PHP for the monster that it is, and still really want to use it for now for something serious, you should look into a pre-prepared structure such as Zend or Codeigniter (among other things) that are trying to get most of the plumbing in your way.

+2
source

For your "specific" part, you want to move away from raw PHP and spend some time playing with one of the many frameworks that spawned to overcome the lack of RAD in PHP.

http://cakephp.org - http://www.symfony-project.org - http://framework.zend.com

All of them have their own inclinations for templates (all frameworks do), but not one (and this goes beyond PHP) follows the same ideas as Microsoft. Server and user management are fairly unique methods.

As I said in my comments, they are nowhere as clean as the β€œcorrect” web frameworks (django, rails, even webpy, etc.), but they work much better than just hacking on their own.

0
source

As Olya mentions in the comments, PHP itself lacks a large structure that you can get used to. There are several PHP frameworks that help solve this problem.

Symfony ( http://www.symfony-project.org/ ) is somewhat similar to Rails / Django, if that's what you're used to.

Zend Framework ( http://framework.zend.com/ ) is a much more open solution, but better for some projects.

However, if you yourself are immersed in PHP, the manual at http://www.php.net is fantastic. I downloaded it and saved a link to it in my accelerated launch.

0
source

All Articles