Paperback: 270 pages
Publisher: O'Reilly Media; 1 edition (March 1, 2015)
Product Dimensions: 7 x 0.6 x 9.2 inches
Shipping Weight: 1.1 pounds (View shipping rates and policies)
Average Customer Review: 4.7 out of 5 stars See all reviews (34 customer reviews)
Best Sellers Rank: #48,333 in Books (See Top 100 in Books) #3 in Books > Computers & Technology > Web Development & Design > Content Management #8 in Books > Computers & Technology > Programming > Web Programming > PHP #9 in Books > Computers & Technology > Web Development & Design > Web Services
I've developed PHP applications since version 4.0, back in the days when all methods were public. Now, most of those codes are considered legacy. Before reading this book, there were many gaps in my understanding of PHP 5, not only in its new features, but also in the new best practices. This book alone helped me to upgrade myself to PHP 5.6 confidently.The author knows how to present stuff clearly. By giving real world examples, he wants to make sure you really get it. The book is easy to read and very well written. However, it is assumed the reader already knows how to code in PHP; it is not a book for beginners, or to learn PHP's basics.Unlike online tutorials, the examples in this book are modern, for example, the author uses a component from Symfony framework to demonstrate the Namespace usage. Not only the author explains each new feature with clear examples, but he also covers best practices for each feature.The author is well-known because of his work at www.phptherightway.com, you can get an idea on his opinions on this website. To conclude, I highly recommend this book.
Excellent ROI. I have been a web dev for almost 20 years and was a "hard-core" PHP guy for some of those years, then didn't touch PHP for over 8 years. PHP grew up while I was off in Python land! In my opinion, Josh Lockhart's Modern PHP is a must-read for any PHP programmer. Sure there are lots of things he could go into deeper, but this book was needed--an excellent overview of almost everything a PHP developer needs to know from installing and configuring PHP and web servers, code style, recommended directory structures, the newer supported object oriented concepts, testing, debugging, profiling, deployments, using Composer, and even a good overview of HHVM and Hack--enough to help you know if you want to dive in more at this time.I will surely be referring to this book to lean on some of Josh's recommendations as I setup new projects.A little additional Josh Lockhart plug--I learned about him when I chose to use his Slim PHP micro framework in my latest project. That project was rolled into production about 90 days ago to very happy customers. I am delighted with Slim. It does the very basic plumbing I'd rather not code and does it very well. Then it stays the heck out of my way so I can write my own PHP to do what I need to do.
This book does a great job of explaining traits, interfaces and a number of other language features I was fuzzy on. It even goes through configuring a server with nginx, deploying your project and more admin stuff I needed to improve on. I was really excited to see that stuff covered so well. It's also cool to learn a bit about HHVM and Hack. Great book, highly recommended.
Overall this is a great concept for a book, and I like that it's a lean book. At the same time, I wish the author had spent a bit more time on some topics. He does a very fast overview of most topics, and though some topics can be explained in a page (generators), he could have spent more time on others that require a bit more explaining (closures and attaching state). So in some places it's great, and in others it mainly serves to tip me off that I need to go... somewhere else... and learn about Topic X.
This book is for Intermediate to Advanced PHP writers. I think beginners would find some value in it, being exposed to some of the more standard practices of PHP, but it might require a second glance once you've actually written some code for a while. I would just like to thank the author for touching a lot of amazing points about modern PHP in a fun and well organized way. It was actually a fun, interesting read from start to finish. I think that it only languished in technical detail when and for as long as it needed to. I went away from PHP around 5.3 and came back months before PHP 7 came on the scene. This book was exactly what I needed to catch up and see what amazing things were happening in PHP and the community. I could see it being a great read, too, if you're fairly familiar with PHP.