Here's the main RSS feed from phpdeveloper.org:
|Sound of Symfony Podcast: Episode 18 - Event sourcing on 25 July 2017||
The Sound of Symfony podcast, with hosts Magnus Nordlander and Tobias Nyholm, recently posted their latest episode - Episode #18: .
In this episode we talk a little bit about Webpack Encore, and a lot about Event Sourcing, with our guest, Beau Simensen.
Other topics mentioned in include:
You can listen to this latest episode either using the or by . If you enjoy the show you can and to get updates when new shows are released.
|thePHP.cc: Don't call instance methods statically on 25 July 2017||
In they talk about calling instance methods statically, more specifically that it should be avoided.
There are quite a few things in PHP 4 that were a bit strange. One example is that PHP 4 allowed static calling of instance methods. [...] To keep backwards compatibility with PHP 4, this code works up to PHP 5, even though [the method in the example[ is not declared static.
They point out that, while this is definitely odd behavior that shouldn't exist, it hasn't been removed because of PHP's backwards compatibility principles and only removing functionality like this in major versions. So, instead, they recommend calling all non-static methods using an instance of the class injected rather than directly calling them.
|Alejandro Celaya: Reusing factories in Zend ServiceManager on 25 July 2017||
Alejandro Celaya has a new post to his site showing the Zend Framework users out there how you can . Factories are heavily utilized by the component to create the objects the service returns. Factories tend to be single-use, however, but Alejandro has shown a way around that.
I like zend-servicemanager because it is explicit, and you are always in control of what's done, without loosing flexibility in the process. Since this container expects you to define factories for every service, you usually end up writing, testing and maintaining a lot of factories that doesn't add value to the application.
He then talks about ways you can set up shared factories in your application including the use of an abstract factory class or a concrete factory to return other dependencies required. He also shows how to use the
|Sammy Kaye Powers: Writing tests for PHP source (Part 5 & 6) on 25 July 2017||
Sammy Kaye Powers has posted the latest parts in his series looking at testing the PHP language with phpt tests. So far he's helped you , , and . He continues the series with two new posts:
In the 5th part of his series he shows how to use the to locate lines of code in the PHP language core that aren't tested yet, how to create a new test to cover it and generating a code coverage report to see how much you've tested. In Part 6 he shows you how to take what you've created and submit it back to the PHP project on GitHub as a Pull Request (no RFC needed) based on changes from your own forked repository.
|Community News: Latest PECL Releases (07.25.2017) on 25 July 2017||
Latest PECL Releases:
Also from phpdeveloper.org, here are some Security links:No channel data