@stefanzweifel@phpc.social
@stefanzweifel@phpc.social avatar

stefanzweifel

@stefanzweifel@phpc.social

Web Developer (#laravel #php / #tailwindCSS) • Maker of many open source things • Minimalist • Hiking in the alps • 🇨🇭🏳️‍🌈 he/him

This profile is from a federated server and may be incomplete. Browse more on the original instance.

18+ stefanzweifel, to Eurovision
@stefanzweifel@phpc.social avatar

Swiss broadcasters right now: “Oh fuck. Where do we even host the next Eurovision?”

stefanzweifel,
@stefanzweifel@phpc.social avatar

@phphil Of course Olten is on that list. 😅

robb, to random
@robb@social.lol avatar
stefanzweifel,
@stefanzweifel@phpc.social avatar

@robb Super interested if you will stick to Raycast.

I have been using Alfred for more than 10 years now. I like the modern look of Raycast, but the last time I tried it, it still felt slow compared to Alfred.
Maybe I also just have to switch the shortcuts and force to use it more.

(Also: Great picture in the blog post)

stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis Interesting! I also think the AI stuff would just be a gimmick for me and something I will barely use.
Gonna give it a test run next week. :)

stefanzweifel, to opensource
@stefanzweifel@phpc.social avatar

Soon, my git-auto-commit GitHub action will be used in 70k public repos (🤯).
To celebrate, I checked which are the biggest repos that use my little action.

Some big names are in there. Vercel, GitHub, Grafana, Android.
But also cool community projects like iptv, catppuccin or NotepadNext.

Makes me a proud that my most popular side-project is used in so many cool project. (I remember that I used Notepad++ to work on my World of Warcraft addons back in the day)

stefanzweifel, to php
@stefanzweifel@phpc.social avatar

Never wrote one before, so here's an :

I‘m Stefan. I call my self a Full Stack Developer and have been writing code for the last 15 years. Mostly with . Sometimes or .

Love writing open source packages that solve a particular problem well. I also write long blog posts about how I use certain software on https://stefanzweifel.dev.

When not glued to the desk, I'm enjoying nature, in the gym or in my kitchen cooking or baking for friends and family.

👋

stefanzweifel, to Laravel
@stefanzweifel@phpc.social avatar

Laracon EU is back! Feb 5-6, 2024 in Amsterdam.
https://laracon.eu/

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Anyone else be at "Full Stack Europe" next week in Antwerp?

stefanzweifel, to php
@stefanzweifel@phpc.social avatar

While making my PHP packages compatible with Laravel 11 the last few weeks, I've also spent some time and added PHPStan to all of them.

The more simpler ones are already on level 9. The more complex are still on level 5 or 6. I'm still a novice when it comes to proper type documentation. Goal is to increase levels throughout the year.

Links to all packages:
https://stefanzweifel.dev/projects

#php #phpstan

stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis yeah, max is basically impossible to fulfill in Laravel apps. In packages it’s manageable. A couple of doc blocks are usually enough.

stefanzweifel,
@stefanzweifel@phpc.social avatar

@thgs @regis The problem is Laravel's magic.
Tools like Larastan or the laravel-ide-helper can help here.

The core problem is that for example in this User model, there are no $name or $email properties, but one can use $user->name = ‘Foo’;
https://github.com/laravel/laravel/blob/11.x/app/Models/User.php

As mentioned, I’m a novice when it comes to phpstan and currently don't see the need to go to level 9 in my projects.
My app code these days are often strictly typed PHP classes "outside" of Laravel anyway.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Day 1 of Full Stack Europe is over.
Some great talks about CSS, JS, Svelte and databases are through.

Was a bit too shy on the first day; hope to fix this tomorrow and mingle more.

Thanks @freekmurze and @driesvints for organizing the conference.

Photo of Tobias Petry’s talk about database scaling. The slide says “Before Scaling Out: Databases love bigger machines”.
Photo of Katerina Trajchevska’s talk on engineering management. The slide says “The highest performing engineering teams focus on the impact, not the input”.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

If you’re a dev, you probably already know how good plain-text files are; but this video by No Boilerplate is a good reminder just how perfect plain-text files really are.
(And how Github Issues and Projects is good enough for your work)

https://www.youtube.com/watch?v=WgV6M1LyfNY

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Great talk by @dunglas at explaining .

stefanzweifel, to Laravel
@stefanzweifel@phpc.social avatar

If you're in Zurich this Thursday evening and want to learn more about Laravel, I highly recommend joining us at the Laravel Switzerland Meetup.

Topics this time:

  • Fat Enums
  • How to Kickstart your next App

https://www.meetup.com/laravel-switzerland-meetup/events/298948244/

freekmurze, to random
@freekmurze@phpc.social avatar

🔗 Rethinking deploys at Flare
https://flareapp.io/blog/rethinking-deploys-at-flare

stefanzweifel,
@stefanzweifel@phpc.social avatar

@freekmurze Great to see that others in the community are switching to deployer. Have to give Airdrop a try.

michael, to Laravel
@michael@thms.uk avatar

I love this new Context feature. But I'm wondering if there is any way to use Context without the facade? I personally really prefer Dependence Injection, so I'd love to know if I can use it this way?

@nunomaduro do you know?


https://mastodon.social/@nunomaduro/112128764176469272

stefanzweifel,
@stefanzweifel@phpc.social avatar

@michael @nunomaduro Haven't tested it yet, but I think you could inject this Repository class to get access to the Context object.

https://github.com/laravel/framework/blob/11.x/src/Illuminate/Log/Context/Repository.php#L15

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Love it.
iCloud Drive decided to download all my old photo archives and old Windows XP games iso-files until 100MB of disk space was left.

No delete all node_modules folders and local TimeMachine snapshots. And after three restarts iCloud stopped downloading any more files and gave me back 15GB of data. 🤷

stefanzweifel,
@stefanzweifel@phpc.social avatar

Haha. Microsoft Teams uses 1.8 GB of disk space?!

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Happy Eurovision week to all that celebrate. 🪩

stefanzweifel,
@stefanzweifel@phpc.social avatar

@adfichter I think Nemo has a high chance of winning.
Just listened to the super-cut of all songs this year and their song really stands out.

j3j5, to php
@j3j5@hachyderm.io avatar

Does anybody on the fedi Laravel community knows Aaron Francis? It's really sad that his (awesome) fast-paginate package seems abandoned like this, maybe just a statement acknowledging he can't/doesn't want to maintain it anymore can make the community fork it to keep it maintained. This L11 support PR has been opened and unanswered for 2 months already.

https://github.com/hammerstonedev/fast-paginate/pull/58

stefanzweifel,
@stefanzweifel@phpc.social avatar

@j3j5 Aaron isn‘t the fastest with merging those PRs. On a recent episode of his podcast, he acknowledged that. (Recently lost his job and has 4 small kids)

Maybe a friendly email that states that the PR can be merged as is and a new version can be tagged (because you tested that everything works for L11) helps.

I had to DM him a couple of times for the L10 release last year to upgrade a certain package.

stefanzweifel,
@stefanzweifel@phpc.social avatar

@j3j5 I feel you. Had the same inner monologue when I had to nudge him last time.

He helped me bring sidecar-browsershot to a v1; but that is all the interaction I had with him.

Maybe a friendly comment on that PR can move a new release forward faster.

MoritzGiessmann, to random
@MoritzGiessmann@mastodon.social avatar

Almost three months after publishing, Google still hasn’t crawled all of my blog articles from January. All other big search engines have. I really don’t get it.

stefanzweifel,
@stefanzweifel@phpc.social avatar

@MoritzGiessmann When I moved my domain from .io to .dev it took Google 3-4 months to properly index most of the blog posts. (I think 2-3 are still not indexed)

What helped (?) me logging in to the search-console and manually submit/fix each URL.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar
stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis I've deployed it already. 😄
(Also switched hosting from Vercel to Cloudflare pages.)

Gonna write a couple of blog posts soonish. Next up is also a “microblog" for some smaller/shorter posts.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • rosin
  • ngwrru68w68
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • khanakhh
  • slotface
  • everett
  • vwfavf
  • kavyap
  • provamag3
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • tacticalgear
  • InstantRegret
  • cisconetworking
  • cubers
  • tester
  • anitta
  • modclub
  • Leos
  • normalnudes
  • JUstTest
  • All magazines