dborsatto/sql-result-set-mapper
is a PHP library that allows you to map a result from an SQL query to an array of PHP objects.
As with any Composer package, run the CLI command to require the library in your application:
composer require dborsatto/sql-result-set-mapper
Documentation is currently in the works, in the meanwhile please refer to the examples file.
This repository is published under the MIT license.