PHP

mobileatom,
@mobileatom@flipboard.com avatar

Air Traffic Control: Routing microservices with a single Nginx server (sarah-savage.com)

In my last post I talked about linking microservices together inside a single Docker network for easy communication between the services. For web developers, this poses an interesting problem: if we want to access the services from our local machines, we need to deal with the fact that we can't have multiple machines bound to

marmelab,
@marmelab@mastodon.social avatar

🎉 Exciting news! Marmelab is sponsoring the API Platform Conference 2024, the flagship event dedicated to the API Platform framework!

Join us for 2 days of talks by leading experts in , & .

📅 19 & 20 September
📍 Lille, France

Learn more: https://api-platform.com/fr/con/2024/

@cooptilleuls

ramsey,
@ramsey@phpc.social avatar

This is a pretty cool package, if you use with and . https://github.com/ajgarlag/AjglBreakpointTwigExtension

ramsey,
@ramsey@phpc.social avatar

@jaapio I did not know this. How do you set the breakpoints in the templates?

ramsey,
@ramsey@phpc.social avatar

@jaapio Never mind. That post shows how. 🙂

wowa_TYPO3, German
@wowa_TYPO3@techhub.social avatar

🔥 Stell dir vor, es ist Montag und du hörst, wie alle vom "Business Roundtable: Digital mit TYPO3" schwärmen, während du außen vor bist. Vermeide dieses Szenario!
Nur noch 2 Tage, um dabei zu sein.
https://wwagner.net/events/business-roundtable-digital-mit-typo3

typo3, German
@typo3@typo3.social avatar

coding. powerful. systems. CPS GmbH joins the ! 🧡

With over 20 years of experience and a dedicated team of 25+ developers, they're set to bring a new level of excellence to the .

🌐 https://www.cps-it.de/

image/jpeg
image/jpeg

ProvenPudding,
@ProvenPudding@fosstodon.org avatar

The booth is ready for the first visitors — including a super-cool animation on the big screen! @typo3

mobileatom,
@mobileatom@flipboard.com avatar

New Proposed Array Find Functions in PHP 8.4.

https://laravel-news.com/php-8-4-array-find-functions?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

michael,
@michael@thms.uk avatar

@mobileatom @symfony

I really do like it. But I still think it should be called array_first as that’s really what it is …

shochdoerfer, German
@shochdoerfer@phpc.social avatar

I am seeking speakers for my @phpugffm & @phpugmrn meetups. We prefer in-person presentations in Frankfurt or the Mannheim area, but remote talks are also an option. If you have anything interesting to share with us, let us know. We'd be more than happy to have you! Thx!

heiglandreas,
@heiglandreas@phpc.social avatar

@vanamerongen There might be... Options ... as @shochdoerfer already mentioned. But in general we (as in The Usergroups) are (sadly) also missing the budged. 😉

/cc @phpugffm @phpugmrn

shochdoerfer,
@shochdoerfer@phpc.social avatar

@tobiaskoengeter I'll set up a reminder to ping you in August to see if October will work. Thx for considering! very much appreciated. /cc @phpugmrn

tomasnorre,
@tomasnorre@phpc.social avatar

After asking the community, I have decided to release a v12 version of the which is compatible with TYPO3 12 LTS. There are some smaller know issues, but I hope the community will engage and help improve the code base.

https://x.com/tomasnorre/status/1790687063639040380

jclermont,
@jclermont@phpc.social avatar

Ever run into a timeout from a Composer script in CI? Test coverage reports are a super common example for me.

Here's how to prevent that, along with a gotcha if you're calling scripts within scripts. #php #laravel https://masteringlaravel.io/daily/2024-05-21-disabling-composer-timeout-with-nested-scripts

thomastospace,
@thomastospace@phpc.social avatar

Hey

Client of ours wants to do a pentest on the application. Of course, fine and I'm excited about the results.

However, do you do anything to prepare for this?

First time a client wants to do this, so unsure about the process.

radmen,
@radmen@101010.pl avatar

@thomastospace usually you hire someone who is going to perform the pentests. In that case, you just wait for a report and address the issues they will point out.

If you're the author of the pentested application, it makes no sense to be also the one who will do the pentesting. The best results are when someone else makes those.

thomastospace,
@thomastospace@phpc.social avatar

@radmen Of course, won't be pentesting myself. The client is hiring someone to do this.

Good to know advice is 'just wait and implement results'. 🙂

typo3, German
@typo3@typo3.social avatar

Now live: Discover "My First TYPO3 General Assembly" through the eyes of our new Communications Manager, Kendall Litton, as she shares impressions from her time in Zurich.🇨🇭

🌐 https://typo3.org/article/my-first-typo3-general-assembly

dseguy, 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 ?

derickr,
@derickr@phpc.social avatar

@dseguy which six?

cabbey,
@cabbey@phpc.social avatar

@dseguy I assume this https://3v4l.org/3E7BL snippet captures your complaint? (3v4l is the preferred way to share code snippets over screen shots.) specifically that the fourth print should be 4 not 6

If I had to guess, it’s something about operator precedence between the cast and the exponent. But that’s downright weird given the multiplication gets it right. Probes out by adding more parentheses: https://3v4l.org/gXvRL

doefom,
@doefom@mastodon.social avatar

After the last few things I've learned about 8.4 by accident I thought why not look into it and see what else there is. So, here's an example of the four new rounding modes PHP 8.4 will introduce to the 'round' function:

  • PHP_ROUND_CEILING
  • PHP_ROUND_FLOOR
  • PHP_ROUND_TOWARD_ZERO
  • PHP_ROUND_AWAY_FROM_ZERO

I rarely use anything else than 'ceil' and 'floor' in my daily work but this is still good to know.

What do you think?

zimzat,
@zimzat@mastodon.social avatar

@doefom Sounds useful at first glance but is more likely to encourage using floats inaccurately for decimal / monetary calculations. bcmath is also getting a new bcround and related methods which should be used instead, or one of the libraries specifically for decimal or money calculations.

doefom,
@doefom@mastodon.social avatar

@zimzat Didn't know there are better/worse solutions for rounding, I thought there's one right way to do it under the hood and that's it. Well, as you say there is more to rounding than I thought :D Thanks for your feedback!

mobileatom,
@mobileatom@flipboard.com avatar
jclermont,
@jclermont@phpc.social avatar

How do you discover interesting new packages for your Laravel apps? #php #laravel https://masteringlaravel.io/daily/2024-05-20-how-do-you-discover-interesting-new-packages

grmpyprogrammer,
@grmpyprogrammer@phpc.social avatar

@jclermont Three step process:

  1. ask a question about how to do something
  2. from an alt account give a wrong answer
  3. watch angry techbros and replyguys give you the correct answer
jclermont,
@jclermont@phpc.social avatar

@grmpyprogrammer this is some 4-d chess right here 😂

vm666, French

Charles Fol a présenté la faille (CVE-2024-2961) à le 10/05/2024. On n'a toujours pas de détails. On dirait bien qu'il n'y a pas d'attaques généralisées non plus.
Quelqu'un aurait vu des sites compromis via ce genre de chose récemment ? Ou pire ?

Girgias,
@Girgias@phpc.social avatar

@vm666 C'est surtout pas une faille dans PHP, et faut faire des choses vachement sous optimal pour que ça soit exploitable IMHO.

wyri,
@wyri@haxim.us avatar

Had fun this weekend working on a performance focussed proof of concept using Bunny in the interop contracts. The first metrics are in using the cluster on my home cluster. (Which isn't meant for high performance. Still pleased by these numbers.)

wyri,
@wyri@haxim.us avatar

Whoops kept it running for over an hour while running errands 😅 . Liking the ease of use of what I'm building to far

wyri,
@wyri@haxim.us avatar

Thanks to @jay Bunny will support client properties in the upcoming 0.5.6 and 0.6 releases. Client properties can be used to set a human readable name to your connection with :

With connection name
Set of my own connections with descriptive connection names

dseguy, French
@dseguy@phpc.social avatar

More about the Override attribute :

where else can use this attribute?
when will it raise a Fatal error?
It is not always at compile time (it never is).

https://www.exakat.io/en/more-about-the-override-attribute/

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