Tootfinder

Opt-in global Mastodon full text search. Join the index!

@crell@phpc.social
2024-04-24 22:37:45

Ha! I forgot, I did once do an article version of my #PHP arrays talk for php[architect].
phparch.com/article/never-use-
Subscribers can get it from the…

@Schrank@phpc.social
2024-04-23 06:30:25

You are used to #PHP and want to #debug in #ruby?
Do this:
puts object.inspect
raise "Stop the program here"

@wyri@toot-toot.wyrihaxim.us
2024-04-25 21:21:26

Been putting the finishing touches on Bunny's transformation into #fibers PR. One of the major things for me there is visualizing the changes, especially the breaking changes. For example switching from a promise based API to a fibers based API:
#php @…

@crell@phpc.social
2024-05-24 15:13:10

Hey #PHP. When you use union and intersection types, do you include spaces?
(RT for reach, etc. This is survey data for @…. If you know of any official policies by major projects already, please note/link in the replies.)

@ian@phpc.social
2024-04-25 16:40:33

"PHP has thrived in anarchy for 25 years" - @… #phptek

@crell@phpc.social
2024-04-24 16:09:32

Time to learn about #PHP Enums! :-P
#phptek

@crell@phpc.social
2024-04-25 02:50:52

Senior leaders of the #PHP community, being very professional. #phptek

@ian@phpc.social
2024-04-25 19:07:41

"My name is Elizabeth Smith. I've been programming in PHP since *mumble*"
- @… starting off her Modern SQL #phptek talk

@crell@phpc.social
2024-04-24 16:33:36

Uh oh. Andy Snell found a loophole in #PHP Enums. @… should we care? :-)
#phptek

@crell@phpc.social
2024-04-24 16:44:42

"You can do a lot of messed up things in #PHP." via Andy Snell
#phptek

@ian@phpc.social
2024-04-25 19:07:41

"My name is Elizabeth Smith. I've been programming in PHP since *mumble*"
- @… starting off her Modern SQL #phptek talk

@sebobo@neos.social
2024-05-06 07:38:48

Been having problems with 2 local #PHP projects on my Mac closing the connection when using PHP-FPM. Finally after almost 1 year (since Sonoma apparently) I found the solution:

@crell@phpc.social
2024-04-24 18:55:02

Advanced PHPUnit Data Provider shenanigans. #PHP
Part 1: peakd.com/hive-168588/@crell/f
Part 2:

@crell@phpc.social
2024-04-25 23:20:40

. @… is holding court on #PHP Internals history for the #phptek after after party...

@crell@phpc.social
2024-04-24 18:18:25

Lunch conversation at #phptek: Career advice, cosmology, and quantum theory.
#PHP

@crell@phpc.social
2024-04-25 15:44:53

Classes are not a tool for code organization.
They're a tool for problem/business definition.
Using them as an organization tool is how you get 10,000 line trainwrecks.
#PHP #Programming

@wyri@toot-toot.wyrihaxim.us
2024-06-18 12:10:06

Updating (#PHP) packages to @… Promise v3, and test your types with @…:

@crell@phpc.social
2024-04-24 16:43:11

Hot.
For more on this, see #PHP #enum

@joe@toot.works
2024-06-13 12:53:45

Does anyone have a trick to getting the #PHP oci8 plugin working on an m1 machine? I spent hours yesterday trying to get the damn thing working.

@ian@phpc.social
2024-04-23 15:29:16

Speaking of cutovers, planning on merging the PHP 8.2 upgrade PR for Joind.in's API over lunch today. That PR also includes a *lot* of type enforcement that wasn't there before, so I expect stuff to break. Plan is to have things fixed by the time folks want to throw #phptek feedback in for the last session of the day.
Want to help triage/clean up? Find me at the conference, or hop in Sl…

@robert@flownative.social
2024-05-30 12:14:31

Now @… talks about PHP types, all the way down to its implementation in the PHP engine.
#neoscon24 #php

@crell@phpc.social
2024-04-23 20:34:16

Proposal for a conference talk: How to configure #PHPStorm and all its tooling extensions (xdebug, phpstan, php-cs-fixer, etc.) to use a docker container consistently.
That could easily fill a tutorial...
#PHP #PHPTek

@rokku@soc.saiyajin.space
2024-06-12 00:18:03

Why on earth do we still have to deal with nonsense error codes like 500 if it comes to php? in all other scripting languages i get strack traces, error messages and what not. not so in #php you got sh*t. Happily searching hours if it is the #webserver the fpm, the application or sth else nobo…

@wyri@toot-toot.wyrihaxim.us
2024-05-20 11:27:45

Thanks to @… Bunny #PHP will support client properties in the upcoming 0.5.6 and 0.6 releases. Client properties can be used to set a human readable name to your connection with #RabbitMQ:

@phpugmrn@phpc.social
2024-05-06 12:45:05

We are seeking speakers for our next #phpugmrn meetups in the Mannheim, Germany area. In-person presentations are preferred, but we are also open to remote talks. Anything #PHP or web development related is fine for us. If you are interested, let us know. Thx!

@Schrank@phpc.social
2024-05-18 08:44:09

Preparing a talk „from url in browser to first byte“ in context of #php.
What little, not obvious things, do you think are a good addition?
Like: a correct time is important for proper encryption

@michabbb@social.vivaldi.net
2024-05-11 22:14:39

#php #laravel

@teledyn@mstdn.ca
2024-05-05 20:35:03

I do have trouble with modern language, so many things have changed. For example, when I was a young man, a "minor number release N" meant "no breaking changes for minor-versions less than N" (I'm looking at you #PHP! Oh, yes, #Java and #Ruby too, though I'm sure you're nothing special among your peers)

@emd@cosocial.ca
2024-03-27 04:21:46

Anyone out there in #php or #laravel -land explain this?

Showing PHP where ‘intval(100.0)’ is 100, 220/2.2 is 100.0 and intval(220/2.2) is 99
@mmoya@mastodon.social
2024-05-27 15:44:10

A #PHP filter to prepend `Hello world!` to `/etc/passwd`, source ambionics.io/blog/iconv-cve-20

@crell@phpc.social
2024-04-14 16:22:02

Using #PHP arrays as pseudo-objects is almost never the right answer. They're less self-documenting, slower, worse on memory, and more bug prone.
peakd.com/php/@crell/php-use-a

@phpugmrn@phpc.social
2024-06-04 08:34:00

We are seeking speakers for our next #phpugmrn meetups in the Mannheim, Germany area. In-person presentations are preferred, but we are also open to remote talks. Anything #PHP or web development related is fine for us. If you are interested, let us know. Thx!

@michabbb@social.vivaldi.net
2024-05-11 21:47:58

#google #gemini 1.5 pro is pretty amazing 😱 😍 🚀
a whole github python project loaded given the prompt: rewrite this project to #php
And the result didn´t have one single error... crazy.…

@crell@phpc.social
2024-05-06 13:22:39

This looks very interesting...
#PHP #wasm

@wyri@toot-toot.wyrihaxim.us
2024-04-14 19:23:26

Reimagining how to deploy my #PHP applications to #Kubernetes. Turn between #Helm sub chart and Operator style. Requirements:
* A way to pick up configuration from the code (cronjo…

@Schrank@phpc.social
2024-06-09 17:43:58

I have a #PHP cli script which looks like this:
->run($argv[1], $argv[2]);
the 2nd parameter is optional and has a default value. Is there a way to not pass $argv[2] if it is not present to not run into
run(): Argument #2 ($path) must be of type string, null given
Or do I need to test this and have two different calls?

@crell@phpc.social
2024-06-13 15:11:01

Bypassing #PHP visibility controls. Please don't do this often.
peakd.com/hive-168588/@crell/p

@sebobo@neos.social
2024-04-04 07:45:11

Best addition to any #Node package.json, #PHP composer.json or other dependency managers file would be a mandatory „why“ field for each single dependency which requires a minimum number of sensible words.
Could make devs think twice before adding and help (me) when upgrading projects after some time.
<…

@Schrank@phpc.social
2024-06-09 17:43:58

I have a #PHP cli script which looks like this:
->run($argv[1], $argv[2]);
the 2nd parameter is optional and has a default value. Is there a way to not pass $argv[2] if it is not present to not run into
run(): Argument #2 ($path) must be of type string, null given
Or do I need to test this and have two different calls?

@wyri@toot-toot.wyrihaxim.us
2024-06-12 19:40:20

This 247 line #PHP file runs perfectly fine without all the code style fixes. It looks like shit, it is a hot mess to read and understand. But it works perfectly fine, and it wasn't weird considering how old and niche it is:
P.S. This isn't the updated file I found while googling the function name 😉

@crell@phpc.social
2024-04-14 19:28:36

#Tukio 2.0 for #PHP has been released! The premiere stand-alone #PSR14 event dispatcher now features near-instant listener lookups, a simplified API (with full backward compatibility), more automation, more robust orderin…

@Schrank@phpc.social
2024-06-09 17:43:58

I have a #PHP cli script which looks like this:
->run($argv[1], $argv[2]);
the 2nd parameter is optional and has a default value. Is there a way to not pass $argv[2] if it is not present to not run into
run(): Argument #2 ($path) must be of type string, null given
Or do I need to test this and have two different calls?

@michabbb@social.vivaldi.net
2024-04-05 10:38:01

Generate Code Coverage in #PHP #Laravel With PCOV
laravel-news.com/generate-code

@crell@phpc.social
2024-03-26 14:50:35

The interview I did on Crell/#Serde is now available in German!
#PHP

@wyri@toot-toot.wyrihaxim.us
2024-05-18 20:37:49

Doing some #PHP package maintenance tonight, this dev dependency bump kinda stood out 😅 . Mainly I make sure my packages work on the latest #PHP versions, either through support requests or when I run into issues myself. Most of my packages are designed with the future in mind.
The long-term plan is to get reusable workflows for every package and #Renovate to open PR's more aggressively than #dDpendabot to uncover potential future issues. Currently rolling that out with every package I

@crell@phpc.social
2024-05-18 14:28:31

Please, web app developers, consider how your users will upgrade. If your upgrade process is "remove the old one, unzip the new one", then it's not an upgrade process. It's an encouragement to never upgrade.
#PHP #Laravel

@michabbb@social.vivaldi.net
2024-05-17 06:20:19

Disabling Composer's default timeout inside of scripts
ryangjchandler.co.uk/posts/dis

@phpugmrn@phpc.social
2024-06-11 12:17:27

On the 27th of June, we will be hosting our June meetup.
If you would like to attend, please sign up using the following link: meetup.com/phpug-rhein-neckar/

@Schrank@phpc.social
2024-06-17 07:20:09

I have a simple API running on #AWS #Lamda. I already learned, that for auth I‘ll use #Cognito. Is there a service to count api calls to charge my customer based on usage?

@wyri@toot-toot.wyrihaxim.us
2024-05-10 20:54:35

Merged #php #amqp #rabbitmq

@crell@phpc.social
2024-05-17 21:16:37

Any time I see "bad" code, the first answer is usually "you need more precise and strict types."
Often there's other stuff wrong, but easily 70% of the time, the fix starts with "define the problem better and the problem goes away."
#PHP #Kotlin

@michabbb@social.vivaldi.net
2024-06-04 22:38:16

jolicode/automapper: :rocket: Very FAST #PHP AutoMapper with on the fly code generation
The AutoMapper solves a simple problem: removing all the code you need to map one object to another.
github.com/jolicode/automapp…

@phpugmrn@phpc.social
2024-06-11 12:17:27

On the 27th of June, we will be hosting our June meetup.
If you would like to attend, please sign up using the following link: meetup.com/phpug-rhein-neckar/

@wyri@toot-toot.wyrihaxim.us
2024-05-07 21:55:11

Kinda forgot how much fun it was to write code stitching map tiles together, and also how easy it was. Currently at 82 lines of #PHP. Once finished it will be a new package, as the #golang has some massive glaring bug in it that took me 6 years to find. Sprinkling some threads and

@michabbb@social.vivaldi.net
2024-06-06 22:22:16

Access and modify JSON-based data objects while enforcing JSON Schema
#php

@wyri@toot-toot.wyrihaxim.us
2024-05-07 21:55:11

Kinda forgot how much fun it was to write code stitching map tiles together, and also how easy it was. Currently at 82 lines of #PHP. Once finished it will be a new package, as the #golang has some massive glaring bug in it that took me 6 years to find. Sprinkling some threads and #AMQP over this once it's done. The home clusters fans will sing once more

@wyri@toot-toot.wyrihaxim.us
2024-06-04 16:26:14

I ended up with this adding some #PHP to the one liner:

@michabbb@social.vivaldi.net
2024-04-01 11:45:35

Announcing TransformersPHP: Bring Machine Learning Magic to Your #PHP Projects
#llm #ai

@wyri@toot-toot.wyrihaxim.us
2024-06-03 19:58:42

Wrote a fancy one-liner because I didn't want to toss #PHP in the mix and go all in on #bash. #GitHub Actions response to it: 🖕 🖕 🖕
The first image is the full one liner, but it …

@crell@phpc.social
2024-03-23 00:29:24

If you use #Tukio in your #PHP application for #PSR14 #EventDispatcher support, version 2 is nearly ready! It should be…

@wyri@toot-toot.wyrihaxim.us
2024-06-02 22:03:12

The things I write in my (#PHP) package documentation: And, well, not ship a package without being fully functional 😅.

@ian@phpc.social
2024-04-26 20:20:52

Heading back ORD-AUS soon. Thanks to everyone who organized, sponsored, spoke at, or attended #phptek! It's great to see the in-person community growing again, including a bunch of new faces to the PHP conference scene, plus another bunch of folks who I haven't seen in awhile.
Let's do this again soon!

@crell@phpc.social
2024-05-09 15:17:16

Having tasted extension functions in #Kotlin, I really really want them in #PHP. I am not sure how that would be even feasible, though. 😞

@crell@phpc.social
2024-04-08 15:45:12

Ryan and Leanna are the kind of wonderful people we all aspire to be. If there was ever someone who didn't deserve this, it's them.
Please help if you can, #PHP.
gofund.me/c283d28a

@michabbb@social.vivaldi.net
2024-03-26 11:38:01

A discrete event simulator in #PHP
How do you #test #code designed to run on a large and expensive computing cluster? How do you reproduce complex, time-dependent emergent behaviour of a cluster of…

@wyri@toot-toot.wyrihaxim.us
2024-03-31 21:22:20

Also added a bit about my @… based #PHP #ORM and my thoughts on #ReactPHP

@crell@phpc.social
2024-05-07 23:34:44

Silly me for thinking I couldn't find an ORM I dislike more than the ones I've used in #PHP. Then I found #Java Spring Boot / JPA...
This is a whole new level of asinine...

@crell@phpc.social
2024-06-08 15:09:21

And yet again, using Docker (via Lando) plus XDebug PHPStorm = things just don't bloody work, despite all the settings being correct.
I really wish this were not such a regular occurrence. I don't even know which tool to blame.
#PHP

@crell@phpc.social
2024-03-27 22:00:02

Using #PSR-3 placeholders properly in #PHP (and other awesome alliterations).
peakd.com/hive-168588/@…

@crell@phpc.social
2024-03-28 15:44:50

This is a legit clever way to test a zillion closely-related test cases. And not just for regexes as shown here.
#PHP

@wyri@toot-toot.wyrihaxim.us
2024-05-20 11:34:23

Had fun this weekend working on a performance focussed proof of concept using Bunny in the #PHP #queue interop contracts. The first metrics are in using the #RabbitMQ cluster on my #Raspberrypi #Kubernetes home cluster. (Which isn't meant for high performance. Still pleased by these numbers.)

@crell@phpc.social
2024-06-06 20:39:39

This app is written in a language with a very strong and powerful type system, and is going out of its way to not use it. *cries*
#Kotlin #PHP #ProbablyOtherLanguagesToo

@crell@phpc.social
2024-05-02 15:53:20

#PHP from 2014 to 2024:
This language is pretty sweet, NGL.
youtube.com/watch?v=p_6ewdiwnR

@crell@phpc.social
2024-05-04 08:44:02

Null is problematic, but why? Let's see why, and let that guide us to new alternatives. #PHP
peakd.com/hive-168588/@crell/m

@michabbb@social.vivaldi.net
2024-06-04 22:48:36

How adding Type Declarations makes Your Code Dangerous
#php

@crell@phpc.social
2024-05-01 19:59:18

ICYMI, I spoke with Brent Roose about the new property hooks feature coming to #PHP 8.4, the RFC process, and how we can make it better.
youtube.com/live/ULUrhIrjyAg

@crell@phpc.social
2024-05-02 01:08:26

Only use inheritance when you want *both* hierarchical code reuse *and* subtype polymorphism.
#PHP article from a decade ago:

@crell@phpc.social
2024-04-26 14:23:40

Another day, another way in which the #Kotlin/#Java ecosystem is weaker/worse than the #PHP ecosystem.
I'm kind of tired of finding these.