ricardoper / slim4-twig-skeleton

A better Slim Framework 4 Skeleton with Twig that offers a sane folder structure where everything is customizable
MIT License
12 stars 2 forks source link

[REQUEST] MySql Support #1

Closed yusufusta closed 4 years ago

yusufusta commented 4 years ago

Hi, your code is beautiful. There must be more stars. I think you should add Mysql support, I didnt saw in your repos. Please add.

ricardoper commented 4 years ago

Hello @Quiec,

Thanks for your words and interest for this project.

You can add a Service Provider with a MySQL library at your choice. You can use PDO, MySQLi, Laravel Database, Doctrine, ...

The philosophy of this skeleton is to be as must slim and light as possible. The same philosophy of Slim Framework.

As MySQL is a widely used, in the coming days I will support this request. Wait a few days, please.

Once again, thanks for using this project.

yusufusta commented 4 years ago

I'm new to SlimPHP, I added Pdo myself but it is not compatible with the skeleton. I tried to apply it to the skeleton, but I don't know the MVC structure much.

I am waiting you. Thanks.

ricardoper commented 4 years ago

Hello @Quiec,

PDO is 100% compatible with this Skeleton. Like I mention, you need to create a Service Provider to load it in the DI.

I just release the v2.0.0 with Multi Database Support. Please, read the README file to see details.

Enjoy it!!!

Thanks.

yusufusta commented 4 years ago

Its looking beautiful! Thanks you! Your code is best.