PHP Hot

ramsey, to php
@ramsey@phpc.social avatar

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

I know is a . Are the tools they use specific to them, or can others use them?

ramsey,
@ramsey@phpc.social avatar

@alessandrolai I don’t know. I’m not asking for me. 🙂

Crell,
@Crell@phpc.social avatar

@ramsey Symfony uses a custom Go tool to do their repo split, IIRC. That's the only way I'd even consider a monorepo.

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
Xitnelat, to php German
@Xitnelat@wue.social avatar
Xitnelat,
@Xitnelat@wue.social avatar

Bin nicht so der visuelle Typ. Mir fallen auch eher wenige UseCases ein, für die ich einen wirklichen Vorteil in der Bedienung sehe.
Aber offenbar gibt's doch Anhänger davon.
@danielsiepmann

danielsiepmann,

@Xitnelat Bei events, locations, personen, produkten, ...

Ich hab das gern gehabt, aber bin eben auch visuell veranlagt :)

mobileatom, to Symfony
@mobileatom@flipboard.com avatar

SymfonyOnline June 2024: Designing Security-First Symfony Apps.

https://symfony.com/blog/symfonyonline-june-2024-designing-security-first-symfony-apps?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
typo3, to php German
@typo3@typo3.social avatar

We had a great time at the Experts Group in Berlin, engaging in meaningful conversations and gaining valuable insights. Our team covered the recent General Assembly in Zurich and our upcoming communication strategies. A big thank you to Janus Boye for hosting us.

image/jpeg

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

Couple weeks ago speaking with @ocramius about Annotated Container. He brought up something about Attributes I had heard a few times before. Something along the lines of:

"I don't want container wiring code littered throughout my codebase."

So, I wrote a blog article that talks about how Attributes aren't really the point of Annotated Container and how you can use the library with no Attributes or highly limit their spread through your code.

https://www.cspray.io/blog/annotated-container-without-attributes/

-container

dantleech,
@dantleech@fosstodon.org avatar

@cspray @edorian one stronger feeling I have at the moment is that I don't want my domain (or "good") code to be have symbols that couple it to a framework or DI container. So prefer orchestrating "externally" to the class. I.e. aiming for "closed for modification" even if it's modifying an attribute...

cspray,
@cspray@phpc.social avatar

@dantleech @edorian From my conversations, this appears to be a popular line of thinking. One I understand the reasoning for and I hope my article shows AC can support!

I'm planning on continuing to eat my own dogfood with AC and create an app using the per-module DefinitionProvider design. Hopefully I might discover ways that the library can be improved when using this style of DI config.

doefom, to Laravel
@doefom@mastodon.social avatar

When developing applications I'm always a little afraid of sending emails to actual customers or placing real orders by accident. So I came up with a habit that works super well for me and maybe this will suit you as well.

In my /config/mail.php I add a 'developer' email address and ensure in my AppServiceProvider all emails are sent to this address when in non-production environments no matter what. Makes me build and test stuff way more confidently 😁

Is there a better approach?

doefom, (edited )
@doefom@mastodon.social avatar

@rolfdenhartog That's a great solution, thanks! For such cases I usually work with Laravel Herd. However, many times I know my clients work with outlook for example and then I ensure everything looks fine in outlook. But still, your approach in general feels cleaner than adding my code snippet to the service provider.

doefom,
@doefom@mastodon.social avatar

@mmk2410 that's great, thanks! :)

sarah, to php
@sarah@phpc.social avatar

I have a FREE book on object-oriented programming available for you to download and enjoy. It's my way of giving back to the community. Check it out: https://masteringobjectorientedphp.com

chrastecky,
@chrastecky@phpc.social avatar

@sarah Giving back by harvesting personal data, what a great way to do that!

ocramius, to php
@ocramius@mastodon.social avatar

Managed to write down my issue with .phar in

https://github.com/Roave/BackwardCompatibilityCheck/pull/770

I think flake.nix/flake.lock are the future overall, while Dockerfile already is better than .phar in every way.

.phar itself is not really very useful anymore, IMO.

ocramius, to php
@ocramius@mastodon.social avatar

Released: @roave /backward-compatiblity-check 8.8.0

Now comes with enum BC checks, thanks to @bdsl

https://github.com/Roave/BackwardCompatibilityCheck/releases/tag/8.8.0

tomasnorre, to php
@tomasnorre@phpc.social avatar
sarah, to php
@sarah@phpc.social avatar

Do you rehearse your disaster recovery plans?

Have you ever stood up, from scratch, a completely new version of your application in a production-ready state?

If you haven't, you should.

You may never need to fully stand up a complete production instance, but what happens if a part goes down like your database, your webservers, or your jobs? Are you prepared for emergencies?

Practice makes perfect, especially in high-pressure situations. So practice!

michael,
@michael@thms.uk avatar

@sarah I had to do this some time last year. Proud to say: it only took us a few hours, in part because we had copious backups and had trained for this. 👍

mrbase,
@mrbase@phpc.social avatar

@sarah We do that, several times a year, one where we restore crashed servers, one where we restore single installations, one where we restore multiple, one for hot backup, one for cold backups.
Everytime we review the procedures, and fix any changes we encounter.

mobileatom, to php
@mobileatom@flipboard.com avatar
mobileatom, to Symfony
@mobileatom@flipboard.com avatar

SymfonyOnline June 2024: Using container's features to manage complexity.

https://symfony.com/blog/symfonyonline-june-2024-using-container-s-features-to-manage-complexity?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

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

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