News for hackers. Stuff that matters.
Re:Learn PHP in 2026 (Yes, Really) by nullable_bool on Sunday June 07, 2026 @09:46PM (#48440493)
What makes it so good? Genuinely curious
Re:Learn PHP in 2026 (Yes, Really) by hparadiz on Sunday June 07, 2026 @09:58PM (#48440567)
It uses a DTO style mapping system and central factory EntityManager making unit testing a breeze. Model definitions let you map database primitives directly from the models. It will automagically build you the table on first use and it's capable of moving data from one engine to another engine on the fly. Migrations are built in and it's capable of generating migrations directly from changes to a model. It's smart about SQL multi saves (transactions), joins for relationships, views, and a bunch of other database features that most ORMs don't even bother to be even aware of let alone implement. It's basically an enterprise level ORM. Functionally it works like ActiveRecord but under the hood it's very different.
Re:Learn PHP in 2026 (Yes, Really) by winrid on Sunday June 07, 2026 @10:00PM (#48440579)
Have you used Django's ORM?
Re:Learn PHP in 2026 (Yes, Really) by hparadiz on Sunday June 07, 2026 @10:09PM (#48440628)
The first time I heard the name Django was like 15 years ago in college so I'm sure I've used it by hosting some project for one reason or another over the years. Python is just not my go to. Also I maintain my own framework in PHP entirely so that's what I pull off the shelf when I wanna do CRUD.
Re:Learn PHP in 2026 (Yes, Really) by winrid on Friday June 12, 2026 @03:54AM (#48501152)
Sure thing, was just curious since you mentioned rails. Django's ORM is pretty similar (auto generated migrations, super easy relations, etc).