Coding
PHP 8.0 Thanks ❤
Hello r/php! PHP 8.0 is a collective effort of all of us, and thank you for all of the efforts! I made a poster (light and dark) with Git commit author names between PHP 7.4 Read more…
Hello r/php! PHP 8.0 is a collective effort of all of us, and thank you for all of the efforts! I made a poster (light and dark) with Git commit author names between PHP 7.4 Read more…
Did you actually enable JIT for PHP8? Because by default, it is basically disabled, because you have to set opcache.jit_buffer_size for it to work (it is set to zero by default). There are also quite Read more…
Hey all, this weekend (since I’m stuck at home anyway) I’d like to give a go to setting up static analysis on a project, but given that this project is quite big (about 10k classes), Read more…
The 6.0.0 release basically brings PHP8 compatibility but also upgrades the underlying graphql-php to 14.0, bringing some breaking changes depending on your usage and thus the major version bump. OTOH for those still on 5.x, Read more…
I’m tackling quite a few APIs lately. Everything is REST, and there are various official and unofficial libraries for them. But I usually find the libraries are not as well documented as the service’s own Read more…
Hey there, PHP 8 introduced attributes – declarative meta-data which can get analyzed to control behaviour. Most PHP-Developers already know similar technique called annotations like doctrine annotations. I read some good articles to get a Read more…
Gsm Detector is a PHP package which allows to know the name of the GSM operator from phone number. Installation Usage Using the package remains quite simple, you have to create a new instance of Read more…
Say you have a class A that depends on B and C. You can either inject B and C into A and mock them during testing, or you can factor out the methods inside A Read more…
When working on large projects with one codebase you have to set up everything only once. But those of you who do a lot of small projects, how do you cope with it? Do you Read more…
During Christmas, i spent a few days working on a small project: https://meteoritedb.com/ Any feedback or ideas are appreciated !! (I think i’m not breaking the rules. It’s a small personal project and i honestly Read more…