mmoya, to php

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

mobileatom, to php
@mobileatom@flipboard.com avatar

Fix Your Code With The Debug Backtrace. #php

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?

jclermont,
@jclermont@phpc.social avatar

@sarah Perhaps, but in practice the global function calling the app container has never caused any problems for me. And you definitely could inject the config repository where needed, it's just not conventional Laravel. I prefer sticking with conventions.

Natanox, to webdev
@Natanox@chaos.social avatar

I probably get flooded by asking this but welp, here I go:

I'm looking for a good, visual (!) #tutorial for #WebDevelopment that focuses on Codium, Firefox and other Open-Source tools. My specific interests are to learn #HTML, #CSS, #PHP and #SQL. Perhaps some minor #Javascript, however I'd like to primarily work without it.

I'm a visual learner, extended theory in text won't help me at all. As language is visual to me, so is #programming.

Anyone knows something that checks these boxes?

Natanox,
@Natanox@chaos.social avatar

@Crell Only if necessary, it makes the learning process unnecessarily convoluted (harder to scrub through a video than a website and the pace is always changing).

Crell,
@Crell@phpc.social avatar

@Natanox That's why I don't usually like videos, either. :-) What counts as visual, then? Lots of code samples?

ramsey, to random
@ramsey@phpc.social avatar

Thanks to kochen and jankal on GitHub (don’t think either are here in the Fediverse), there’s a new version of ramsey/uuid-doctrine (v2.1.0), with support for doctrine/dbal v4 and binary types in PostgreSQL. 🎉🎊🥳

#PHP #UUID #Doctrine

https://github.com/ramsey/uuid-doctrine

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

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.

ollieread, to php
@ollieread@phpc.social avatar

So, I’m building a dependency-injection package, and it’s a lot of fun. I’ve gone a route that I don’t really see many, if any, following. I suspect it may be that a lot of the solutions out there are old, and while they have been updated, they’re still going to inherit certain approaches.

ollieread,
@ollieread@phpc.social avatar

@ramsey I happen to already have an example screenshot for this!

ollieread,
@ollieread@phpc.social avatar

@ramsey There are also a number of others, like the Shared, Provider, Scope, and Factory attributes.

linuxiac, to linux
@linuxiac@mastodon.social avatar

Learn how to install the LEMP stack on Ubuntu 24.04 LTS with our step-by-step guide. Nginx, MariaDB, and PHP setup made simple.
https://linuxiac.com/how-to-install-lemp-stack-on-ubuntu-24-04-lts/

martijn, to fediverse
@martijn@ieji.de avatar

Writing the most basic implementation in that is compatible with shared hosting. I've seen some other great projects, but I needed a "call this function with a simple message" functionality for some existing websites

arnan,

@martijn + most PHP activitypub stuff is years old and never maintained :(

martijn,
@martijn@ieji.de avatar

@arnan looks like most of it should still work. I use them as reference 🫢

phpc, to php
@phpc@phpc.social avatar

WHAT IS HAPPENING, MY PHPEOPLE!

doefom,
@doefom@mastodon.social avatar

@phpc PHPEOPLE, that’s awesome

SenseException,
@SenseException@phpc.social avatar

@phpc Replace all the Ps with PHPs.

Just like PHP mostly got reduced to overriding/replacing eCommerce framework functionality with custom code.

leanpub, to php
@leanpub@mastodon.social avatar

Advanced Web Application Architecture https://leanpub.com/web-application-architecture by Matthias Noback is the featured book on the Leanpub homepage! https://leanpub.com

mobileatom, to Symfony
@mobileatom@flipboard.com avatar
mobileatom, to Symfony
@mobileatom@me.dm avatar

Explore today's @SymfonyStation Communiqué of Symfony, Drupal, PHP, Fediverse, and Cybersecurity news. https://symfonystation.mobileatom.net/Symfony-Station-Communique-24-May-2024 🇺🇦

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
  • 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