PHP Active

mmoya, to php

A filter to prepend Hello world! to /etc/passwd, source https://www.ambionics.io/blog/iconv-cve-2024-2961-p1

carbontwelve, to php
@carbontwelve@notacult.social avatar

Ooh look is getting some more JavaScript array functions https://laravel-news.com/php-8-4-array-find-functions

Crell,
@Crell@phpc.social avatar

@carbontwelve More like functional tools. :-) The functionality exists in most languages standard libraries at this point.

nyamsprod, (edited ) to php
@nyamsprod@phpc.social avatar

I know that ship has already sailed but it would have been nice if the spread operator on iterable did follow the semantic of iterator_to_array with the preserve keys argument being true

For context: https://3v4l.org/AKEbB

zimzat,
@zimzat@mastodon.social avatar

@nyamsprod It has the same behavior as array_merge, which makes it very consistent 1-to-1 behavior.

I've seen the default iterator to array key behavior bite people more often, especially when doing iterator to array on multiple yield/from generators.

nyamsprod,
@nyamsprod@phpc.social avatar

@zimzat I get the reasoning behind but would have been "cool" nice to have the iterator_to_array behaviour when working with iterator it seems more appropriate

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

foreach() works on arrays and objects. On objects, it skips uninitialized properties, which may be very convenient with readonly properties : otherwise, it is a fatal error!

https://php-tips.readthedocs.io/en/latest/tips/foreach_skips_uninitialized.html

symfony, to Symfony
@symfony@mastodon.social avatar

🖥️ A Week of Symfony (20-26 May 2024)
➡️ https://symfony.com/blog/a-week-of-symfony-908-20-26-may-2024

typo3, to php German
@typo3@typo3.social avatar

Revolutionizing user experience at OTH Regensburg! 🚀 in2code transformed the OTH Regensburg website into a dynamic recruitment portal, boosting engagement and efficiency. Awarded the Award in 2023 for higher education, this recognition underscores in2code's specialization, elevating the project as a standout in the category.

Discover OTH Regensburg's design refresh in this new case study: https://typo3.com/customers/case-studies/oth-regensburg

image/jpeg
image/jpeg

mobileatom, to Symfony
@mobileatom@flipboard.com avatar

Multiple SSO with Symfony and OneLogin SAML Bundle.

https://medium.com/

Posted into THE FEDIVERSE VS. CORPORATE SOCIAL MEDIA @the

mobileatom, to php
@mobileatom@flipboard.com avatar

Fix Your Code With The Debug Backtrace.

https://alexwebdevelop.activehosted.com/social/58238e9ae2dd305d79c2ebc8c1883422.354?utm_source=flipboard&utm_medium=activitypub

Posted into THE FEDIVERSE VS. CORPORATE SOCIAL MEDIA @the

jclermont, to php
@jclermont@phpc.social avatar

It's best practice to always use the config helper in our application code, except for one place: Don't use the config helper in config files.

Here's an explanation as to why. https://masteringlaravel.io/daily/2024-05-27-dont-use-the-config-helper-in-a-config-file

sarah,
@sarah@phpc.social avatar

@jclermont isn’t it better practice to inject the config you need into the places you need it, rather than globally calling a function?

koehnlein, to php German
@koehnlein@mastodon.social avatar

Leider kann ich dieses Jahr nicht bei den DevDays dabei sein. 🙁

Zur Trauerbewältigung habe ich mir jetzt ein Ticket für das Camp München gekauft. 😄 https://www.typo3camp-muenchen.de

Xitnelat,
@Xitnelat@wue.social avatar

Das Camp ist im Sperrbezirk? 🤔
@koehnlein @IchHabRecht

koehnlein,
@koehnlein@mastodon.social avatar

@Xitnelat @IchHabRecht Keine Ahnung. Ruf doch mal bei 32 16 8 an und frag nach.

thomastospace, to php
@thomastospace@phpc.social avatar

Making PDF's in makes me cry.

thomastospace,
@thomastospace@phpc.social avatar

@heiglandreas @sirber Just to check, with Pdflib you mean this one? https://www.pdflib.com/

heiglandreas,
@heiglandreas@phpc.social avatar

@thomastospace Yes.

You'd need PDFlib+PDI

sanjay_nitsan, to php
oliklee,
@oliklee@chaos.social avatar

@sanjay_nitsan I find bashing other open source projects neither funny nor helpful. Instead, I think projects supporting each other helps us all.

Crell, (edited ) to php
@Crell@phpc.social avatar

Hey . When you use union and intersection types, do you include spaces?

(RT for reach, etc. This is survey data for @phpfig. If you know of any official policies by major projects already, please note/link in the replies.)

Girgias,
@Girgias@phpc.social avatar

@Crell @phpfig Not that my opinion is worth much because I don't do accessibility, but I don't use spaces and seeing spaces in a type is just really weird to me.

SenseException,
@SenseException@phpc.social avatar

@Girgias @Crell @phpfig Interesting POV: You don't have two or more types combined but a totally new type.

Edent, to php
@Edent@mastodon.social avatar

🆕 blog! “Rewriting OpenBenches in Symfony”

I once described my ideal coding environment to a colleague as "telneting directly into prod and damn the consequences!" I jest. But only a little. When I build for myself I treat best practices and coding styles as harmful. Chaotic evil but, hey, it's only myself I'm hurting. Anyway, my wife and I run a […]

👀 Read more: https://shkspr.mobi/blog/2023/05/rewriting-openbenches-in-symfony/

eljorgeabides,
@eljorgeabides@mastodon.world avatar

@Edent it inspired me to do one about breakfast burritos

Edent,
@Edent@mastodon.social avatar

@eljorgeabides How's the burrito project?

wowa_TYPO3, to php German
@wowa_TYPO3@techhub.social avatar

Keine Lust mehr, wichtige TYPO3-News zu verpassen? Abonniere meinen kostenlosen Newsletter und sei immer top informiert! 🎉

Was bringt's dir?

► Aktuelle Trends und Updates
► Exklusive Tipps und Tricks
► Community-basierte Links

Neben den Links, die ich selbst sammle, kann jeder auch Links für diesen Newsletter vorschlagen. Ich überprüfe sie und nehme sie, wenn geeignet, in den Newsletter auf.
Die Möglichkeit dafür findest du auch auf der Anmeldeseite.

Die nächste Ausgabe kommt diese Woche – melde dich jetzt an und nutze die Vorteile:
https://wwagner.net/typo3-newsletter

doefom, to Laravel
@doefom@mastodon.social avatar

Macros are one thing I enjoy using the most in . It's a way to extend the functionality of many built-in by providing custom callbacks for a specific key.

One production example I use macros for fairly often is what I call the "admin alert". Especially in smaller applications I want to get notified whenever an error or an event occurs the admin (mostly that's me) should know about.

Here's what this might look like.

emd,
@emd@cosocial.ca avatar

@doefom welcome, let me know if I can help you get going with them

doefom,
@doefom@mastodon.social avatar

@emd thanks for the offer! Do you know a GitHub repo where this is used and I can take a look at?

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

question of the day : when you know that
2*2 = 4
2^2 = 4 (too)
2.5^2.5 = 9.8821176880262..

Where is this 6 coming from ?

dseguy,
@dseguy@phpc.social avatar

@derickr The first print shows 4, the second one says 6.

dseguy,
@dseguy@phpc.social avatar

@JerryWham The first print shows 4, the second one shows 6.

DbToolsBundle, enfin un outil pour utiliser légalement nos données de prod en local (jolicode.com)

"Nul n'est censé ignorer la loi", commençons donc par une piqûre de rappel : Il est illégal d'utiliser les données personnelles de vos utilisateurs ailleurs que sur la prod. Plus précisément, le RGPD1 indique que : Les données à caractère personnel doivent être : traitées

mobileatom, to Symfony
@mobileatom@flipboard.com avatar

DbToolsBundle, enfin un outil pour utiliser légalement nos données de prod en local.

https://jolicode.com/blog/dbtoolsbundle-enfin-un-outil-pour-utiliser-legalement-nos-donnees-de-prod-en-local?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

mobileatom, to Symfony
@mobileatom@flipboard.com avatar
phpdoc, to php
@phpdoc@phpc.social avatar

phpDocumentor 3.5 is here! With better Guides support and now fully functional RST! Automatic generated class diagrams by querying your code base and much more!

Let us know what you like in this new release!

https://github.com/phpDocumentor/phpDocumentor/releases/tag/v3.5.0

danielsiepmann,

@phpdoc Thanks. I'm really looking forward to the "Extensions" feature as it sounds like something we wanna have for customer projects.

And I highly value the existing features in the release.

ChristosArgyrop, to php
@ChristosArgyrop@mstdn.science avatar

I think I am 50% done finding a quadrafecta : a simultaneous hit piece against & .

This one only manages to trash talk and , so it has some ways to go.

https://stefanoborini.com/why-r-is-the-new-perl/

PS 1Gotta admit that the point about the object systems in R is somewhat spot on
PS 2 gets a dishonorable mention
PS3 I will continue to find ways to continue using all 4 of the aforementioned languages, as they are all performant and deliver in complementary ways.

BobOHara,

@ChristosArgyrop trash talking PERL is easy - even Larry Wall did it

mjgardner,
@mjgardner@social.sdf.org avatar

@BobOHara @ChristosArgyrop Some examples of Larry taking the piss:

“I’m reminded of the day my daughter came in, looked over my shoulder at some 4 code, and said, 'What is that, swearing?”

"Perl is worse than because people wanted it worse.”

"Guilty as charged. Perl is happily ugly, and happily derivative.”

"The camel has evolved to be relatively self-sufficient. On the other hand, the camel has not evolved to smell good. Neither has Perl.”

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