PHP

sarah,
@sarah@phpc.social avatar

What do you use for offsite backups for applications and databases?

mwop,
@mwop@phpc.social avatar

@sarah I have a recurring job that (a) runs pgdump, and then (b) uses logrotate to rotate backups and expire old archives. This runs on a mounted s3fuse volume, which gives me backup to, in my case, DO spaces.

willpower232,
@willpower232@phpc.social avatar

@mwop oh that's clever, I keep forgetting about fuse, are you using this one? https://github.com/s3fs-fuse/s3fs-fuse?tab=readme-ov-file

ramsey,
@ramsey@phpc.social avatar

How does one use PHPUnit 10 or 11 with Symfony 7? The PHPUnit Bridge includes instructions that will only work for PHPUnit 9.

https://symfony.com/doc/current/components/phpunit_bridge.html

cpereira,
@cpereira@framapiaf.org avatar
ramsey,
@ramsey@phpc.social avatar

@cpereira That says they’ll probably jump directly to PHPUnit 11 and skip 10, which is fine with me.

oliver,
@oliver@phpc.social avatar

If you were about to start a medium-sized project, what would you choose as an , and why? It should be something stable and well maintained. If the business takes off, then there should be no need to replace that layer.

Caveat: imagine that Doctrine and Eloquent haven't been invented yet.

Crell,
@Crell@phpc.social avatar

@oliver Absent Doctine, I'd build the the thinnest layer on top of Postgres I can that gives me typed values. No mapping logic, no ORM hooks, just easily packaged and mockable SQL.

Both PDO and Postgres are very well maintained.

eliashaeussler, German
@eliashaeussler@phpc.social avatar

I just released new versions for EXT:warming, EXT:sitemap_locator and EXT:sitemap_robots 🥳

All new versions are compatibility releases for v13.1 – The Surfer's Starterkit.

Happy updating! 🚀

array,
@array@fosstodon.org avatar

My first was 8.0, still in school, and I confess that I began learning it with the prejudice of it being a junky, terrible language everybody was making fun of. Fast forward ~1 year later, after finishing my internship, where I used full stack mainly, and having discovered that not only it wasn't that bad, but really a pleasure to work with. Not perfect, but perfectly suitable for its use cases and, what's perfect anyway? So reading this has been a joy. :D https://developerjoy.co/blog/php-doesnt-suck-anymore

ntha,
@ntha@mastodon.social avatar

@array @hydrian @blu256 I think Java is awesome, and a really solid choice for when you want to create something that you can be sure to still run fine 10 years later.

array,
@array@fosstodon.org avatar

@ntha @hydrian @blu256 Same, exactly. Actually, seeing what you already posted in your profile I think there's another thing we may agree with: https://fosstodon.org/@array/112348049196060708 I'm not in principle against frameworks, ORMs and so on, but for personal projects and as a learning experience, going down the abstraction layers may have its benefits too! (And yeah, I'm using "raw" SQL statements -sanitized, though- in my project, too).

nyamsprod,
@nyamsprod@phpc.social avatar

Coming soon in the next minor release of League\Csv 😍
still ironing the feature that you can already test on the master branch. give it a try
https://csv.thephpleague.com/9.0/reader/statement/#where-clauses

nyamsprod,
@nyamsprod@phpc.social avatar

@derflocki there are a couple reasons why I do not use SQLite. First the package needs no dependencies, two, the feature was already present in the package like 7 years ago I only updated the UX around it and last but not least I seldom encounter CSV that adheres fully to the draft/informal RDC. Hence using the SQLite extension would not solve CSV parsing in real world IMHO.

derflocki,
@derflocki@phpc.social avatar

@nyamsprod Thanks for the explanation!

Crell,
@Crell@phpc.social avatar

Uh oh. Andy Snell found a loophole in Enums. @ilutov should we care? :-)

stof,
@stof@phpc.social avatar

@Crell @ilutov Nothing forbids a method to call a static method of another class that would hold that static counter anyway. So I don't see a way to close such loophole entirely anyway.

ilutov,
@ilutov@phpc.social avatar

@Crell Nah.

francesco, Italian
@francesco@orwell.fun avatar

Non riesco a configurare il server integrato di eclipse PHP su ubuntu based. Quando aggiungo un modulo e ne faccio il publish non viene copiato tutto il contenuto nella tmp del plugin, non permettendomi di testare gli script. Viene copiata solo la cartella di root del modulo, ma resta vuota. Non capisco dove sbaglio.

Crell,
@Crell@phpc.social avatar

Null is problematic, but why? Let's see why, and let that guide us to new alternatives.

https://peakd.com/hive-168588/@crell/much-ado-about-null

ampache,
@ampache@fosstodon.org avatar

6.4.0 out now!

This is a great release to move to. Numerous fixes and weird bugs squashed.

The 6 branches are winding up development but API6 will continue to be extended when development has moved to Ampache 7.

https://github.com/ampache/ampache/releases/tag/6.4.0

dogmazic,
@dogmazic@framapiaf.org avatar

@ampache
Updated !
It's faster for us ! :)
Thanks !

ampache,
@ampache@fosstodon.org avatar

@dogmazic that's great. We're starting to diverge between 6 and 7 now so really only api extension and bug fixes from now on

sirber,
@sirber@fosstodon.org avatar

I forgot how fun it is to develop with . It's sad that most of the jobs with it are WordPress related 😒

maxalmonte14,
@maxalmonte14@indiehackers.social avatar

@Crell @sirber I hold the same opinion about the JVM ecosystem but would love to work with Kotlin one day, it seems clean and modern.

Crell,
@Crell@phpc.social avatar

@maxalmonte14 @sirber It's honestly the most boring modern language. Java with less crappy syntax. There's some bits of it that are weird, but otherwise it's just kinda... Fine? Not exciting or interesting, just... Fine.

ollieread,
@ollieread@phpc.social avatar

I need to remember that Mastodon exists! I’m currently writing a bunch of content to do with PHP and this would be the perfect place to talk about that.

I’m currently trying to decide whether is an interesting enough topic that people may like an in-depth course/series on it. It seems to be something a lot of people are vaguely aware of, but don’t really know the details.

ollieread,
@ollieread@phpc.social avatar

I’ve also been trying to put together some content that’s more beginner friendly, by researching frequently searched queries on Google.

These are the ones I have so far.

ollieread,
@ollieread@phpc.social avatar

In fact, this is my first draft of the article on covariance and contravariance as concepts but also related to .

I've tried to go for simple, without too many details, but I think this contains the fewest number of details I'm capable of writing 😂

https://gist.github.com/ollieread/273cf344503533ee4c497ab4c62929bf

typo3, German
@typo3@typo3.social avatar

From the small to the mighty, developers are all part of a bigger story. 🧡
We're expressing appreciation for all the developers who contributed to the project in the last month, and presenting April’s most important names and some numbers: https://typo3.com/blog/april-2024-developer-appreciation-day-dad

pieceofthepie,
@pieceofthepie@n8e.dev avatar

Oh this is fun. I can't upgrade to 11 as it needs PHP-Parser 5+.

Which I can't use as needs 4+.

Not to mention this project itself needs PHP-Parser so that upgrade in of itself means work on my part.

Is this where I start using a PHAR?

pieceofthepie,
@pieceofthepie@n8e.dev avatar

@heiglandreas "Those aren't dependencies of your application. Just tools..."

Fair, but also, if I remove development dependencies from the my projects if they're just tools then those projects no longer have development dependencies.

Which I guess leads me to "what are development dependencies for if not things needed for development?"

heiglandreas,
@heiglandreas@phpc.social avatar

@pieceofthepie Exactly. Only for development. Your code also earns money without them.

But by adding them to the dev-dependencies you are tying the code that earns money to the tools you only need for development.

By using separate composer.jsons (or PHARs) you can use the tools without tying your code to them and their dependencies.

wowa_TYPO3, German
@wowa_TYPO3@techhub.social avatar

Hey TYPO3-Fans! 🎉 Habt ihr meinen vorletzten Stream verpasst? Kein Problem! Die Aufzeichnung ist jetzt auf YouTube. Taucht ein in die Welt von TYPO3 und der AI-Suite. Schaut rein, diskutiert mit! 🚀
👉 https://youtu.be/2QE2U8uEW80

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