{"id":19614986,"url":"https://github.com/infostreams/scss-php","last_synced_at":"2025-10-12T23:57:24.091Z","repository":{"id":8331820,"uuid":"9885814","full_name":"infostreams/scss-php","owner":"infostreams","description":"This script allows you to use SASS \u0026 SCSS files in your PHP application without a noticeable performance penalty.","archived":false,"fork":false,"pushed_at":"2017-11-20T08:59:40.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-30T06:15:08.792Z","etag":null,"topics":["php","sass","scss","scss-files"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"olton/Metro-UI-CSS","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infostreams.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-06T11:59:01.000Z","updated_at":"2019-12-13T18:58:02.000Z","dependencies_parsed_at":"2022-07-21T14:32:16.524Z","dependency_job_id":null,"html_url":"https://github.com/infostreams/scss-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infostreams%2Fscss-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infostreams%2Fscss-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infostreams%2Fscss-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infostreams%2Fscss-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infostreams","download_url":"https://codeload.github.com/infostreams/scss-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224092034,"owners_count":17254152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","sass","scss","scss-files"],"created_at":"2024-11-11T10:54:42.779Z","updated_at":"2025-10-12T23:57:19.032Z","avatar_url":"https://github.com/infostreams.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"This script compiles SCSS files and then stores the resulting CSS in disk\nand browser caches for maximum performance. It allows you to use SASS \u0026 SCSS\nfiles in your PHP application without a noticeable performance penalty.\n\nInstallation\n------------\n1. Install [Composer](http://getcomposer.org/) in your site's document root. \n   From the command line, you can do this with \n   ```curl -sS https://getcomposer.org/installer | php```, or see the \n   instructions on the [Composer website](http://getcomposer.org/).\n\n2. Copy ```composer.json```, ```scss.php``` and ```.htaccess``` to that same \n   directory.\n\n3. Run, again from that same directory, ```php composer.phar install```\n\n4. Done! You can now include your SCSS files as follows:\n   ```html \n    \u003clink rel='stylesheet' href='\u003cyour stylesheet\u003e.scss' /\u003e\n    ```\n\nAlternate installation\n----------------------\n1. Download [PHPSASS](https://github.com/richthegeek/phpsass), and install \n   it in your site root in a directory called 'vendor/richthegeek/phpsass/',\n   in such a way that 'vendor/richthegeek/phpsass/SassParser.php' exists.\n\n2. Copy the ```scss.php``` and ```.htaccess``` files to your site root\n\n3. Done! You can now include your SCSS files as follows:\n   ```html \n    \u003clink rel='stylesheet' href='\u003cyour stylesheet\u003e.scss' /\u003e\n    ```\n\nThis script will compile the SCSS file once, and then cache the resulting\noutput to disk. If the underlying SCSS file changes, the cached disk copy\nis invalidated and a new version is compiled.\n\nAny compiled SCSS file that has been delivered to the user will be cached\nfor 30 days, or until the next time you change your SCSS file -- whichever\ncomes first. The stylesheet is served only once for each user.\nHowever, the user will get a new version of your stylesheet immediately if\nyou edit one of the underlying SCSS files, or if you change one of the\noptions that are fed to the PHPSASS parser.\n\nFor performance reasons, this script will only look at the 'file modified'\ntimes of the requested SCSS file itself, and of all the SCSS files that you\n'@import' from that file (only works in PHP5.3 and later), to determine if \nit needs to compile the SCSS, or if it just needs to serve a previously \ncompiled version. If you make a change to a file that is imported from an \nimported file, then this script will not detect that change. In such cases, \nmake sure to change the 'file modified' time of the root file (e.g. by \nadding and removing a space and then re-saving the file). That, or switch \noff caching during development (set 'ENABLE_CACHING' to FALSE).\n\nIf (for whatever reason) you want to force a recompile of the SCSS code and\nthrowout everything that's been cached server-side, you can call this script\nwith an additional '?reset=1', '?force=1' or '?clear=1', for example like in \nhttp://example.com/example.scss?reset=1","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfostreams%2Fscss-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfostreams%2Fscss-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfostreams%2Fscss-php/lists"}