dongsu7049
dongsu7049
2010-06-14 04:12

是否有与Compass相当的PHP?

已采纳

From my understanding, Compass only works with Ruby. Is there a PHP equivalent to Compass?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • douhanzhuo6905 douhanzhuo6905 11年前

    Compass actually works great for PHP projects. I've used it on several CakePHP and Symfony projects. Compass is built with Ruby, so you need Ruby on your machine, but it compiles to plain old CSS. If you have Ruby (and RubyGems) installed, just install the Compass gem and you should be ready to go. Earlier versions of Compass used a Ruby-style syntax, but my understanding is that later versions have adopted a more CSS-like option.

    If you haven't already, start with the documentation where installation is discussed in more detail.

    点赞 评论 复制链接分享
  • dongque4778 dongque4778 9年前

    PHAMLP is a php port of Sass and Compass:

    http://code.google.com/p/phamlp/ or https://github.com/bluelovers/PHamlP

    PHPSass is a port of PHamlP up-to-date with the v3.1.1.5 specification of SASS:

    http://www.phpsass.com/ or https://github.com/richthegeek/phpsass

    点赞 评论 复制链接分享

相关推荐