PHP Hot

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

Symfony’s Route Attribute Mapping{foo:bar}: A Shortcut to Smoother Routing.

https://medium.com/

Posted into SYMFONY FOR THE DEVIL @symfony

denniskoch, to Laravel
@denniskoch@phpc.social avatar

If you are using and experiencing issues with Xdebug not recognizing the correct domain: Go to herd.conf and swap fastcgi_param SERVER_NAME $server_name; with fastcgi_param SERVER_NAME $host;

derickr,
@derickr@phpc.social avatar

@denniskoch Xdebug doesn't care about this — your IDE might though!

denniskoch,
@denniskoch@phpc.social avatar

@derickr Yes. Might have worded that wrong and it's for PhpStorm. But in the end „Xdebug“ won't work“ (in this IDE)

ramsey, to php
@ramsey@phpc.social avatar

I was looking at this Sass (SCSS) compiler, written in , and I noticed something very odd.

Under “requires (dev)," it requires two packages, sass/sass-spec and thoughtbot/bourbon, both of which appear to be empty packages, containing only a composer.json file, which has no dependencies.

What’s the purpose of these packages? They otherwise appear suspicious, to me, but I can’t see that they're doing anything nefarious right now—they just appear pointless.

https://packagist.org/packages/scssphp/scssphp

asjmcguire,
@asjmcguire@mastodon.scot avatar

@ramsey well sass/sass-spec is supposed to a package that ensures that sass compiles properly. https://github.com/sass/sass-spec and the other one is sass related too https://github.com/thoughtbot/bourbon so neither should be empty.

naderman,
@naderman@phpc.social avatar

@ramsey @seldaek that's a bit of a shortcoming in packagist.org we should probably address. scssphp composer.json actually contains a custom package repository definition which defines thoughtbot/bourbon has something that doesn't exist on packagist.org and because it's only in require-dev which is only loaded from root composer.json, that means that custom definition will always be used, and never the package that's linked to on packagist.org.

cybersmog, to php
@cybersmog@phpc.social avatar
mobileatom, to Symfony
@mobileatom@flipboard.com avatar
markusstaab, (edited ) to Laravel German
@markusstaab@phpc.social avatar

Today I collaborated with ondrey on a fix for which improves a previous performance fix, which caused perf regressions in a edge-case.

The new fix allows a 2-3 seconds instead of 2-3 minutes analysis in all mentioned cases.

Reported issue was https://github.com/phpstan/phpstan/issues/10979

sarah, to php
@sarah@phpc.social avatar

Who are my LGBTQ+ folks? Have an idea, would like feedback. 🏳️‍⚧️ 🏳️‍🌈

jeffmarkel,
@jeffmarkel@mastochist.social avatar

@sarah do allies count?

sarah,
@sarah@phpc.social avatar

@jeffmarkel Eventually, yes. :)

mobileatom, to php
@mobileatom@flipboard.com avatar

Cool features of Swiss Knife CLI package manager. #PHP

https://tomasvotruba.com/blog/cool-features-of-swiss-knife?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

Cool features of Swiss Knife (tomasvotruba.com)

When using a Swiss knife, we think of a tool with many practical abilities. They're useful for different situations we might experience in the wild. Opening a box of milk? Here is a knife. Cutting wood to start a fire? Here is a chainsaw. Are the letters on the paint bucket too tiny? Try this magnifying class. Now, we apply the...

djumaka, to php
@djumaka@phpc.social avatar

Guys I need some helping hand. I need some good reading (book/article) on the proper way of writing OOP. I gave a project where we use classes, but they are more used as a package if functions then working like objects. Like a class of only statics, passing around IDs not the real objects of data (this sending SRP down the drain), arrays, generally functional programming with extra steps. I'd fancy even a discussion as I want to slowly explain all that to my teammates
TIA

thomastospace,
@thomastospace@phpc.social avatar

@djumaka One starting point might be @Crell 's talk about Never use Arrays.

That's the first step into making things OOP in my experience.

https://youtu.be/FlPLquNuy8E

Crell,
@Crell@phpc.social avatar

@djumaka I find thinking in types is what is more valuable. Don't think of an object as behavior, but a custom type. A primitive in your domain. Now attach a few contextually relevant utilities to it.

Really I think about OOP very functionally these days. :-)

(What you're describing is procedural, not functional.)

mobileatom, to Symfony
@mobileatom@flipboard.com avatar

Explore today's @SymfonyStation Communiqué of Symfony, Drupal, PHP, Fediverse, and Cybersecurity news. #Symfony #PHP #Drupal #Cybersecurity #Fediverse 🇺🇦

https://symfonystation.mobileatom.net/Symfony-Station-Communique-10-May-2024?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

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

The Comprehensive Guide to Enterprise CMS with TYPO3.

https://typo3.com/blog/comprehensive-guide-to-enterprise-cms-with-typo3?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

Attention Marketers: Is your client’s CMS holding them back? Our comprehensive guide on enterprise CMS with TYPO3 outlines how you can elevate their digital strategy. 📘 Discuss scalability, security, and flexibility—all crucial for business growth. 🚀

Learn more: https://typo3.com/blog/comprehensive-guide-to-enterprise-cms-with-typo3

t3crr, to php German
@t3crr@nrw.social avatar

Gerade in der Planungsphase, in der wir zwischen Bockwürstchen oder Buffet entscheiden müssen, hilft uns jede Zusage sehr weiter. 🧡

In dieser Woche erreichte uns die Platinum Zusage von schaffrath.de. Herzlichen Dank an diesen verlässlichen Sponsor. 💪

edgren, to php

The more I'm thinking about it, the more I consider it.

I want to add a map for my bicycle rides, but I can't find any good PHP maps. The PHP versions of Leaflet on GitHub are no good. They don't work at all. They just gives you errors like "can't load class" or something like that.

So even if I am against it only to challenge myself, I consider using Leaflet in JS for airikr.me/biking.

Or do you have any solution in PHP that works out of the box?

edgren,

@derickr Oh, ok. Thank you for pointing it out 🙂

Oh my. That is way too advanced for me 🙈

derickr,
@derickr@phpc.social avatar

@edgren It's just maths. Will have a look Monday. The weather is too nice for maths :-) 🍻😎

symfony, to Symfony
@symfony@mastodon.social avatar

🚀 New in Symfony 7.1: MacAddress and Charset Constraints
➡️ https://symfony.com/blog/new-in-symfony-7-1-macaddress-and-charset-constraints

#symfony

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