Top products from r/PHPhelp
We found 19 product mentions on r/PHPhelp. We ranked the 16 resulting products by number of redditors who mentioned them. Here are the top 20.
1. PHP Objects, Patterns, and Practice
Sentiment score: 3
Number of reviews: 3
PHP Objects, Patterns, and PracticePHP Books
3. The Object-Oriented Thought Process (5th Edition) (Developer's Library)
Sentiment score: 1
Number of reviews: 1
4. Design Patterns: Elements of Reusable Object-Oriented Software
Sentiment score: 1
Number of reviews: 1
Great product!
5. PHP and MySQL Web Development (5th Edition) (Developer's Library)
Sentiment score: 0
Number of reviews: 1
Addison-Wesley Professional
6. Professional PHP6 (Wrox Programmer to Programmer)
Sentiment score: 0
Number of reviews: 1
Used Book in Good Condition
7. Professional WordPress: Design and Development
Sentiment score: 1
Number of reviews: 1
8. Head First Design Patterns: A Brain-Friendly Guide
Sentiment score: 1
Number of reviews: 1
100% Satisfaction Guarantee. Tracking provided on most orders. Buy with Confidence!A brand-new, unused, unopened item in its original packaging, with all original packaging materials included.High seller positive feedback for the seller!Lowest price on amazon!
9. PHP and MySQL Web Development (4th Edition)
Sentiment score: 1
Number of reviews: 1
CD-ROM included with PDF version of text.
10. The Object-Oriented Thought Process
Sentiment score: 1
Number of reviews: 1
Used Book in Good Condition
11. Web Design with HTML, CSS, JavaScript and jQuery Set
Sentiment score: 1
Number of reviews: 1
Wiley
13. PHP Objects, Patterns and Practice (Expert's Voice in Open Source)
Sentiment score: 0
Number of reviews: 1
14. Modern PHP: New Features and Good Practices
Sentiment score: 1
Number of reviews: 1
O Reilly Media
15. Learning PHP, MySQL & JavaScript: With jQuery, CSS & HTML5 (Learning PHP, MYSQL, Javascript, CSS & HTML5)
Sentiment score: 0
Number of reviews: 1
16. Signstek 3D Printer MK2 MK3 Heated Bed Tempered Borosilicate Glass Plate 213x200x3mm
Sentiment score: 0
Number of reviews: 1
Made from tempered with high transparenceHigh binding power when heating, easy to separate the plastic parts when coolingAvoid replacing plastic filmGet you out of the trouble when plastic film decreased viscosity after a period of usageMaterial: Silicon glass
Slow, and had required reworking things a few times as I get used to things. I am liking the final outcome of it though. The framework i had built out over the years was pretty structured, and did a good job of keeping logic and presentation separate, so was quite clean and easy to follow.
I know I'll have several revisions on things as time goes on and can better see how to work things. I have always been one to learn best actually creating something and seeing how it works vs. just reading. That being said, this book was awesome for me.
The big stuggle I'm still having is accessing different objects from in other objects. ie, create a database object, then had to pass that into template class, then from in there having to pass it into an "outside" callback function.. I'm looking into changing it to using a static method (think that is right term) to return an instance of the database class where needed, so can just do $db = ProjectName\DB::getInstance(); instead of passing $db around all over.
Also while I understand it, using the name spaces gets "long worded" for using things like constants...
$obj = new ProjectName\clasname();
$obj->doSomething( $args, ProjectName\classname::CONSTANT_NAME )
At least a good IDE with code insight helps a ton!
> I want to return response in real time to javascript
I'm about to get really thorough with my response so, "hold on to your butts"
 
As /u/Mike312 hinted at, this is not how PHP and vanilla Javascript works, and as such you would have to seek alternative frameworks or languages(like Websockets, NodeJS) or you can keep reading for an alternate solution.
 
What you must understand is that PHP is code that lives on and is rendered on the back-end (server). That means that by the time the front-end (browser) has access to the page, the PHP code on the server has already executed.
 
Now that you better understand relationship between PHP & Javascript means you have two options, a simple one and a more complex one:
 
Simple Option: Abandon real-time
 
Since you seem to be a beginner when it comes to PHP, this is the option I recommend as it is the simplest and fastest. In this case, you would have something on the front-end, like a button, that would call a new page. This page will render the results of the function I provided you.
 
To break it down:
 
 
 
 
 
 
 
Complex Option: Explore AJAX
 
AJAX or Asynchronous JavaScript and XML allows your browser(front-end) to make calls to your server (back-end) without reloading the page. This means that, as an example, you can create a button on the front-end that executes a javascript function. The javascript function would then make an AJAX call to your server, and you could return that server data WITHOUT having to reload your page. Please see the link I provided above for a very good example.
I won't write up full on code for you that shows you how the HTML/JS/AJAX/PHP all interact but, here is an outline of how I would do it:
 
 
 
 
 
 
 
I know this is a lot of info to take in, but it should help implement a simple solution, then as your knowledge grows you can implement the complex solution.
 
As a side note, if you are really looking into learning front-end/back-end development, I recommend the following books:
Web Design with HTML, CSS, JavaScript and jQuery Set
PHP & MySQL Development
They're outdated now but I used:
3rd Edition of The Object Oriented Thought Process
[PHP Object-Oriented Solutions] (https://www.amazon.com/PHP-Object-Oriented-Solutions-David-Powers/dp/1430210117/ref=sr_1_17?ie=UTF8&qid=1540156770&sr=8-17&keywords=object+oriented+php)
[4th Edition of PHP Objects, Patterns, and Practice] (https://www.amazon.com/Objects-Patterns-Practice-Matt-Zandstra/dp/1430260319/ref=sr_1_2?ie=UTF8&qid=1540157156&sr=8-2&keywords=php+objects%2C+patterns%2C+and+practice+by+matt+zandstra)
Searching for this stuff on Amazon, I saw that The Object Oriented Thought Process is coming out with a new edition near the end of November. You might want to grab a pre-order of that. That's the OO book I started with.
The second book was a gentle introduction into understanding OO specifically in the context of PHP, but it's 10 years out of date, so I don't recommend it. If I was doing this learning now I'd look for something released in the PHP 7 era.
The third book had an edition come out in 2016, so it seems current enough but you might find it really advanced for you. I read it after I was done with the first two books, so my mind was prepared to understand.
So, for now. I guess try the 5th edition of The Object Oriented Thought Process and then after that try to find something current (PHP 7 era) that covers OO in PHP specifically.
If you want to understand why objects and interfaces are useful, I'd recommend reading Head First Design Patterns. It is truly the first resource I came across that made me grasp why objects and interfaces have a useful purpose.
I started to write an example for ELI5, but I decided that the first two chapters of that book would be a great example. It even includes ducks. :P
Coding Style:
Currently there is a lot of discussion about the PSR-1 and PSR-2 standards. The PSR-0 is definitly something which you should know about and follow it.
OOP structuring, Design Patterns:
Understand design-patterns (the standard book on this topic by the gang of four), and have a look into the topics of MVC and dependency injection. Zend Framework 2 and Symfony2 are the two major frameworks in this context.
Maybe also learn to know how database patterns like ORM and/or Active Record work. (Frameworks like Doctrine2, Zend_Db,...)
Test Driven Devlopment:
Check out PHPUnit and Behat for Behaviour Driven Testing
Version Control:
Our teams (2-8 programmers) work with both Subversion and Git. I recommend to check out both. Each has its disadvantages and advantages. There is a lot of discussion out there.
Related to this is the knowledge of Continous Integration and the connected tools. (Keywords: Jenkins, Bamboo, phpUnderControl, Hudson)
I had the same feeling a few months ago, so I bought Modern PHP. It's done a pretty good job of catching me up.
This is a really good book as well. Very in depth about OOP and you will learn a whole lot:
PHP Objects, Patterns, and Practice https://www.amazon.com/dp/1430260319/ref=cm_sw_r_cp_awd_iQxAwbADJYG7H
Thank you for your attention, heres the book
I have an older edition but it was worth every penny.
http://www.amazon.com/Objects-Patterns-Practice-Experts-Source/dp/143022925X
One ASIN that is acting up is B00QQ5Q3BI. When I google it and use the Amazon link, it takes me to B079DLFWRS, so I am not sure if they changed it or why it now links to 2 different ones, but that is a good example of a problematic one because they are both causing the issues I described.
Start with this one: Learning PHP, MySQL & JavaScript: With jQuery, CSS & HTML5 (Learning PHP, MYSQL, Javascript, CSS & HTML5) https://www.amazon.com/dp/1491978910/ref=cm_sw_r_cp_api_i_Duo0DbK8M9NZE
The 5th edition is the most recent, I believe, which covers up to PHP 7.