Toots for nyamsprod@phpc.social account

Written by ignace nyamagana butera on 2025-02-01 at 19:33

Now that PHP8.4 support new MyClass()->method() without parentheses does it still make sense to add or have empty named constructor like MyClass::new() or MyClass::make() or MyClass::create()

[#]php84 #apidesign

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-31 at 10:55

@derickr the best I could do

=> View attached media

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-31 at 10:36

@derickr I see JS temporal API allows this to happen ? But if my memory serve me right this is not possible with PHP DateInterval correct ?

Example comes from https://developer.mozilla.org/en-US/blog/javascript-temporal-is-coming/

=> View attached media

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-31 at 10:02

PUFA #956 3/6 03:06

šŸŸŖšŸ”µā¬›ā¬›ā¬›ā¬›ā¬›ā¬›ā¬›šŸ”µ

šŸŸŖā¬›ā¬›ā¬›ā¬›šŸŸŖšŸŸŖšŸŸŖā¬›ā¬›

šŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖ

https://pufa.afup.org

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-30 at 16:09

PUFA #955 3/6 08:48

šŸŸŖšŸŸŖšŸ”µšŸŸŖā¬›ā¬›šŸŸŖšŸ”µā¬›ā¬›ā¬›

šŸŸŖšŸŸŖā¬›šŸŸŖā¬›šŸ”µšŸŸŖšŸŸŖšŸŸŖā¬›ā¬›

šŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖ

https://pufa.afup.org

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-28 at 09:08

PUFA #953 2/6 02:19

šŸŸŖā¬›ā¬›šŸŸŖšŸŸŖšŸŸŖ

šŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖ

https://pufa.afup.org

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-26 at 17:08

Reason #34556 I love final in libraries. #PHP8.4 introduced a new DOM extension that #LeagueCSV should use. If the class I need to update was final this would be straightforward and no-one would even notice. But because it is not, I have to perform some intellectual gymnastic to add support for modern DOM extension without BC breaking any "protected" methods to reduce BC on any class that extends the class.(which IMHO they should not have done in the first place). #OSS life

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-25 at 15:20

PUFA #950 4/6 12:56

šŸŸŖšŸ”µā¬›ā¬›ā¬›šŸ”µšŸ”µā¬›ā¬›šŸ”µšŸ”µā¬›

šŸŸŖā¬›šŸ”µā¬›šŸ”µšŸ”µā¬›šŸ”µā¬›ā¬›ā¬›ā¬›

šŸŸŖšŸŸŖšŸŸŖā¬›šŸŸŖā¬›šŸ”µšŸ”µšŸ”µā¬›ā¬›šŸ”µ

šŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖ

https://pufa.afup.org

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-25 at 06:59

Today the #LeagueURI package has joined the 100M+ downloads club! This shows that many of you have found value and trust in my work. Iā€™d be truly grateful if you considered showing your support by becoming a sponsor to keep the adventure going! Thanks in advance!

https://github.com/sponsors/nyamsprod

[#]PHP #opensource

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-24 at 18:21

PUFA #949 3/6

šŸŸŖā¬›ā¬›ā¬›ā¬›šŸŸŖšŸ”µā¬›šŸ”µšŸ”µšŸŸŖšŸŸŖ

šŸŸŖā¬›ā¬›šŸŸŖā¬›šŸŸŖšŸ”µā¬›šŸ”µā¬›šŸŸŖšŸŸŖ

šŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖšŸŸŖ

https://pufa.afup.org

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-18 at 09:40

OK this still need some ironing but... in #LeagueCSV 9.22.0 a new interface is added TabularData which enables the following magic šŸ˜ #PHP #interoperability #extension #tabulardata for more information and limitations check the documentation https://csv.thephpleague.com/9.0/reader/resultset/#instantiation

=> View attached media

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-17 at 22:40

[#]TIL: I finally found a reason to use MySQLi instead of PDO ...you can rewind a MySQLiResult ... but you can not rewind a PDOStatement #PHP #RBMS

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-13 at 19:24

What would it take for @phpfig to adopt and then improve. https://github.com/php-http/psr7-integration-tests clearly this is something missing for PSR7/PSR17 @Crell @mwop šŸ¤” and the owners seem OK to hand it over to the organization ?

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-09 at 21:42

Would anyone be interested in a talk around #LeagueCSV I promise it won't be boring. I have never done a talk on it so if you have a PHP group not too far away from Brussels I'll be more than happy to present to your group the package and some hidden gems inside it!!

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-08 at 19:38

[#]LeagueCSV 9.21.0 is out with a full rewrite of the exposed PHP stream filter API to improve its usage. see https://github.com/thephpleague/csv/releases/tag/9.21.0

=> View attached media | View attached media

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-05 at 10:01

[#]OSS so what started as a simple issue opened for an unrelated feature became a full rewrite of the Stream Filter API in #LeagueCSV šŸ˜‚ But I am kind of excited by the new rewrite. It gives more power to the user

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-04 at 11:42

One of the most underrated, under-used, unknown feature of #PHP is the powerful PHP stream filter API with the weirdest class of them all

https://www.php.net/php_user_filter

I know it because I use them heavily in #LeagueCSV šŸ˜ˆ and they are getting a clean fresh API in the next minor version to improve their usages

=> View attached media

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-03 at 10:15

Coming to the next minor version of #LeagueURI more string representation to help you display your URI the right way #php

=> View attached media

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2025-01-02 at 20:13

Periodic Reminder if you are looking for a #WHATWG #URL compliant pacakge for PHP don't look further https://github.com/TRowbotham/URL-Parser form https://github.com/TRowbotham is the best and up to date implementation that exists

=> More informations about this toot | View the thread

Written by ignace nyamagana butera on 2024-12-28 at 06:30

When a person tells you that #PHP is old not like #javascript just tell them that they were both released in 1995 then slowly but with confidence drop out of the conversation to preserve your lifespan for some productive activities like playing with your kids or watching a movie

=> More informations about this toot | View the thread

=> This profile with reblog | Go to nyamsprod@phpc.social account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/109297360357576960
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
340.567775 milliseconds
Gemini-to-HTML Time
8.616912 milliseconds

This content has been proxied by September (3851b).