You can actually make the switch to oyejorge/less.php using composer, rather than manually dropping in the library (which means it will get blown away whenever you composer update).
In composer.json, add
"repositories": [
{
"type": "package",
"package": {
"name": "leafo/lessphp",
"version": "dev-master",
"dist": {
"url": "https://github.com/oyejorge/less.php/archive/master.zip",
"type": "zip"
},
"source": {
"type": "git",
"url": "https://github.com/oyejorge/less.php",
"reference": "master"
}
}
}
],
Also, add the lessc.inc.php file to the autoloader:
"autoload": {
"classmap": [
"tests/TestCase.php"
],
"files": [
"vendor/leafo/lessphp/lessc.inc.php"
]
},
Notice the library is still installed under "leafo/lessphp". This is because we overrode that package name in the repositories section. So when composer sees that october wants to install "leafo/lessphp", it will instead use our custom repo path.
Now if you run composer update (or I think composer update leafo/lessphp will work if you don't want a full upgrade), it should uninstall the old leafo/lessphp and install oyejorge/less.php named as leafo/lessphp.
Also: a gotcha that happened for me; forgot to switch the default layout page to point at "theme.less" rather than theme.css. Took me far too long to figure it out....