PHP ORM structures with functions similar to ADO.NET Entity Framework Code First?

I am returning from the .NET world back to PHP for some third-party projects. I like PHP as a language, but I'm lost in the many PHP frames available today. In the days when I was doing PHP, we just wrote SQL queries, so I have no idea what is possible with PHP today in terms of ORM, so the question is.

I'm used to creating database models using the ADO.NET Entity Framework Code First, and I like this approach, so I'm looking for a PHP ORM structure with a similar set of functions.

+4
source share
3 answers

If I understand you correctly, you are looking for a structure with something like AR and CRUD. I think that almost all well-known PHP frameworks have such features.

In any case, I use the Yii framework , and I can say that this is one of the best options, but you can work a little to see which structure can meet your requirements.

You can create a database using table relations, etc., and the generator will create your models + relations for the active record. The CRUD generator can also create a View / Controller part.

+3
source

You should look at the current PHP ORM frameworks, you can find something that they offer that does not support the ADO.Net framework.

What is the easiest ORM framework for PHP to use?

This stack question is described in great detail around your question: Good PHP ORM library? .

Everyone has an opinion; the other is better than the others.

+3
source
+2
source

Source: https://habr.com/ru/post/1390847/


All Articles