Make a simply crud on slim 4 using mysql db

Hi people!
I just started to use slim 4, i came from slim 2 and i see a lot of changes.
With slim 2 i used medoo as a orm.
My problems with slim 4 are 2:

  1. where do i set the settings for my db connection
  2. should i continue using meddo?

thanks in advance

Hi @mlazzeri

  1. You can strore the default settings in php files under config/ and the secret credentials outside of it, e.g. in a env.php or .env file
  2. If it’s still maintained, offers good support and works for you… why not? Just make sure that the data access logic belongs into a repository class (and not in a controller / action or service class).