Get mapping in "flat" format

Is there a possibility to get the leaf field names in the mappings from an ES index in a flat format?

"" : { properties... }

instead of {"message": { "author" : { "firstname" (very simplified)

Essentially, I want to build a view similar to that in Kibana Settings that gives an overview of the fields and their properties in an index:

name                                         type          format ....    string     string

No it's not. You;'d have to do it yourself.

That's a bit of the pity - I have also had a closer look at the official Elasticsearch-PHP client that I work with, but there is currently no such method. Maybe I'll add it myself.

PRs welcome!