I've read a few posts where people have stated (not suggested, not discussed, not offered) that PHP should not be used for large projects.
Being a primarily PHP developer, I ask two questions:
I run a small development team and I know from experience the quality construction, organization, documentation, commenting and encapsulation are our highest priority. We are able to develop great projects using our own framework and approach but still, I don't want to invest further if I'm wasting my time.
Thoughts?
In fact, 78.9% of a server-side code of software development projects is written in PHP. However, there's no one-size-fits-all in software development niche. While PHP programming language suits well some types of software projects, it turns out not the best choice for the other ones.
PHP scripts can be easily embedded into HTML files, allowing developers to convert existing static website code into dynamic front-end apps just by integrating PHP. Overall, PHP is an excellent programming language for the creation of full-fledged websites based on static HTML.
Developers hate PHP because they believe the language has been stagnating for 20 years. When you know PHP today you know that it's far from PHP4. PHP7 is faster than Python and Ruby. The language can be strongly typed if you wish.
Today, PHP is one of the top five in-demand programming languages. There are many reasons for PHP's growth.
I really hate it when people say flat out that PHP is a terrible language because you can write code which mixes presentation with logic, or that it lets you allow SQL injection. That's nothing at all to do with the language, that's the developer.
PHP has proved itself to be highly scalable: Wikipedia is one of the largest and most popular sites on the Internet and it runs PHP. Enough said?
There are a lot of tools/libraries out there that give you a framework to work in, making it less likely that someone will write poor, less-maintainable code: see CakePHP, Symfony, PDO, Smarty, etc etc etc.
It has received a bad rap because it's a language which has very low barriers to entry: it's free, you can get very cheap PHP hosting, the documentation is the best there is, there's plenty of tutorials online, plus it makes a lot of things very easy (eg: open a URL and get the contents of the file: file('http://www.google.com');
). This means that a lot of newbies picked it up and made a lot of very dodgy sites with it, but that's going to happen with whatever language you choose as your first.
Work with a solid ORM framework (there's about 30 questions on SO about which is best), and it will treat you good.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With