I don’t think you must use an IDE, actually, this point is completely personal. The integration with XDebug is perfect, PHP namespace resolution, composer integration, git integration, auto-complete, code generating, code refactoring. It was my fist try and I don’t even needed to try any other. PHPStorm is a great-great piece of software. Let’s start with the workflow TRIO FABRIKKER - Īs I said, I’m a newcomer to this IDE-thing, but it was love at first sight. ![]() Those changes and what I learned in the last year are the subject of this article and what I call Modern PHP. Most of them I was already doing, but I’ve made few changes in the way I do some things. I started creating an SDK for an internal API in the company I work for, just as a pet project, and decided to follow best practices. There is a long road ahead, but things are getting mature in the land of PHP. I have several problems working with PHP on a daily basis, but one cannot close their eyes to the changes taking place in the language, community and the ecosystem. If you are going to work with legacy code, maybe your life will not be that good, but if you have the opportunity to work on a new project and are able to use all the new tools, you’re going to see this new PHP I’m gonna talk about. ![]() There are tons of articles around the web about how awful PHP is, how your life would be terrible if you had to work with PHP code, how the language is ugly and whatever else you could think of! I’m even using an IDE now (Vim FTW, but PHPStorm with XDebug integration is a must for a sane workflow)! What is modern? By Karen Roe (Flickr) PSR came first, then Composer, PHPUnit, Travis-ci and several other libraries and amazing tools. About a year ago, more or less, I’ve opened my heart to all those shiny new things. What I always do is try to write my code following the best practices.īecause of that, It took me time to start using things like Composer and PHPUnit. I’m not an early adopter of new trends, actually, I only adopt a new tool when I’m sure there is a community behind it and I really think it will improve my work. Several people are thinking about ways to make the work (and your life as a developer) more productive, clean and fun. ![]() New tools, libraries, frameworks and articles are being created, patterns are being defined to make code more elegant and easy to understand. I’m seeing a real change in the way developers are doing their job with PHP, not only is the language drastically changing to become more mature and robust with new versions and improvements, but the entire ecosystem around it is changing. Although I’ve been working with PHP for years, how could I state what are the best practices and tools for the job? I couldn’t, but I’m going to do so. The title is really pretentious, isn’t? Yeah, it is. By Felipe Lopes This is what modern PHP looks like By Faraz Usmani (Flickr), via Wikimedia Commons
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |