PHPnews.io

Overview for 'php8'

Rate limit your Symfony APIs!

Written by JoliCode / Original link on Nov. 22, 2021

Sometimes, you need to put some custom rate limits on your APIs! In this article I'll show you how you can combine the symfony/rate-limiter component and some usual controllers. RateLimit configuration The goal here is to have the following rate limit configuration works thanks to PHP8 attributes…


Only Complete Applications

Written by Krakjoe / Original link on Jun. 30, 2021

Fig 1. PFA RFCToday the vote will close on Partial Function Application, and the feature has been refused.It was less effort to write a debugger for PHP than it was to make partial function application work! The debugger, a few of us wrote in a few days. Partial application took up many weeks of my…


Literally Internals

Written by Krakjoe / Original link on Jun. 28, 2021

Fig 1. Some Magnified StringsHow much magnification does it take to make something quite tidy, like a piece of string, look an utter mess ?There is an RFC in progress called is_literal which I'm providing the implementation for.I want to talk a little bit about that ...Where did it start ?You imagi…


Worthiness

Written by Krakjoe / Original link on May. 1, 2021

My first commit to pthreads was August 28th 2012, while the initial implementation was written rapidly, it had been on my mind daily - because of Java - for maybe a few years. Almost a decade I've spent trying to show that threads in PHP are possible, that despite what everyone says, PHP was an exc…