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

Why does everyone modify PHP syntax?

I want to learn how to make world class PHP programs, but I don't want to learn fifty different syntaxes in order to do so. Why on Earth does every framework introduce their own syntax? It's like learning a new language, and it's brutally irritating. I want to learn PHP, not 50 versions of PHP.

For those of you out there that create world class PHP programs, can I do this while using out-of-the-box, standard PHP syntax? I want to know whether this is common and possible before I get too deep into learning PHP. If not, do any other languages like Ruby or Python keep things simple, or are those the same way?

I even despise using console, for any reason. Anything that needs to be installed should do so like a standard program: double click, done. I don't know why everyone has to make everything so difficult.

What do you mean by syntax?

1 Answer

Andrew Shook
Andrew Shook
31,709 Points

Austin Welsh, what you are referring to is actually called an API. Each framework has comes with special helper functions (API) the allow you to use the framework without needing to know the details of how the framework works internally. If you read through the source code, you will see that all the API is actually written using basic PHP.

As far as using the console, if you want to build world class php Apps then you will need to get very familiar with working in the console. I work with PHP on a daily basis and I use the console every day. It's just part of the job, and once you get use to it you will find that using the console is actually faster than using a GUI.