phpete

@phpete1

I am a web developer and app developer. I love to build and learn things.

Commit activity

403 commits in the last 30 days

longest streak 21 dayscurrent 21

8,264 XPMaximum rank (UID 0)

Yesterday

To my fellow PHP devs. How long have you been writing PHP? I’m in the 5 - 10 years (on and off for 15 years)
Poll options

2d left

I wrote the first news site in the US to be considered a legal paper of record in 1997 on PHP. Prior to that, I wrote proto wiki and social media sites using it.
Finally, GitHub enforcing 2FA on accounts! Will hopefully help keep our package ecosystems a bit safer.

Thu, Nov 5

I’ve discovered a new Laravel feature. ❌ Post::update([‘updated_at’=>now()]); ✅ Post::touch(); I love that I’ve used it for 3 years and still find little things like this!
careful with the static one though 😅 Post::touch() goes through the query builder and touches every post in the table, $post->touch() is the single one
I think touch() is been in Laravel for a long time now. I also like this
php
User::withoutTimestamps(function () {
    User::find(1)->update(['status' => 'active']);
});

Wed, Nov 4

Managed to update phpete1/snitch so it can - let you switch BetterLeaks versions - has an init script that publishes betterleaks config files - by default stops scanning vendor, node_modules and .env. So less noisy! Time to install it on some projects and put it to the test 💪…
GitHubGitHub - phpete1/snitch: Scan your PHP project for leaked secrets with one command, powered by Betterleaks.Scan your PHP project for leaked secrets with one command, powered by Betterleaks. - phpete1/snitch
So I’ve published a new Composer package tonight. composer require --dev phpete1/snitch Snitch wraps the Betterleaks binary, a Go tool that scans your project for passwords left in your codebase, into a Composer package. I’ve leaked passwords on Git before, so this one’s…
GitHubGitHub - phpete1/snitch: Scan your PHP project for leaked secrets with one command, powered by Betterleaks.Scan your PHP project for leaked secrets with one command, powered by Betterleaks. - phpete1/snitch

Tue, Nov 3

@tom any devs from Scotland on here? How many?
9 members whose public profile location mentions Scotland (out of 12,074 profiles). That's profile text, not verified residence.

Mon, Nov 2

So I started ampcode (hobby plan while I try it out) tonight I brought my OpenCode Go sub and set up the models and modes I connected my first project and asked it to write tests My son woke up the second I hit enter.…
Seriously, I commit to one AI tool, then see recommendations for another new agentic AI product/subscription that is “better” than the rest! AI is wonderful yet overwhelming 😬
Remember, "better is subjective". What's your #1? Claude is my primary, but I subscribe to Chatgpt, Github Copilot, and Hermes as well. It's all going to take a while to settle into place. I'll probably ditch copilot soon, but it was my primary for a couple of years before Claude…