This library would replace leafo/lessphp for LESS compilation in MediaWiki. Its chief advantage is that its parse tree can be cached separately from the final CSS output and reused.
Library URL: https://github.com/oyejorge/less.php
MediaWiki/Core patch: https://gerrit.wikimedia.org/r/#/c/237730/
MediaWiki/Vendor patch: https://gerrit.wikimedia.org/r/#/c/237751/