anubhav,

Could anyone suggest an for 7.2 & MariaDB 10 (Rocky Linux 8, Apache 2.4)? So far I have only used raw SQL in PHP.

I found <https://www.doctrine-project.org/projects.html>, <https://github.com/propelorm/Propel2/releases>, & <https://github.com/bcosca/fatfree> "F3". I have zero familiarity with all of those.

I noticed that Doctrine 3 documentation mentions 7.4 & latest stable versions of PHP, ALONG WITH "7.1+" <https://www.doctrine-project.org/projects/doctrine-orm/en/3.1/tutorials/getting-started.html#guide-assumptions>. What would I be missing with PHP 7.2?

alessandrolai,
@alessandrolai@phpc.social avatar

@anubhav Doctrine ORM 3 just got released 3 weeks ago, you will be fine with the 2.x release, that is around for 12+ years. You even can use the most recent releases of that major channel.

anubhav,

Software -- PHP, MariaDB, etc -- will be updated as Rocky Linux packages are updated. I would prefer to work with system packages instead of having to install externally; later comes with its own update burden.

I would be mostly fetching data to graph, with some (at least for now) data shoving into the database.

zimzat,
@zimzat@mastodon.social avatar

@anubhav PHP 7.2 hasn't received any security updates in years. The general PHP community tends to drop support for versions no longer officially maintained so you won't find many maintained libraries supporting unsupported versions of the language.

https://www.php.net/supported-versions.php

Sometimes distribution maintainers will unofficially fix security problems, but still lagging far behind on new features the language supports, e.g. 8.1 introduced a ton of really nice features https://www.php.net/releases/8.1/en.php

anubhav,

@zimzat Tell me about it!

zimzat,
@zimzat@mastodon.social avatar

@anubhav To directly answer your ORM question: it depends.

In my personal view, Doctrine is the least bad ORM out there but I'm still not exactly thrilled with it. It's a safe default.

Anything that is Active Record is to be Actively Avoided. It makes code brittle and hard to test.

I prefer to roll my own Repository and Query pattern. Or at least heavily customize the doctrine defaults first.

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