Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Scssphp Laravel Package

leafo/scssphp

leafo/scssphp is a PHP compiler for SCSS/Sass. Use it to compile .scss files to CSS in PHP apps, with support for variables, nesting, mixins, imports, and more. Handy for build pipelines, theming, or on-the-fly stylesheet generation.

View on GitHub
Deep Wiki
Context7
v0.8.4

This is the final tag on the leafo/scssphp repo.

PHP requirements downgraded to 5.4+ for this repo/package only.

Please go to https://github.com/scssphp/scssphp for the latest version (bug fixes, enhancements, etc).

Changes since v0.8.3:

v0.8.3

Fixes:

v0.8.2

Raise php requirement to 5.6+

v0.8.1

Fixes:

Maintenance:

  • commentsSeen and phpdoc update (@nextend)
v0.8.0

Fixes:

Maintenance:

  • Travis test updates (@Cerdic)
  • Add Bootstrap and Foundation framework tests (@Cerdic)
v0.7.8

Fixes:

  • Partial support for #rrggbbaa CSS Level 4 colors with alpha (@charlymz)
  • Avoid infinitely duplicating parts when extending selector (@cyberalien)
  • Fix rooted SCSS URIs normalized incorrectly with double slashes (@evanceit)
  • Coding style updates (@BrainFooLong)
  • Interpolation support selector (@jakejohns, @Cerdic)
  • Improve error messages (@gabor-udvari, @Cerdic)
  • Fix font shorthand syntax (@JanST123, @Cerdic)
  • Peephole optimizations (@oyejorge, @Cerdic)
  • Compiler: change some private properties/methods to protected (@cyberalien)
  • Fix for "continue" causing PHP 7.3 warning (@darkain)
  • Fix error thrown from strpos if needle (basePath) is empty (@evanceit)
  • Fix doc for addImportPath, should also accept callable as input (@nguyenk)
  • Change Base64 VLQ encoder/decoder implementation
  • Generate inline sourcemap in command-line (@dexxa)
  • Fix backslash escape (@bastianjoel)
v0.7.7

Fixes:

  • Actually merge maps instead of concatenating (@s7eph4n)
  • Treat 0 as special unitless number (@of2607)
  • Partial fix for call() with ellipsis (@gabor-udvari)
  • Misc peephole optimization
v0.7.6

Bug Fixes:

  • mix() alpha fix
  • transparentize() alpha sensitive to locale
  • notices when compiling UIKit

Enhancements:

  • faster parsing for base64 data: url()s
v0.7.5

Fixes:

  • Fix for loop with units (@of2607)
  • Fix side-effects in abs(), ceil(), floor(), and round() (@jugyhead)

New:

  • Add option for custom SourceMapGenerator (@dleffler)
v0.7.4

Bug fixes:

  • Fat fingered cleanup; broke file-based source maps (@dleffler)
v0.7.3

Enhancements:

v0.7.2

Compatibility:

  • increase default precision to 10 (was 5) to match ruby scss 3.5.0

Bug fixes:

  • replace locale() with number_format() (@Arlisaha)
v0.7.0

Preview

v0.7.1

Compat Buster:

  • Server class moved to /example folder
  • Server::serveFrom() removed; use (new Server)->serve() instead
  • Removed .phar build

Bug fixes:

v0.6.7

Maintenance release

  • fix list interpolation
  • pscss: enable --line-numbers and --debug-info for stdin
  • checkRange() throws RangeException
v0.6.6

Compatibility:

  • Do not extend decorated tags with another tag (@FMCorz)
  • Merge shared direct relationship when extending (@FMCorz)
  • Extend resolution was generating invalid selectors (@FMCorz)
  • Resolve function arguments using mixin content scope (@FMCorz)
  • Let @content work when a block isn’t passed in. (@diemer)
v0.6.5

Compatibility:

  • ignore BOM (@nwiborg)
  • fix another mixin and variable scope issue (@mahagr)

Enhancement:

  • Compiler: coerceValue support for #rgb values (@thesjg)

Maintenance:

  • preserve un-normalized variable name for error message (@kissifrot)
v0.6.4

Compatibility:

  • parsing multiple assignment flags (@Limych)
  • [@warn](https://github.com/warn) should not write to stdout (@atomicalnet)
  • evaluating null and/or 'foo' (@micranet)

Bug fixes:

  • case insensitive directives regression (@Limych)

Internals:

  • Compiler: scope change to some properties and methods to facilitate subclassing (@jo)
v0.6.3

Compatibility:

  • extend + parent + placeholder fix (@atna)

Bug fixes:

  • nested content infinite loop (@Lusito)
  • only divide by 100 if percent (@jkrehm)

Internals:

  • Parser: refactoring and performance optimizations (@oyejorge)
v0.6.2

Announcement:

Compat Buster:

  • bin/pscss more performant, less compatible --iso8859-1 option (default is utf-8)

Compatibility:

  • support unicode characters in identifiers (e.g., variable names)

Internals:

  • Parser: fix parser exception when mbstring.func_overload=2 and mbstring.internal_encoding=utf-8
  • Parser: refactor attribute selector code
  • use shorthand array syntax, update code sniffer dependency, and improve SensioLabsInsight score
v0.6.1

Announcements:

  • bin/pscss --continue-on-error

SCSS Compatibility:

  • implement [@extend](https://github.com/extend) !optional
  • implement keywords($args) built-in

Bug fixes:

  • BEM and [@extend](https://github.com/extend) infinite loop

Internals:

v0.6.0

Announcement:

  • php5.4 support to be dropped in the new year

Compat Buster:

  • Parser: getLineNo() removed

Compatibility:

  • handle escaped quotes inside quoted strings (with or without interpolation present)

Bug fixes:

  • undefined sourceParser when re-using a single Compiler instance

Internals:

  • replace sourceParsers[] with sourceNames
  • replace sourcePosition with sourceLine and sourceColumn
v0.5.1

Announcements:

  • Added [@scssphp-import-once](https://github.com/scssphp-import-once) (@IceReaper)

Compatibility:

  • Avoid notices with custom error handlers that don't check if error_reporting() returns 0
v0.5.0

Announcements:

  • Raise minimum supported version to PHP 5.4
  • Drop HHVM support/hacks

Breaking Changes:

  • Remove deprecated classmap.php
  • Node\Number units reimplemented as array

Compatibility:

  • Compiler: treat ! null === true
  • Compiler: str-splice() fixes
  • Node\Number: fixes incompatible units
v0.4.0

Announcements:

  • The vote to raise minimum PHP requirement to 5.4.0 has passed! (3 :+1: vs 0 :-1: )
  • The vote to remove deprecated classmap.php file has passed! (2 :+1: vs 0 :-1: )

Breaking Changes:

  • Parser: remove deprecated show() and to() methods
  • Parser, Compiler: convert stdClass to Block, Node, and OutputBlock abstractions
  • Compiler: 2nd argument passed to user registered functions now receive kwargs instead of a Compiler instance

Enhancements:

  • New control directives: [@break](https://github.com/break), [@continue](https://github.com/continue), and naked [@return](https://github.com/return)
  • New operator: <=> (spaceship) operator

Compatibility Fixes:

  • Compiler: index() - coerce first argument to list
  • Compiler/Parser: fix [@media](https://github.com/media) nested in mixin
  • Compiler: output literal string instead of division-by-zero exception
  • Compiler: str-slice() - handle negative index
  • Compiler: pass kwargs to built-ins and user registered functions
v0.3.3

Announcement:

Enhancements:

  • Compiler: add getVariables() and addFeature() API methods

Compatibility:

  • Compiler: can pass negative indices to nth() and set-nth()
  • Compiler: can pass map as args to mixin expecting varargs
  • Compiler: add coerceList(map)
  • Compiler: improve [@at-root](https://github.com/at-root) support
  • Nested formatter: suppress empty blocks

Internals:

  • Parser, Compiler: refactoring sourceParser to sourceIndex to facilitate future caching of parse tree
v0.3.2

Compatibility:

  • Fix [@extend](https://github.com/extend) behavior when interpolating variable containing a selector list
  • Hoist [@keyframes](https://github.com/keyframes) so children selectors will not be prefixed by parent selector
  • Don't wrap [@import](https://github.com/import) inside [@media](https://github.com/media) query (by @hitok)
  • Partial [@at-root](https://github.com/at-root) support; with: and without: not yet supported
  • Partial call() support; kwargs not yet supported
  • String-based keys mismatch in map functions
  • Short-circuit evaluation for and, or, and if()

Other:

  • Compiler: getParsedFiles() now includes the main file (by @dleffler)
v0.3.1

Compatibility:

  • Fix v0.3.0 regression with bootstrap v4-dev
v0.3.0

Announcements:

  • Compiler getParsedFiles() compat buster; method now returns a map of imported files and their corresponding timestamps

Compatibility:

v0.2.1

Compatibility:

  • Fix map-get(null)
  • Fix nested function definition (variable scoping)
  • Fix extend bug with BEM syntax
  • Fix selector regression from 0.1.9
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle
dmstr/api-platform-utils-bundle
dmstr/api-configuration-bundle
chrisdev/ux-components
baks-dev/finances
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle