rector/vendor/idiosyncratic/editorconfig
Tomas Votruba e9e85a1300 Updated Rector to commit a8b01f217b
a8b01f217b [automated] Re-Generate Nodes/Rectors Documentation (#619)
2021-08-08 00:26:40 +00:00
..
src Updated Rector to commit a8b01f217b 2021-08-08 00:26:40 +00:00
tests Updated Rector to commit a8b01f217b 2021-08-08 00:26:40 +00:00
CHANGELOG.md Updated Rector to commit d88e3a3efb 2021-06-02 22:56:35 +00:00
composer.json Updated Rector to commit a8b01f217b 2021-08-08 00:26:40 +00:00
LICENSE.md Updated Rector to commit a657258f31 2021-05-10 00:23:30 +00:00
phpcs.xml.dist Updated Rector to commit a657258f31 2021-05-10 00:23:30 +00:00
phpstan.neon.dist Updated Rector to commit a657258f31 2021-05-10 00:23:30 +00:00
phpunit.xml.dist Updated Rector to commit 02f9524e34 2021-06-01 12:39:02 +00:00
README.md Updated Rector to commit a657258f31 2021-05-10 00:23:30 +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;