Well you can’t use the ORM (which maps your table data to entities in PHP) but you can for sure just use the query builder as normal and just disable the hydration (converting sql data into php objects)
https://book.cakephp.org/4/en/orm/query-builder.html#fetching-arrays-instead-of-entities
With that you don’t get entities and instead just the data as an array as it is present in the DB.
Now you just have to manually adjust your templates to access the data via array keys instead of properties.