Benn
Benn

Reputation: 5013

How to use/compile LESS for Bootstrap?

I would like to take advantage of Twitter Bootstrap but would also like to compile LESS with php not js Can anyone post an example how to do this with php since I am not able to find any references of this online. I am new to LESS and Bootstrap , so please if you can add few details. Thank you!

Upvotes: 2

Views: 3306

Answers (3)

Yohn
Yohn

Reputation: 2559

http://lessphp.gpeasy.com/Bootstrap less php compiler for bootstrap 3.1.1

Upvotes: 1

Frank Lämmer
Frank Lämmer

Reputation: 2325

You can also compile LESS on your machine locally. There are a bunch of GUI Apps out there to help you with that.

See also this question: Compile a referenced LESS file into CSS with PHP automatically

Upvotes: 1

merv
merv

Reputation: 76700

You could try using lessphp.

A simple setup to compile the principle Bootstrap LESS files would be:

<?php
  require "lessc.inc.php";

  $less = new lessc;
  $less->checkedCompile("bootstrap.less", "bootstrap.css");
  $less->checkedCompile("bootstrap-responsive.less", "bootstrap-responsive.css");

Upvotes: 1

Related Questions