How to start a Symfony 7 application with Docker without having PHP locally installed on your machine (dev.to)
Introduction Original Post:...
doefom, to php #PHP 8.4 is introducing newing up a class and accessing methods, properties, etc. on it without wrapping it in parentheses first. Another useful feature I will probably use on a daily basis. In my daily work with #Laravel I often need to crawl some content from a website or an API. This feature will make my code a little less cluttered.
Here is the RFC if you want to learn more about it: https://wiki.php.net/rfc/new_without_parentheses
mobileatom, to php
mobileatom, to Symfony
mobileatom, to Symfony
mobileatom, to Symfony
Introduction Original Post:...
leanpub, to php Thinking Functionally in PHP by Larry Garfield is free with a Leanpub Reader membership! Or you can buy it for $25.00! http://leanpub.com/thinking-functionally-in-php #Php #FunctionalProgramming
wuetug, to php German TRUNCATE sys_template; 🥳
Unsere Website läuft jetzt mit Site Sets (und TYPO3 13.1), und ohne eine einzige Zeile TypoScript in der Datenbank.
https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/SiteHandling/SiteSets.html
Crell, to php Please, web app developers, consider how your users will upgrade. If your upgrade process is "remove the old one, unzip the new one", then it's not an upgrade process. It's an encouragement to never upgrade.
helhum, to php Here we are again. Now it’s my turn to create a simpler way to define crop variants (and later image renderings) for #typo3
To add crop variants, create a class that implements an interface and return a definition defined in PHP objects.
TCA will be created based on the existence of these classes, implementing a special interface. no other config required, dependency injection auto wiring for the win.
Anybody did something like that before?
If not, anybody interested in this?(more to come)
A PHP class implementing an interface and returning an array of ImageManipulation definition objects
doefom, to php #PHP 8.4 introducing "Property Hooks". This means you will be able to hook into the default read and write behavior of your class properties. The design also allows for more hooks in the future. Really looking forward to this one!
Read more about this feature in the RFC:
https://wiki.php.net/rfc/property-hooks
doefom, @djumaka yeah that's true. Ultimately it comes down to preference I guess but for me I'm quite sure the property hooks will be my preference
doefom, @tress777 of course! Glad it's useful for you :)
wyri, to php Doing some #PHP package maintenance tonight, this dev dependency bump kinda stood out 😅 . Mainly I make sure my packages work on the latest #PHP versions, either through support requests or when I run into issues myself. Most of my packages are designed with the future in mind.
The long-term plan is to get reusable workflows for every package and #Renovate to open PR's more aggressively than #dDpendabot to uncover potential future issues. Currently rolling that out with every package I
wyri, update, and yank to PHP 8.2 in the process.
sarah, to php
Schrank, to php Preparing a talk „from url in browser to first byte“ in context of #php.
What little, not obvious things, do you think are a good addition?Like: a correct time is important for proper encryption
heiglandreas, @Schrank And if it's only to say "These also exist but we do not care about them unless you have another 5 hours to spare!"
Schrank, @heiglandreas @derickr yea, it is hard to find a line. But depending on audience and time slot, it case be totally different. I even have BGP on the list, but don’t know what to do with it yet 😂
sarah, to php Waiting at the airport. Still basking in the post-conference glow. Thanks @phpday! #php #phpday #conferences #community #communityworks
sarah, to php
Crell, to php Any time I see "bad" code, the first answer is usually "you need more precise and strict types."
Often there's other stuff wrong, but easily 70% of the time, the fix starts with "define the problem better and the problem goes away."
donatj, to php You know, while we’re dropping parentheses on things in #PHP I’d like it if we dropped them from control structures like if/for/while
End the argument of
if($foo) {
vs
if ($foo){
once and for all
if $foo {
to rule them all
alessandrolai, @donatj you're skipping the "right" approach, the one with spaces on both sides, which is the one required by PSRs, and PER-CS lately: https://www.php-fig.org/per/coding-style/#5-control-structures
ramsey, @donatj If you’re arguing over that, you have other problems than language syntax. 😉
When reviewing a Pull Request that touched composer.json and composer.lock files you might notice...
tobiaskoengeter, to php German We have released a new library: TypoRules for #PHP 🎉
It is not actually new, as we have been working with it for years to enable outstanding #typography in our #web and #print applications. What is new is that all functionalities are now available in a bundled form and as #opensource.
You can find it at https://github.com/BitAndBlack/typorules
The library currently contains 42 rules and 5 rule sets, with more being added all the time.
Give it a try and let us know how you get on with it! 😇
tobiaskoengeter, @ramsey Not yet, no. The library is currently conceived from the perspective of a designer who has to take care of things like dashes and quotation marks. The rules you mentioned might be a little more difficult to implement, as some of them require context. Something like consistently capitalising the name of a month would of course be easy, but putting certain information in a certain order, for example, would be much more difficult. Do you see a need for this?
ramsey, @tobiaskoengeter I misunderstood the point of the library, and now I understand why it refers to typography instead of of style. 🙂
michael, to php Got to say: Just been through upgrading an app from #PHP 8.1 to 8.3 and it's really nice and painfree.
Very few breaking changes, and the few that are there are stuff that a sensible person would've addressed a long time ago.
Unfortuantely that means that apart from readonly classes, there are also few exciting new things in there. But I guess these also are just point updates after all…
Almost boring 😉 (Not a bad thing! Stability is also nice.)
Crell, @michael As a general rule, "well-behaved" #PHP code tends to upgrade very easily and quickly. Code that is not well-behaved... less so.
Mainly that's because older PHP versions allowed all sorts of stupid shit, and the list of allowed stupid shit has been steadily decreasing over the years. The less stupid shit your code does, the easier the upgrade process will be. 🙂
michael, @Crell yep I still got scars from when I upgraded my very first ever PHP application from 3 to 5. I was a kid when I started writing that app, so it definitely was full of stupid shit (still is, to be honest: always only ever stuck on band aids - the full rewrite is finally planned for later this year), so the upgrade was beyond hard.
But yeah, since then I’ve learned how to code properly (I think) so upgrades tend to be a lot simpler.
That first experience traumatised me for life though, so I’m still always scared when I start …
t3muc, to php German Peter Schuler hat uns von seinem Vortrag „Wie automatisierte Akzeptanztests Continuous Delivery
ermöglichen“ die Folien, ein Demo Repository und sogar eine Aufzeichnung zur Verfügung gestellt! 🧡https://www.mtug.de/treffen/veranstaltungen-2024/mai.html#c992
Der Solr Vortrag musste leider kurzfristig auf das nächste Treffen im Juni verschoben werden.
phpday, to php phpday 2024 is done! Thanks to the amazing speakers, sponsors and attendees! What a blast!
See you next year! #php #phpday #conference
t3cm, to php German Endlich geht's los! Wir haben euch lange genug auf die Folter gespannt. 😆
Der Termin steht fest: 13. - 15. September
Die Location steht fest: Das FatCat München (ehem. Gasteig)
Und Tickets gibt es auch schon!Alle Infos findet ihr auf unserer neuen Website: https://buff.ly/3jnS6PM
mobileatom, to Symfony Enjoy today's Symfony Station Communiqué - 17 May 2024. #Symfony #SymfonyCasts #PHP #Drupal #TYPO3 #Cybersecurity #Fediverse
Posted into SYMFONY FOR THE DEVIL @symfony