Concepts, Techniques and Practical Solutions with Doctrine
Take the pain out of dealing with relational databases in an object-oriented programming world. With this short book, you can save time and money by simply coding less while accomplishing more with the Doctrine persistence framework, a leading persistence solution for PHP programmers and web developers. more » PHP Persistence teaches you about PHP persistence and how to use it effectively for your database-driven applications.
Bestselling author Michael Romer leverages his own vast experience to show you what you need to know about Doctrine 2 and how to use it in your own projects. Along the way you’ll learn about powerful persistence techniques, such as object-relational mapping (ORM) in PHP.
What You'll Learn
* Define entities and references between entities
* Manage entities
* Master the Doctrine Query Language
* Use appropriate command-line tools for PHP persistence
* Program for caching
Who This Book Is For
Experienced PHP programmers and web developers with some exposure to PHP. « less
Writing healthy, reusable Symfony2 code
I've written A Year With Symfony for you, a developer who will work with Symfony2 for more than a month (and probably more than a year). You may have started reading your way through the official documentation ("The Book"), the cookbook, some blogs, or an online tutorial. You know now how to create a more » Symfony2 application, with routing, controllers, entities or documents, Twig templates and maybe some unit tests. But after these basic steps, some concerns will raise about...
* The reusability of your code - How should you structure your code to make it reusable in a future project? Or even in the same project, but with a different view or in a console command?
* The quality of the internal API you have knowingly or unknowingly created - What can you do to ensure that your team members will understand your code, and will use it in the way it was meant to be used? How can you make your code flexible enough to be used in situations resembling the one you wrote it for?
* The level of security of your application - Symfony2 and Doctrine seem to automatically make you invulnerable for well-known attacks on your web application, like XSS, CSRF and SQL injection attacks. But can you completely rely on the framework? And what steps should you take to fix some of the remaining issues?
* The inner workings of Symfony2 - When you take one step further from creating just controllers and views, you will soon need to know more about the HttpKernel which is the heart of a Symfony2 application. How does it know what controller should be used, and which template? And how can you override any decision that's made while handling a request? « less
Doctrine 2 takes the pain out of dealing with relational databases in an object oriented programming world - and this book shows you how it works and how you can save time and money by simply coding less while accomplishing more with Doctrine 2.
Michael Romer is the author of "Web Development with more » Zend Framework 2", the best-selling Zend Framework 2 book on Leanpub and Amazon. He has years and years of experience in the Internet Industry and used to work for global players like eBay. He knows what you need to know about Doctrine 2 - and it's in this book! « less