Tomas Votruba 345a89a7e2 Updated Rector to commit a657258f317da1f6fd42069bf3b09198d3cfd635
a657258f31 cleanup CHANGELOG, is part of GitHub releases now (#2)
2021-05-10 00:23:30 +00:00

566 B

EditorConfig PHP

PHP implementation of EditorConfig

Installation

Install with Composer:

composer require idiosyncratic/editorconfig

Usage

<?php

require_once('vendor/autoload.php');

use Idiosyncratic\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;