Tomas Votruba c4b2af01d7 Updated Rector to commit 2934929fac82ad4244c3b4253bcd388c344ef31a
2934929fac [CodingStyle] Handle more than one method contains try catch on CatchExceptionNameMatchingTypeRector (#1706)
2022-01-21 06:12:56 +00:00
..

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;