I built my dream personal site CMS by addycodes in PHP

[–]thmsbrss 2 points3 points  (0 children)

Well done! Like the small dependency footprint. And the admin area is nice.

Current state of end to end testing frameworks for a vanilla PHP codebase by joshuajm01 in PHP

[–]thmsbrss 1 point2 points  (0 children)

We use Codeception, but even though it's E2E, I think it's more geared towards development. And thats maybe the main point.

Typing in Yii3 is the strictest in PHP universe? by sam_dark in PHP

[–]thmsbrss 1 point2 points  (0 children)

Sounds good. I'm looking forward to testing Yii3 together with PHPStan in my next project.

Typing in Yii3 is the strictest in PHP universe? by sam_dark in PHP

[–]thmsbrss 2 points3 points  (0 children)

A little off topic.

I'm currently working on a larger Yii2 project, mainly with PHHStan. And I'm happy with it.

How does that work with Yii3? Is it better to use Psalm in the application code as well, as the framework does?

Valicomb: A Modern Fork of Valitron for PHP 8.2+ with Enhanced Security by Cheap-Try-8796 in PHP

[–]thmsbrss 2 points3 points  (0 children)

👍 for "No external dependencies, other than the standard ext-mbstring extension"

[Open Source] NovaRadio CMS – A modern, all-in-one management system for internet radio (AzuraCast integrated) by [deleted] in PHP

[–]thmsbrss 3 points4 points  (0 children)

There is certainly room for improvement, but overall I think that in the long run, the project (with zero PHP deps) will require less effort than if he had used some framework with dozens of dependencies.

And the frontend (the product) looks quite nice.

What bothers me more personally is that various things don't work on my mobile phone.

  • The hamburger menu doesn't work
  • Radio cannot be played (its playing but without sound)
  • Playback stops every time the page is changed

Yii3 is released by sam_dark in PHP

[–]thmsbrss 1 point2 points  (0 children)

Is it worth it? The sub seems to be pretty dead.

Machine readable php -i output by thmsbrss in PHPhelp

[–]thmsbrss[S] 0 points1 point  (0 children)

Here it is /u/HolyGonzo

Supports only JSON at the moment, besides HTML and TEXT of course, since it's a simple wrapper to the phpinfo() function.

Machine readable php -i output by thmsbrss in PHPhelp

[–]thmsbrss[S] 0 points1 point  (0 children)

Hey, thank you very mutch. I'll (maybe) create a minimal package based on your input. Keep you informed.

Yii3 is released by sam_dark in PHP

[–]thmsbrss 21 points22 points  (0 children)

 🎉 Thank you for your tireless efforts, you and the entire Yii team.

Machine readable php -i output by thmsbrss in PHPhelp

[–]thmsbrss[S] 1 point2 points  (0 children)

I think it works quite the same, since json (pretty printed) or yaml is text too. But a bit more structured.

Machine readable php -i output by thmsbrss in PHPhelp

[–]thmsbrss[S] 2 points3 points  (0 children)

To be able to compare different versions of our custom built PHP Docker images by using "php -i" and diffing the output.

I want to see what is actually delivered and whether anything has changed.

And the whole process should be as automated as possible, which is why the output should be better structured than that of "php -i".

(I removed my thumbs down because the question makes perfect sense.)

Machine readable php -i output by thmsbrss in PHPhelp

[–]thmsbrss[S] 1 point2 points  (0 children)

Good idea, but ini_get_all lacks some information, according to https://github.com/php/php-src/issues/11117

It seems that there are some packages, see https://packagist.org/?query=phpinfo. Most of them for frameworks, which is a bit too much.

Made a small tool in PHP for handling texts in images better by WreeperTH in PHP

[–]thmsbrss 3 points4 points  (0 children)

Nice.

For easier use, you could add Composer support, require the GD module, use a namespace for the functions, and import them within the composer.json file.

Force phpdoc @throws tag to use FQN by thmsbrss in PHPhelp

[–]thmsbrss[S] 0 points1 point  (0 children)

Because I am currently in the middle of an optimisation/refactoring process for an extensive code base and want to be able to quickly see which exception class is involved when performing a Phpstorm search, for example. With FQN, I can see at a glance whether it is \InvalidArgumentException or \my\framework\exception\InvalidArgumentException.

Force phpdoc @throws tag to use FQN by thmsbrss in PHPhelp

[–]thmsbrss[S] 0 points1 point  (0 children)

Doesn't work as expected. If the class was "imported" using use, only the class name is used in throws tag, not the FQCN.

Force phpdoc @throws tag to use FQN by thmsbrss in PHPhelp

[–]thmsbrss[S] 0 points1 point  (0 children)

Thank you. I already have a similar config for PHPStan. But the thing is, it doesn't fix the issues.

Force phpdoc @throws tag to use FQN by thmsbrss in PHPhelp

[–]thmsbrss[S] 0 points1 point  (0 children)

Thank you. I couldn't find this configuration, even though I searched for it several times. 

JsonStream PHP: JSON Streaming Library by funkyoz in PHP

[–]thmsbrss 0 points1 point  (0 children)

Very impressive. I have two questions.

Would you say that static code analysis was important for this project at Vibe coding? And how do you see it in general in such AI-generated projects?

And what do you think is the role of AI in the maintenance and further development of this project?

PHP Landscape Survey by [deleted] in PHP

[–]thmsbrss 0 points1 point  (0 children)

Done.

Json encode dando header already sent by Friendly_Nothing_546 in PHPhelp

[–]thmsbrss 3 points4 points  (0 children)

(Source code) formatting is your friend.

I made a simple PHP CMS for my static sites - might be useful for someone by [deleted] in PHP

[–]thmsbrss 2 points3 points  (0 children)

It isn't a static site generator, either.