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.
source share