ramsey, to php
@ramsey@phpc.social avatar

Last night, I tagged the first “stable” version of socialweb/atproto-lexicon.

It’s a #Lexicon schema parser for the #ATProtocol, and it should come in handy for code-generation purposes—that’s what I’ll be using it for.

As usual, I’ll probably see much more engagement with this post here than I do on #Bluesky. 🤣

#PHP @activitypubblueskybridge

https://github.com/socialweb-php/atproto-lexicon/releases/tag/0.1.0

freekmurze, to php
@freekmurze@phpc.social avatar

🔗 Dreaming of nested properties in PHP
https://sebastiandedeyne.com/php-wishlist-nested-properties/
#php

valorin, to php
@valorin@phpc.social avatar

Overly complex code is a common source of security issues, one I often see when devs attempt to avoid filename collisions…
https://securinglaravel.com/p/security-tip-avoiding-filename-collisions
#PHP #Laravel

freekmurze, to Laravel
@freekmurze@phpc.social avatar

💅 Did you know that RSS feeds can be styled too?

Here’s my old unstyled feed vs my new styled one. View it at https://freek.dev/feed/php.

💪 Our Laravel Feed package will now style your feeds out of the box: https://github.com/spatie/laravel-feed

Thanks for the PR @timvandijck
https://github.com/spatie/laravel-feed/pull/199

ramsey, to php
@ramsey@phpc.social avatar

Opinions/thoughts/advice on monorepos with . Is anyone working within this problem space? What tools do you use?

I know is a . Are the tools they use specific to them, or can others use them?

Girgias, to php
@Girgias@phpc.social avatar

So trying out my custom domain to send emails to the #PHP internals list and it falls in the spam folder in GMail, which is confusing :|

Anyway, new RFC: https://wiki.php.net/rfc/http-last-response-headers

jclermont, to php
@jclermont@phpc.social avatar

As always, I'm pretty non-committal, but @aaronsaray has a definite opinion on the topic of final classes in #PHP. And, as always, we keep the podcast to 15 minutes or less. https://show.nocompromises.io/episodes/when-should-you-use-final-classes-or-private-properties

video/mp4

ctietze, to php
@ctietze@mastodon.social avatar

A question for more experienced #PHP developers than me:

We have this setup where all requests go through a PHP script for authorization (think: cookie) checking before serving files.

That's fine with HTML, but less ideal for 5MB PDFs.

I'm trying to search for ways to use PHP to allow/deny access, but otherwise let the web server (Apache) do its job.

Is there such a facility to rewrite requests for auth, but then go on serve the static files?

ramsey, to wordpress
@ramsey@phpc.social avatar

Hey, y’all! You know what it means that #WordPress will be offering a 100-year hosting plan?

It means we’ll have at least 100 more years of #PHP!

ramsey, to php
@ramsey@phpc.social avatar

This article is all about how things are looking great for hiring Laravel devs in 2024, and I’m not seeing it.

I’ve been job-searching for 3 months, and very, very, very few of those jobs are decent-paying #PHP / #Laravel jobs. Sure, PHP/Laravel jobs exist, but most (anecdotally) pay far less than the rate others are willing to pay for #Golang, #Python, #Rust, #Elixir, #Java, #Csharp, and #TypeScript developers.

The industry does not value the output of PHP developers.

https://laradir.com/blog/why-laravel-could-see-a-huge-rise-in-adoption-in-2024

joe, (edited ) to javascript

Well, that fucking sucks. I just went into my o3 meeting with the boss and was told that I don't have a job anymore. If anybody is looking for an experienced #vue / #node / #php dev in the #Milwaukee area (or remote), let me know.

https://jws.dev/Resume.html

#FediHire #GetFediHired #FediJobs #FediHired

thomastospace, to php
@thomastospace@phpc.social avatar

I need some #PHP feedback on a test implementation of jwt token auth:

JWT tokens are valid forever, however we would like to invalidate all tokens when a user changes their password.

We've solved this by saving a random value at the user, and storing this in the token. Whenever the token is used, we check if this is the same. When a password gets changed, we also change this value, which then makes all old tokens invalid because they don't contain this value.

How does this sound to you?

Crell, to php
@Crell@phpc.social avatar

I find it amusing how often I see people drool over the potential of AOT compilation. 🙂

wyri, to php
@wyri@haxim.us avatar
ramsey, to php
@ramsey@phpc.social avatar

is telling me that JIT is disabled, even though it looks like my settings should enable it. Does anyone see anything I’m missing?

dseguy, to php French
@dseguy@phpc.social avatar

This is a reminder that #PHP only use int and strings as keys in array. Null is a special case here.

#phptip #phptrick

awoodsnet, to linux
@awoodsnet@phpc.social avatar

What’s your favorite Linux Distro? and favorite Desktop Environment?

#Linux #PHP #SoftwareDevelopment

array, to php
@array@fosstodon.org avatar

As a consequence of using a single monitor setup, I'm generally trying to have my code lines as narrow as possible, so I can avoid as much as I can doing horizontal scrolling. Luckily #PHP formatters are pretty OK with having, say, one array item or function parameter per line, the splitting options are very liberal and IMO it keeps being pretty legible. I just hope this is considered "good" (or "acceptable" at least) practice. :D

wyri, to php
@wyri@haxim.us avatar

OH: More people use #HHVM than #PHP 5.x

codito, to php Polish
@codito@mas.to avatar

How's that possible that people like @OndrejMirtes or Keradus don't have #PHP RFC voting rights? It does not make any sense. Language should be evolving under an eye of people who know it most, not people determined enough to check all the points of the onboarding list.

wyri, to php
@wyri@haxim.us avatar

Hate it when this happens:

#php #phpcs

Schrank, to php German
@Schrank@phpc.social avatar

Hey #php people! Is there a way to implement an abstract constant? I have an abstract class which implements some stuff for my value objects and a constant IDENTIFIER I would like to enforce to be overwritten by the child classes.

It looks like there was a way in the past by using circular references: https://itecnote.com/tecnote/php-abstract-constants-in-php-force-a-child-class-to-define-a-constant/ but this doesn't work anymore.

codemonkeymike, to php

I'm so tired of VSCode randomly breaking on me. users, I want to join you. Is any Helix user coding in

I just need to get over setting that up. Any tips? Is it just adding languages.toml to my helix directory?

dseguy, to php French
@dseguy@phpc.social avatar

I finally found an occurrence of this beauty :

$this->$this

It still looks like a typo in the original code, but with the help of #PHP __toString, it works. Also, strict_types doesn't help here.

https://php-tips.readthedocs.io/en/latest/tips/this_this.html and more tips!

#phptip #phptrick

kev, to php
@kev@fosstodon.org avatar

My knowledge of could be better (read: it’s atrocious) can anyone recommend any resources for learning PHP for absolute beginners? I’m not a developer, I know a little html/css, nothing about JS and enough PHP to be dangerous.

Any recommendations welcome - happy to pay for them too. 👍

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