idiosyncratic-code / editorconfig-php

PHP EditorConfig implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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;

About

PHP EditorConfig implementation

License:ISC License


Languages

Language:PHP 100.0%