@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.

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.

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.

marcel, to random German
@marcel@mastodon.social avatar

The first episode of Netflix's adaption of The 3-Body Problem was fantastic. If they can keep up this quality, it might come close to the books. Exciting!

stefanzweifel,
@stefanzweifel@phpc.social avatar

@marcel on the last few pages of book 1.

As you read all books, should I wait and read the other books first? Or can I start with the TV show after I read book 1?

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

And the award for the worst country select field goes to … Meta.

Countries are sorted randomly. Not by name or abbreviation.
Oh and the native behaviour of a select field – typing searches the options – does not work. (It jumps to the option that starts with the last character you typed)

@grumpy_website

stefanzweifel,
@stefanzweifel@phpc.social avatar

@michael @grumpy_website I need to fill this form out to test an API integration and it took me more than 1 minute just to find the right country.

This isn't even a "country" field in the form.
It's a postcode field where the validation depends on your selected country. 🤷

stefanzweifel,
@stefanzweifel@phpc.social avatar

@michael @grumpy_website Oh my. It get's even better.

Their debug-tool displays the form in an old design. That field has a nice search field at the top. 🤦

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

denniskoch, to Laravel
@denniskoch@phpc.social avatar

Does anyone have a good solution how they handle standards they use in every #Laravel project? Like packages, external tools, configuration in service providers, theming, …

stefanzweifel,
@stefanzweifel@phpc.social avatar

@denniskoch A friend recently mentioned that they "share" (copy & paste) the same composer scripts in all their projects.
They can run composer run test, composer run refactor or composer migrate in all their projects.

But no idea how one could share that easily between repos.

Just yesterday I wanted to start integrating phpstan in more projects of mine and asked me the same question.

freekmurze, to Laravel
@freekmurze@phpc.social avatar

💪 Last week (and weekend) I tagged 11 compatible version for about 100 of our most packages.

A big thank you to @laravelshift for providing quality PRs that were a good starting point.

The next few days, I’ll tag more packages 👍

🥳 Have fun upgrading to L11

stefanzweifel,
@stefanzweifel@phpc.social avatar

@freekmurze Thank you for going through all those PRs, Freek! 🧡

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/

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Weird feeling today. Pulled the plug on a project at work today which I took over 11 years ago.

It was my first project at the company. I first migrated it from "raw" PHP, then to Codeigniter and then to Laravel.

This project alone tought me so much: scaling an app to send thousands of mails per day and deal with incoming webhooks. Tracking of server side events without impacting performance for users. Designing custom email templates. And so much more.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

I'm in that stage of my life, where I walk from the office back to my place during lunch brake to take the butter out of the fridge, so it's not too firm when I want to bake muffins this evening. 👨‍🍳

bramus, to random
@bramus@front-end.social avatar

🚐💥🚗

Some bloke rear-ended me on the highway today. I was doing the mandatory 70kph because of road works and he obviously was going faster.

No injuries, only material damage. The insurance companies will deal with it.

So, how's your weekend going?

stefanzweifel,
@stefanzweifel@phpc.social avatar

@bramus Oh no. Glad you’re safe. Hope all the paperwork goes through quickly.

gruber, to random
@gruber@mastodon.social avatar

Mozilla should definitely do this. And then when it goes nowhere, everyone will finally agree that PWAs were never a great platform for mobile apps. Right? https://indieweb.social/@whalecoiner/111940727614198057

stefanzweifel,
@stefanzweifel@phpc.social avatar

@gruber You do know why PWAs were “never that great for mobile apps”, right? Right?

Apple's claim that "a low number of people" is affected by turning of PWA support in the EU, is only because Safari – for a long time – didn't implement all the necessary features for a great PWA.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Great talk by @dunglas at explaining .

stefanzweifel,
@stefanzweifel@phpc.social avatar

@dgoosens @dunglas @ApiPlatform @symfony Fully agree. Love the project and the energy that is behind it.

And how all major players in the ecosystem are looking to or already supporting it.

MoritzGiessmann, to random
@MoritzGiessmann@mastodon.social avatar

News from browser plugin world:
I made a Firefox Add-On that automatically redirects YouTube links to YewTu.be.

Right now it’s just on GitHub, but I will keep you posted when it goes live in the store.

https://github.com/MoritzGiessmann/yewtube-redirect/

stefanzweifel,
@stefanzweifel@phpc.social avatar

@MoritzGiessmann didn’t know about yewtu.be.

dianawebdev, to random
@dianawebdev@phpc.social avatar

I started developing my first Raycast extension, inspired by @ross 's fantastic http://caniphp.com. It is designed to easily reference available features in each major PHP release.

It's still pretty much MVP, but I'm curious to hear your thoughts!

video/mp4

stefanzweifel,
@stefanzweifel@phpc.social avatar

@dianawebdev How’s the DX of developing such extensions? The thing that keeps me in Alfred is the super simple workflows editor.

cliophate, to random
@cliophate@overkill.social avatar

Ok, question time.

Every evening I close every app except for my browser. Anyone else?

Do you close all apps? Some of the apps? None of the apps?

Do you turn off your computer? If yes, why?

stefanzweifel,
@stefanzweifel@phpc.social avatar

@cliophate
Work: close all apps and shutdown Mac on Friday with an Alfred worklfow.
Personal: Apps are closed when I don’t need them anymore. Mac goes just to sleep each night.

andrewfeeney, to random
@andrewfeeney@phpc.social avatar

People who run code coverage checks in their CI pipelines, what do you DO with them? Is it just for reference? Do you fail if coverage decreases? Do you fail below some fixed percentage? How do you track it?

stefanzweifel,
@stefanzweifel@phpc.social avatar

@andrewfeeney My open source packages have a min-percentage that I would like to reach/keep. CU fails if coverage drops below the threshold.

In my apps I usually run the test suite on a monthly schedule with coverage; but forget to actually check it or do something with it.

Each route in my apps have an integration test. So getting to 100% coverage is never my goal.

robb, to random
@robb@social.lol avatar

Did a post for my homescreen because it's been seven years since the last one https://rknight.me/blog/my-home-screen-january-2024/

stefanzweifel,
@stefanzweifel@phpc.social avatar

@robb What are you looking for in a read-it-later app?

I'm currently writing my own web-app, as I'm not satisfied with what Instapaper, Pocket & co. has to offer.
Still a long way away from a public beta-release, but current built features are:

  • extract article content
  • convert text to speech
  • generate podcast episodes from converted articles
  • send articles to Kindle

Share a very early screenshot of the UI in this post: https://phpc.social/@stefanzweifel/110906465364853219

regis, to random
@regis@phpc.social avatar

Goal of the year is to build a personal music library to move away from music streaming services.

Like we had 20 years ago. Good old music files on a disk somewhere. We can’t be hostages of those streaming platforms like we are now.

The problem now is to find modern softwares, something like Roon, that will be future proof.

I don’t even know if we use ID3 tags nowadays.

Where should I start.

stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis Have similar plans. Backup/sync existing Plexamp music library from NAS to SSD, so that I can listen to the entire library everywhere.

stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis love it. Usually I just download entire albums. Haven’t used the playlists much yet.

freekmurze, to Life
@freekmurze@phpc.social avatar
stefanzweifel,
@stefanzweifel@phpc.social avatar

@freekmurze Take care Freek. Hope you can keep the momentum and that your 2024 will be better than 2023.

stefanzweifel, to blogging
@stefanzweifel@phpc.social avatar

Last week of the year. Time for the yearly recap blog post.

https://stefanzweifel.dev/posts/2023/12/27/recap-2023

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