PHP code example of idiosyncratic / editorconfig
1. Go to this page and download the library: Download idiosyncratic/editorconfig library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
idiosyncratic / editorconfig example snippets
diosyncratic\EditorConfig\EditorConfig;
$ec = new EditorConfig();
// $config will be an array of the declarations matching for the specified path
$config = $ec->getConfigForPath(__FILE__);
// Print matching configuration rules as string
print $ec->printConfigForPath(__FILE__) . PHP_EOL;