News for hackers. Stuff that matters.
Re:PHP 8.1.25 by bawolff on Saturday October 28, 2023 @02:38PM (#38052286)
Is there something i am supposed to be looking at here? Seems like a pretty minor bugfix release.
Re:PHP 8.1.25 by petecooper on Saturday October 28, 2023 @02:42PM (#38052311)
>Seems like a pretty minor bugfix release

It is. PHP 8.1 enters security support phase in about a month, so it's likely the final release of active support era.

I run a multi-version PHP + Nginx server for a CMS project I'm involved with, which involves obtaining & compiling from source on a regular basis. This is just another scheduled (every 4 weeks) patch release.

Re:PHP 8.1.25 by Ayesh on Saturday October 28, 2023 @03:10PM (#38052525)
I guess there will be one last release towards Nov 23, because I'm already seeing some activity (https://github.com/php/php-src/commits/PHP-8.1/).
Re:PHP 8.1.25 by petecooper on Saturday October 28, 2023 @03:16PM (#38052582)
Yes, you're right. I stand corrected! It'll be tagged on Nov 21 and released Nov 23, if the current schedule doesn't change.

I assume the security changes will use the branch you linked above, so there will likely be more activity until EOL in late Nov 2024.

Re:PHP 8.1.25 by kyriakos on Saturday October 28, 2023 @02:46PM (#38052342)
Mildly relevant, PHP 8.3 to be released on November 23rd.
Re:PHP 8.1.25 by petecooper on Saturday October 28, 2023 @03:03PM (#38052482)
Some interesting changes in this release, too:

https://php.watch/versions/8.3

Re:PHP 8.1.25 by rafark on Saturday October 28, 2023 @07:03PM (#38054287)
This is one of the weakest releases in like a decade. It’s disappointing that they delayed class getters and setters for another year. Php is my favorite language and would love to see more and more features.

What I want the most is scalar data types as objects (like calling string and array functions as instance methods) but no one seems to be talking about this.

Re:PHP 8.1.25 by 38 on Saturday October 28, 2023 @03:03PM (#38052477)
Re:PHP 8.1.25 by Ayesh on Saturday October 28, 2023 @03:12PM (#38052541)
Friendly reminder that none of the PHP 4,5, AND 7 series receive active security support, and are EOL.

PHP 7.4 still receives some updates from LTS vendors, and PHP 8.0 reaches EOL Nov 23rd.

Re:PHP 8.1.25 by bythreads on Saturday October 28, 2023 @03:36PM (#38052712)
Php/fi !!! ;)
Re:PHP 8.1.25 by tacker2000 on Saturday October 28, 2023 @03:39PM (#38052733)
Trying FrankenPHP now instead of nginx + phpfpm for the first time for a new project, since its being pushed hard as hell by the Symfony guys, especially Kevin Dunglas. Fingers crossed!
Re:PHP 8.1.25 by sroussey on Saturday October 28, 2023 @03:55PM (#38052850)
Interesting. I hadn’t seen this before. What are your experiences?
Re:PHP 8.1.25 by az09mugen on Saturday October 28, 2023 @05:44PM (#38053678)
I wonder when they will add a fallback value as a second param to getenv()
Re:PHP 8.1.25 by kayson on Saturday October 28, 2023 @09:14PM (#38055008)
Does anyone have recommendations for dev environments (linting, formatting, type checking), frameworks, etc for modern php development?

I used it a lot a decade ago and want to get back into it. My project is essentially styling/rendering the contents of a database to the page. I'd like to make it SPA-ish, so I'm not sure if php still makes sense. Do people use react or any other component based front end framework on top of a pho backend?

Re:PHP 8.1.25 by villedespommes on Saturday October 28, 2023 @09:25PM (#38055058)
I'd look into AppSmith, Budibase or any other low-code tools. IMO, they hit a sweet spot for me.
Re:PHP 8.1.25 by tacker2000 on Sunday October 29, 2023 @09:03AM (#38058206)
Im currently using Symfony backends with Vue as frontend, works pretty well.

As IDE i used VSCode but now I switched to IntelliJ Idea 2 months ago in order to try out a more “serious” IDE. The code completion and code navigation are much better but some things like quick search are slower but overall it feels more solid.

Re:PHP 8.1.25 by phatskat on Sunday October 29, 2023 @12:04PM (#38059847)
I’m on (neo)vim forever - Mason makes installing LSP, linting, etc very easy. Most devs I’ve worked with have been VSCode these days.

As for frameworks, I’ve found that Laravel+Inertia works really well for a PHP web app with a dynamic frontend. My experience was with Vue, and I really enjoyed it. Laravel is a solid backend framework and Intertia does a great job of gluing it to Vue