idiosyncratic / editorconfig
PHP implementation of EditorConfig
Installs: 955 457
Dependents: 2
Suggesters: 0
Security: 0
Stars: 20
Watchers: 4
Forks: 3
Open Issues: 0
Requires
- php: >=7.3
Requires (Dev)
- idiosyncratic/coding-standard: ^2.0
- php-parallel-lint/php-console-highlighter: ^0.5
- php-parallel-lint/php-parallel-lint: ^1.3
- phploc/phploc: ^7.0
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^9.5
- sebastian/phpcpd: ^6.0
This package is auto-updated.
Last update: 2024-10-23 00:35:43 UTC
README
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;