Assigning database credentials
Perhaps instead of an ini file, a JSON would suit the purpose better. I've seen this multiple times, even in large, well-known PHP frameworks.

You can find a lot about decoding JSON from the docs. Here's a little blog post about handling decoding. And here's a StackOverflow question regarding the external file.



Also, if you keep the same class, I suggest passing Configuration through the constructor to practice dependency injection.

public function __construct(Configuration $ini) {
    $this-&gt;host = $ini-&gt;getField('Database', 'host');
    $this-&gt;user = $ini-&gt;getField('Database', 'user');
    $this-&gt;pass = $ini-&gt;getField('Database', 'password');
    $this-&gt;dbname = $ini-&gt;getField('Database', 'name');
}