The EditorConfig helps set and maintain consistent styles of code among several editors. It is a simple file that stores the settings of coding style, your favorite editor reads these settings and understands exactly what setting to use for each file format.
More info: http://editorconfig.org
--- /dev/null
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = false
+
+[*.php]
+indent_style = space
+indent_size = 4
+
+[*.yaml]
+indent_style = space
+indent_size = 2