pletfix / core

The Pletfix Core.
MIT License
3 stars 1 forks source link

Proposal: Integrate ORM for MySQL #1

Open francescobianco opened 7 years ago

francescobianco commented 7 years ago

I'm so sorry to disturb you, I would kindly ask you if you could test this library in your project! https://github.com/javanile/moldable With the purpose of knowing my project and understanding if it can be integrated into yours! To thank you for your availability I am observing your project and giving a star

Install via composer

composer require javanile/moldable

I ask you if we can help each other

frohlfing commented 7 years ago

Hallo Bianco,

First, you must wrap your database abstraction layer through this interface: https://github.com/pletfix/core/blob/master/src/Services/Contracts/Database.php

Second, add a new database factory, that returns your database layer. You can find the interface here: https://github.com/pletfix/core/blob/master/src/Services/Contracts/DatabaseFactory.php

Finally, you may inject the database factory here: https://github.com/pletfix/core/blob/master/boot/services.php (Of course, you do not have to modify the core, but the service.php in the application's boot folder.)

Write me if you have any questions. Frank

Am 14.10.2017 um 00:42 schrieb Francesco Bianco notifications@github.com:

With the purpose of knowing my project and understanding if it can be integrated into yours! To thank you for your availability I am observing your project and giving a star

francescobianco commented 7 years ago

Thanks for your response @frohlfing I have noted on this https://github.com/javanile/moldable/issues/17 for track next development of this integration