I have a project I wrote in PHP. It has a connection to MySQL via MySQLi though. How can I get this open source on GitHub without leaking information? [duplicate]

I just learned PHP and only did it, because I wanted to connect it to a database, and I knew it was possible.

Long story short, project’s called Polko and is kind of a courselearning (learning via courses like w3schools) platform.

Now, because someone else is supplying something for me, I need to get this to GitHub. It would just also be nice to have this in a repository or something that I can also just access from all my devices.

But.. There is a config.php file that basically contains confidential information for connecting to the database, and I don’t want that information on GitHub, so basically everyone can get the info, and change everything in the database.

I am aware that you can make repositories private, but I’d like another solution.

I asked AI, but it didn’t fully understand the situation, and provided me with random answers about something called Laravel, which I don’t know about.