{"id":22290704,"url":"https://github.com/ikkez/f3-assets-sass","last_synced_at":"2025-08-12T23:09:55.266Z","repository":{"id":56989769,"uuid":"124413264","full_name":"ikkez/f3-assets-sass","owner":"ikkez","description":"SASS addon for F3 Sugar Assets plugin","archived":false,"fork":false,"pushed_at":"2020-04-25T14:07:00.000Z","size":20,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T16:51:05.232Z","etag":null,"topics":["fat-free-framework","minification","php","sass","scss","sugar-assets"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ikkez.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":"2018-03-08T15:48:23.000Z","updated_at":"2021-04-09T09:07:38.000Z","dependencies_parsed_at":"2022-08-21T10:10:52.860Z","dependency_job_id":null,"html_url":"https://github.com/ikkez/f3-assets-sass","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ikkez/f3-assets-sass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkez%2Ff3-assets-sass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkez%2Ff3-assets-sass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkez%2Ff3-assets-sass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkez%2Ff3-assets-sass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikkez","download_url":"https://codeload.github.com/ikkez/f3-assets-sass/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkez%2Ff3-assets-sass/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270149345,"owners_count":24535728,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fat-free-framework","minification","php","sass","scss","sugar-assets"],"created_at":"2024-12-03T17:13:50.364Z","updated_at":"2025-08-12T23:09:54.576Z","avatar_url":"https://github.com/ikkez.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SASS addon for F3 Sugar Assets\nThis is an extention to add a SASS/SCSS compiler to the existing [Assets Management plugin](https://github.com/ikkez/f3-assets) for the [PHP Fat-Free Framework](https://github.com/bcosca/fatfree).\n\n## Install\n\nWhen you have F3-Assets already up and running, just run `composer require ikkez/f3-assets-sass`. \nIn case you do not use composer, copy the `assets/` folder into your `AUTOLOAD` path, install [scssphp/scssphp](https://github.com/scssphp/scssphp) separately and you should be ready to go.\n\n\n## Usage\n\nTo register the sass compiler, just add this line to your view controller, or where ever you have put the initialisation of the main assets plugin. \n\n```php\n// register sass handler\n\\Assets\\Sass::instance()-\u003einit();\n```\n\nWithin your templates you can then easily use `.scss` files directly, as it would be normal css files.\n\n```html\n\u003clink rel=\"stylesheet\" href=\"scss/main_styles.scss\"\u003e\n```\n\nThat's it. Compilation, minification and concatenation with other files is now handled by the assets plugin.\nThe base directory of the sass file can also be used as import path, \nso using `@import` within your sass file can be used to load other relative sass files. So recompiling a whole bootstrap frontend is not problem:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"components/MDBootstrap/sass/mdb.scss\"\u003e\n```\n\nThe only drawback with `@include` files is, that changes to those files are currently not detected automatically, \nso the whole main sass file does not update on the fly. However, you can add the `watch` attribute and define \none or multiple paths to scan for file changes - wildcards are possible:\n \n```html\n\u003clink rel=\"stylesheet\" href=\"components/MDBootstrap/sass/mdb.scss\" watch=\"custom.scss\"\u003e\n\n\u003clink rel=\"stylesheet\" href=\"components/MDBootstrap/sass/mdb.scss\" watch=\"custom.scss, addons/*.scss\"\u003e\n```\n\nNB: The `watch`-attribute should only be considered while working on the files, because scanning for file modification times isn't necessary for production-ready styles and would, depending on the amount of files to scan, slow things down. \nIf you need to refresh files on a production environment, it's recommended to clear the temp files with `\\Assets::instance()-\u003eclear();`, instead of proactive looking for changes.\n\nIf you like to add sass files programmatically, you should simply treat them like normal css files:\n\n````php\n$opt = [\n  'watch'=\u003e'ext/*.scss'\n];\n\\Assets::instance()-\u003eadd('scss/main_styles.scss', 'css', 'head', 5, NULL, $opt);\n````\n\nLicense\n-\n\nGPLv3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikkez%2Ff3-assets-sass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikkez%2Ff3-assets-sass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikkez%2Ff3-assets-sass/lists"}