PHP has the reputation of being the not so cool development language, due to outdated language capabilities and plenty of poor quality computer code written using it. PHP is used by more than 80% of the internet including some of the biggest tech companies in the world including Facebook, and you tell me it isn’t cool!!!. We use PHP as my main encoding language and it’s seen surf of change over the last several years; it’s so much more compared to a language for script kiddies and hobbyist hackers. There are a few ‘truths’ about the language that aren’t true these days, thus I’d like to make you up-to-date with the current PHP status.
- It’s not as good as Rails”
PHP is not bad, ” several say, but it’s not Side rails. ” Well, no, due to the fact one is a language and something is a framework, so the assessment is irrelevant. PHP does not have one ‘Rails’, it has 1000s of frameworks, which means you can pick the proper tool for the job. When you need a structured, full-stack construction, then try Zend Construction For a components library, It is suggested Zeta Components is worth your current attention. And if you just need several lightweight scaffolding then have a look at CodeIgniter or its more modern community fork Kohana
- They have an incomplete object model”
In PHP4, this report was actually true: object help support was kind of hacked through to arrays, with rather useful results. However PHP5 was already released in 2004 and PHP4 wasn’t supported for a few years currently, so it’s an urban belief at this point in time. PHP5 possesses a true object model together with the things one would expect to find: access modifiers, interfaces and many others. It only has single monetary gift, which can be a surprise for those by disciplines with multiple monetary gift; but in general, if you’re an application engineer, you can work with PHP without tearing your hair available.
- There’s a lack of best practice”
This was probably true at some point, and certainly there are a lot of day-job PHP-ers out there just rotating out more of the same computer code. But at the conferences and the PHP news internet sites, there’s a lot of content about increasing quality of tools and also process. Unit testing will be commonplace, helped by the wonderful xUnit tool, PHPUnit Supply control is a requirement for virtually all projects, but most may also include deployment processes : contrary to the stereotype, I may remember the last time I actually FTP’d a file for any purpose. While Subversion is still common, the open source projects I realize in the PHP sphere are usually increasingly moving over to Git and other DCVS solutions : and where the open source equipment go, the rest of the industry probably will follow.
Combine all of this together with PHing to automate the many steps for deployment and also phpUnderControl or Hudson regarding continuous integration, and PHP projects are looking more and more similar to a serious software project really should.
- The package deal
Every area around a technology, whether podium, language, framework or anything, has its own character and principles. I find the PHP area very open source in its approach. There is no particular leadership, while you have to earn the karma to commit to the words itself. The best textbook to get PHP is the manual on, written and maintained by community itself. Because of its available nature, almost all of the best information are freely available. There are some great sites that get these resources together. In the event that sounds interesting in that case check out Planet PHP, a new syndication of some of the leading PHP blogs, or PHPDeveloper, a site that rounds the best PHP posts throughout the net.
The sheer pervasiveness of PHP, available usually by default or very easily in each platform, means it’s always in front of you to solve a problem. There are some amazing open source products built with PHP that will save you time and severe headaches, and yes, there are plenty of genuinely awful ones as well, as this is an open community and also anything goes!
PHP provides for the longest time recently been the top of mind encoding language for mainstream and also hobbyist Web Developers. It’s operating a large parts of the web, most likely bound to be a PHP customer if you’ve got an internet connection. They have everywhere and it’s not intending away any time soon.
Often the PHP runtime itself is challenged by Facebook’s HHVM in the last few years. People are researching charts of PHP 6 vs . HHVM performance, longing low latency and substantial throughput. This and developments in the language are good, playing with the end it’s just a considerably better tool for server side coding via HTTP or by way of Command Line. RoR and also Django were sold as a substitute to do the same exact factor. Meh.
PHP has never had the capacity to break out from being a server based language. There have been efforts for making PHP a viable Desktop Program Platform, but those are already awkward at best. Java, terrifying by many PHP designers is more versatile than PHP.
With Java you write satisfactory desktop applications, you can compose high performance data analysis and also storage applications like ElasticSearch, Neo4J and JackRabbit It is possible to write plain old web program back ends as well together with modern frameworks like Enjoy In addition Java likely capabilities your every day life embedded inside mobile phones, printers, set major boxes, etc .
I believe people will continue to develop all kind of kludges to help stretch PHP beyond they have limits. Please stop, due to the fact it’s just not a very good program for many things out there. In order to move beyond the limits connected with PHP with a similar words – take a look at Hack, a source PHP derivative by Facebook.