symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
grusp, to php Italian
@grusp@phpc.social avatar

📣 Less than 24 hours to the 21st edition of @phpday ! It is the oldest php conference in Europe!

:elephpant: Last chance to get your ticket, online or in-presence!

➡️ https://2024.phpday.it/tickets/

🇮🇹 See you tomorrow in Verona, Italy and online!

sebastian,
@sebastian@phpc.social avatar

@grusp @phpday Have fun!

pierstoval,
@pierstoval@mastodon.social avatar

@grusp @phpday Omg, that lineup! I so much wish I could be there but I can't 😭😭😭

sarah, to php
@sarah@phpc.social avatar

Landed safely in Dublin on my way to @phpday in Verona

rskuipers,
@rskuipers@phpc.social avatar

@sarah @phpday good luck on your last leg!

sarah, to php
@sarah@phpc.social avatar

Starting the adventure to @phpday today. Excited to see everyone in the community tomorrow!

derickr,
@derickr@phpc.social avatar

@Skoop @sarah @phpday Shit weather this time though ☔

Skoop,
@Skoop@phpc.social avatar

@derickr @sarah @phpday oh, that's a bummer

edorian, to php
@edorian@phpc.social avatar

Back from vacation and excited to announce that we, over at , now fully support

https://www.linkedin.com/posts/tideways-gmbh_frankenphp-activity-7191031503009587202-qUFj

It's great to see the ecosystem grow and prosper and I believe proper tool support and performance insights will only help when it comes to choosing the right tool for your job.

It's been a bit of a struggle getting everything to work for me, but thanks to our C specialists all the test scenarios I wrote along the way are now passing, including

mobileatom, to php
@mobileatom@flipboard.com avatar

How to Validate Emails in PHP: regex, filter_var(), and API Explained.

https://mailtrap.io/blog/php-email-validation/?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
Yrrussaj, to wordpress French
@Yrrussaj@piaille.fr avatar

Salut la communauté. Une petite idée de comment on pourrait récupérer localement le contenu d'un fichier toutes les 10 secondes sur un serveur pour l'afficher sur un site qui tourne sur sur ce même serveur. C'est en gros le nom d'un artiste et d'une chanson diffusée en live sur une radio, et on veut l'afficher sur la page web de la radio.

On peut fait ça en quoi ? En ? Avec un plugin ? Et s'il y a 1000 personnes qui accèdent au site en même temps, comment on fait pour éviter de faire 1000 fois la même requête ?

Yrrussaj,
@Yrrussaj@piaille.fr avatar

@Crell Thank you. I'll try a bit of PHP to retrieve the content of the file an put it into a json, and a bit of AJAX to regularly poll that json and put it into a div. Would that make sense ? I'm not familiar with all of this, so REACT and so on seems too complicated for me for that purpose :)

Crell,
@Crell@phpc.social avatar

@Yrrussaj That should work, yes. Make sure your caching is set up properly to avoid hammering your server to death.

If you don't need auth, you could also have PHP just generate a JSON file on disk on a 10 second cron (or whatever schedule), and then serve that file statically. Bypass PHP entirely. Again, need to configure the cache in your web server very carefully for that one file.

jclermont, to php
@jclermont@phpc.social avatar

Here's a quick write-up of why I avoid logic inside my tests https://masteringlaravel.io/daily/2024-05-14-avoid-logic-inside-your-test

devstory, to php Czech
@devstory@mastodonczech.cz avatar

phpFashion.com ( @davidgrudl ) - How to Handle Getters When They Have Nothing to Return?

https://phpfashion.com/en/how-to-handle-getters-when-they-have-nothing-to-return

nette_news, to php
@nette_news@phpc.social avatar

📝 Group and Sort Data in Latte Templates Like a Pro

In the latest update of Latte, we are introducing several significant enhancements that will simplify and make more efficient the work with data in your templates.

https://blog.nette.org/en/group-and-sort-data-in-latte-like-a-pro

f_lombardo, to php Italian
@f_lombardo@phpc.social avatar
ramsey,
@ramsey@phpc.social avatar

@f_lombardo I wonder how standard Zend PHP compares or why they chose not to compare it.

dgoosens, to php French
@dgoosens@phpc.social avatar
shochdoerfer,
@shochdoerfer@phpc.social avatar

@dgoosens awesome lineup!

ramsey, to Symfony
@ramsey@phpc.social avatar

Why does define what appears to be a “real” value for APP_SECRET in the .env file that’s committed to your repository, and then, right above it, there’s a comment that says (in all caps):

“DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.”

Where’s the documentation that explains what APP_SECRET is used for? Why doesn't it put this value in .env.local (ignored by .gitignore)?

Crell,
@Crell@phpc.social avatar

@ramsey I believe it's used for a security key, much like the Laravel equivalent.

Symfony does some very dumb things with env files.

pieceofthepie,
@pieceofthepie@n8e.dev avatar

@ramsey yeah, that is weirdly hard to track down :S

Symfony does have some oddities.

https://symfony.com/doc/current/reference/configuration/framework.html#secret

mobileatom, to php
@mobileatom@flipboard.com avatar

PHP isn't the worst programming language, so why do so many people criticize it?

https://dev.to/lunamiller/php-isnt-the-worst-programming-language-so-why-do-so-many-people-criticize-it-48ph?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • rosin
  • slotface
  • GTA5RPClips
  • InstantRegret
  • PowerRangers
  • kavyap
  • tsrsr
  • DreamBathrooms
  • cubers
  • khanakhh
  • hgfsjryuu7
  • everett
  • osvaldo12
  • cisconetworking
  • tacticalgear
  • modclub
  • mdbf
  • vwfavf
  • ethstaker
  • tester
  • normalnudes
  • anitta
  • All magazines