| Package Data | |
|---|---|
| Maintainer Username: | zanemiller |
| Maintainer Contact: | DesignByZane@gmail.com (Zane Miller) |
| Package Create Date: | 2014-01-12 |
| Package Last Update: | 2014-01-17 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-02 15:16:43 |
| Package Statistics | |
|---|---|
| Total Downloads: | 106 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Automatically creates a single .css file from a collection of .less files using lessphp
Much thanks to jtgrimes for the less4laravel packages, upon which most of this package is based: https://github.com/jtgrimes/less4laravel
More thanks due to leafo for the lessphp packages, which this package would be useless without: https://github.com/leafo/lessphp
Add zanemiller/less-one as a requirement to composer.json:
{
"require": {
"zanemiller/less-one": "0.2.*"
}
}
Run the composer update utility with composer update or install with composer install
You now register the package with Laravel.
Open app/config/app.php and add find the providers section and add:
'Zanemiller\LessOne\LessOneServiceProvider'
Next find the aliases section and add:
'LessOne' => 'Zanemiller\LessOne\LessOneFacade'
To use LessOne with the default settings you will also have to create three folders (if they do not already exist in your project).
In the /app folder create two folders called css and less respectivly.
Finally in /public create a folder called css
So your final file structure should include:
/app
/css
/less
/public
/css
First publish a copy of the configuration file with Aritisan:
$ php artisan config:publish zanemiller/less-one
The settings files can now be found in /app/config/packages/zanemiller/less-one/config.php
The details of the configuration file can be found in: https://github.com/ZaneMiller/LessOne/wiki/Usage
LessOne couldn't be easier to use simply call:
LessOne::make()
Where you want the <link> tag to be inserted in your view.