PHPnews.io

Controllers are Services

Written by Paul M. Jones / Original link on Dec. 9, 2019

tl;dr: Contra my previous opinion,controllers are Service objects; my understanding of a "Service", regardingDI/SL Containers, was incorrect. However, I do continue to opine that it isbetter use a Factory to get new Controller instances, rather th...



5 Ways of Battling Form Spam

Written by Laravel News / Original link on Dec. 9, 2019

Form submission spam seems to be an inevitable problem. As soon as bots find your forms they will start hitting it with spam submissions. In this article, let’s take a look at five common ways of fighting back. The post 5 Ways of Battling Form Spam appeared first on Laravel News. …


Crafty Code Coverage

Written by Derick Rethans / Original link on Dec. 9, 2019

Crafty Code Coverage London, UK Monday, December 9th 2019, 13:30 GMT Xdebug's code coverage functionality has had dead code analysis for years. It is used to be able to mark lines of as having executable code on it, as well as lines which can not be reached. In …



Weekly Update 168

Written by Troy Hunt / Original link on Dec. 9, 2019

I'm presently on the YOW! conference tour which means doing the same keynote three times over in Sydney, Brisbane and Melbourne. It's my first time back at YOW! since 2015 and it's always a nice way to wrap up the year, especially the Brisbane leg I'm on at the moment in my home state. That's kept …


Strawberry jelly

Written by Sebastian De Deyne / Original link on Dec. 9, 2019

Have you ever made your own strawberry jelly? The recipe is straightforward: toss together 1 cup of strawberries (fresh or frozen), 1 cup of sugar, and 1 tablespoon of pectin (to thicken). Bring to a boil and let it cool.Congratulations, you've made your own jelly! It also tastes 10x better than st…


A Week of Symfony #675 (2-8 December 2019)

Written by Symfony blog / Original link on Dec. 8, 2019

This week, development activity focused on fixing the bugs reported for the recent Symfony 4.4 and 5.0 versions. We also improved the Slugger to make it more portable and added support for autowiring PHP 7.4 typed properties. Lastly, the videos of SymfonyCon 2019 Amsterdam conference were published…


★ A recap of 2019

Written by murze.be / Original link on Dec. 8, 2019

A year ago, I wrote a recap of 2018. Now that 2019 is coming to a close, I thought it might be fun to write a similar post on what I did this year.On a personal level #I don't want to share too much about my private life, but I can say that I'm lucky enough to, together with my girlfriend, get to …


Update on OpenAPI and JSON Schema

Written by Phil Sturgeon / Original link on Sep. 7, 2019

Short version: JSON Schema Draft 2019/09 was published, and OpenAPI v3.1 looks likely to have #1977 included - which brings full JSON Schema Draft 2019/09 support. So when will OpenAPI v3.1 come out? Tough to say, but there is talk of maybe getting an RC1 out in a few weeks, and the more complex th…