PHPackages                             mishal/iless-plugin-custom-import - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. mishal/iless-plugin-custom-import

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

mishal/iless-plugin-custom-import
=================================

ILess plugin for custom imports

1.0.0(10y ago)0127MITPHP

Since Sep 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/mishal/iless-plugin-custom-import)[ Packagist](https://packagist.org/packages/mishal/iless-plugin-custom-import)[ Docs](http://github.com/mishal/iless-plugin-custom-import)[ RSS](/packages/mishal-iless-plugin-custom-import/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

ILess Plugin - Custom Imports
=============================

[](#iless-plugin---custom-imports)

Allows to create custom `schema like` import directives for LESS. Inspired by [less-plugin-custom-import](https://www.npmjs.com/package/less-plugin-custom-import).

Build Status
------------

[](#build-status)

[![Build Status](https://camo.githubusercontent.com/5cf77981a205d921c5669f683831781a9512dbbaf52fe249cd8c0360cdbabef4/68747470733a2f2f7472617669732d63692e6f72672f6d697368616c2f696c6573732d706c7567696e2d637573746f6d2d696d706f72742e737667)](https://travis-ci.org/mishal/iless-plugin-custom-import)

Installation
------------

[](#installation)

Install using composer:

```
$ composer require mishal/iless-plugin-custom-import

```

Programmatic Usage
------------------

[](#programmatic-usage)

```
use ILess\Parser;
use ILess\Plugin\CustomImport\Plugin;

$directories = [
    'foo' => '/path/foo',
    'some-vendor-library-path' => '/path1/some-vendor',
];

$parser = new Parser();
// register the plugin
$parser->getPluginManager()->addPlugin(new Plugin($directories));

// now I can use schema like directives in my less
$parser->parseFile('/example.less');

$css = $parser->getCSS();

```

### Less Code – Example.less

[](#less-code--exampleless)

```
@import 'foo://import.less';
@import (optional) 'foo://icons.less';
@import (reference) 'some-vendor-library-path://subdir/foo.less';

```

Usage From the Command Line
---------------------------

[](#usage-from-the-command-line)

```
Not supported.

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3946d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/007795344b01ea3284290841de1c692cb1db10e50221621c074fef1b89093e26?d=identicon)[mishal](/maintainers/mishal)

---

Top Contributors

[![mishal](https://avatars.githubusercontent.com/u/24276?v=4)](https://github.com/mishal "mishal (2 commits)")

---

Tags

pluginparsercsslessimportless.jslesscsscompilercustomcustom import

### Embed Badge

![Health badge](/badges/mishal-iless-plugin-custom-import/health.svg)

```
[![Health](https://phpackages.com/badges/mishal-iless-plugin-custom-import/health.svg)](https://phpackages.com/packages/mishal-iless-plugin-custom-import)
```

###  Alternatives

[mishal/iless

Less.js port to PHP

4738.2k3](/packages/mishal-iless)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k211.0M75](/packages/sabberworm-php-css-parser)[wikimedia/less.php

PHP port of the LESS processor

12329.5M133](/packages/wikimedia-lessphp)[scotteh/php-dom-wrapper

Simple DOM wrapper to select nodes using either CSS or XPath expressions and manipulate results quickly and easily.

1512.0M12](/packages/scotteh-php-dom-wrapper)[hexydec/htmldoc

A token based HTML document parser and minifier. Minify HTML documents including inline CSS, Javascript, and SVG's on the fly. Extract document text, attributes, and fragments. Full test suite.

2611.1k4](/packages/hexydec-htmldoc)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
