ramsey, to php
@ramsey@phpc.social avatar

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

It’s a schema parser for the , 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 . 🤣

@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

#laravel #php

ramsey, to php
@ramsey@phpc.social avatar

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

I know #Symfony is a #monorepo. 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

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 / / dev in the area (or remote), let me know.

https://jws.dev/Resume.html

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

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!

wyri, to php
@wyri@haxim.us avatar
codito, to php Polish
@codito@mas.to avatar

How's that possible that people like @OndrejMirtes or Keradus don't have 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.

awoodsnet, to linux
@awoodsnet@phpc.social avatar

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

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

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

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?

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

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

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?

wyri, to php
@wyri@haxim.us avatar

Hate it when this happens:

#php #phpcs

wyri, to php
@wyri@haxim.us avatar

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

Crell, to php
@Crell@phpc.social avatar

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

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?

cedric_anne, to opensource French

Mastonautes, j'ai besoin de vous.

En temps que développeur en chez de l'outil #opensource #glpi, je recrute un développeur expert en #php qui saura intervenir sur la modernisation du code bien ancien qui tourne sur un framework maison.

Les locaux sont sur #Caen, mais le #télétravail est possible, même à 100%. Le temps partiel aussi est possible.

Idéalement, c'est pour un CDI.

Contactez moi en direct ici si vous êtes intéressés.

#JeRecrute #OffreEmploi #MastoJobs

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

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