leafo/scssphp-compass
Adds Compass support to scssphp. Provides a helper class that plugs into scssc to extend import paths and register Compass-required functions, letting you @import "compass" and use mixins like box-shadow. Compass SCSS is bundled.
leafo/scssphp but requiring Compass-specific features (e.g., mixins, functions).scssphp and Compass, limiting flexibility for modern PHP stacks (e.g., Symfony, Laravel with Vite/Webpack). May introduce technical debt if the project migrates away from scssphp.composer.json, but dev-master branch implies instability.mix with laravel-mix or vite-laravel) if scssphp is already used.sass/dart-sass). May conflict with Laravel’s default postcss/laravel-mix workflows.laravel-mix or vite already support Compass via Node.js, reducing need for this PHP-based solution.scssphp is abandoned (last update: 2016), and this package is unmaintained (last commit: 2014). Risk of breaking changes if Compass or scssphp evolves.Why PHP for SCSS?
scssphp for legacy reasons, or is there a plan to migrate to Vite/Webpack?compass-cli) replace this dependency?Maintenance Burden
scssphp compatibility?Build Pipeline Impact
Alternatives
dart-sass (faster, actively maintained) with Laravel’s built-in tools?compass-core for Webpack)?leafo/scssphp (PHP-based SCSS compilation).laravel-mix + compass-cli instead.symfony/css-selector or Webpack.Assessment Phase:
scssphp is a hard dependency (e.g., for dynamic CSS generation).Pilot Integration:
composer require leafo/scssphp-compass:dev-master
@import "compass").box-shadow mixins).Build Pipeline Update:
scssphp-compass (complex; may require laravel-mix extensions).Fallback Plan:
dart-sass with @use rules.scssphp age). PHP 8.x may break.scssphp-compass in a separate Composer package or Docker container to limit blast radius.border-radius, spring-support) for correctness.dart-sass.dart-sass/vite in 6–12 months.vendor/bin/extract-compass-scss periodically.scssphp internals (e.g., import paths, function calls).scss_compass class) may require forking if upstream breaks.| Failure Scenario | Impact | Mitigation |
|---|---|---|
scssphp deprecation |
Broken builds | Migrate to dart-sass ASAP. |
| Compass SCSS extraction fails | Missing mixins/functions | Manual SCSS backup or rewrite. |
| PHP version incompatibility | Runtime errors | Pin PHP version in composer.json. |
| Laravel Mix/Vite conflicts | Asset pipeline failures | Use static CSS pre-compilation. |
| Security vulnerabilities (CVEs) | Exploitable dependencies | Isolate in Docker/air-gapped env. |
scssphp API (e.g., scssc class).@include rules).How can I help you explore Laravel packages today?