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
@derickr the best I could do
=> More informations about this toot | View the thread
@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/
=> More informations about this toot | View the thread
PUFA #956 3/6 03:06
šŖšµā¬ā¬ā¬ā¬ā¬ā¬ā¬šµ
šŖā¬ā¬ā¬ā¬šŖšŖšŖā¬ā¬
šŖšŖšŖšŖšŖšŖšŖšŖšŖšŖ
https://pufa.afup.org
=> More informations about this toot | View the thread
PUFA #955 3/6 08:48
šŖšŖšµšŖā¬ā¬šŖšµā¬ā¬ā¬
šŖšŖā¬šŖā¬šµšŖšŖšŖā¬ā¬
šŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖ
https://pufa.afup.org
=> More informations about this toot | View the thread
PUFA #953 2/6 02:19
šŖā¬ā¬šŖšŖšŖ
šŖšŖšŖšŖšŖšŖ
https://pufa.afup.org
=> More informations about this toot | View the thread
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
PUFA #950 4/6 12:56
šŖšµā¬ā¬ā¬šµšµā¬ā¬šµšµā¬
šŖā¬šµā¬šµšµā¬šµā¬ā¬ā¬ā¬
šŖšŖšŖā¬šŖā¬šµšµšµā¬ā¬šµ
šŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖ
https://pufa.afup.org
=> More informations about this toot | View the thread
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
PUFA #949 3/6
šŖā¬ā¬ā¬ā¬šŖšµā¬šµšµšŖšŖ
šŖā¬ā¬šŖā¬šŖšµā¬šµā¬šŖšŖ
šŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖšŖ
https://pufa.afup.org
=> More informations about this toot | View the thread
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
=> More informations about this toot | View the thread
[#]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
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
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
[#]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
[#]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
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
=> More informations about this toot | View the thread
Coming to the next minor version of #LeagueURI more string representation to help you display your URI the right way #php
=> More informations about this toot | View the thread
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
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 This content has been proxied by September (3851b).Proxy Information
text/gemini