{"id":40864045,"url":"https://github.com/newridetech/octobercms-classnames","last_synced_at":"2026-01-22T00:13:57.556Z","repository":{"id":57025934,"uuid":"130896454","full_name":"newridetech/octobercms-classnames","owner":"newridetech","description":"This plugin provides a developer tool to generate complex CSS classnames in Twig templates in a way that makes them more readable.","archived":false,"fork":false,"pushed_at":"2018-09-28T02:05:11.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-29T12:09:02.354Z","etag":null,"topics":["octobercms","octobercms-plugin"],"latest_commit_sha":null,"homepage":"https://octobercms.com/plugin/newride-classnames","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/newridetech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-24T18:18:38.000Z","updated_at":"2024-08-18T14:33:40.000Z","dependencies_parsed_at":"2022-08-23T16:11:09.033Z","dependency_job_id":null,"html_url":"https://github.com/newridetech/octobercms-classnames","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/newridetech/octobercms-classnames","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newridetech%2Foctobercms-classnames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newridetech%2Foctobercms-classnames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newridetech%2Foctobercms-classnames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newridetech%2Foctobercms-classnames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newridetech","download_url":"https://codeload.github.com/newridetech/octobercms-classnames/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newridetech%2Foctobercms-classnames/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28647809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["octobercms","octobercms-plugin"],"created_at":"2026-01-22T00:13:57.496Z","updated_at":"2026-01-22T00:13:57.548Z","avatar_url":"https://github.com/newridetech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Classnames\n\nThis plugin provides a developer tool to generate complex CSS classnames in\nTwig templates in a way that makes them more readable.\n\nIt's a port of https://github.com/JedWatson/classnames but for PHP.\n\nIf you want a pure PHP version without plugin, please try: https://github.com/newridetech/php-classnames\n\nInstead of:\n\n```html\n\u003cnav class=\"link {{ item.isActive ? 'link--active' : '' }} {{ item.extra == 'primary' ? 'link--primary' : '' }}\"\u003e\n    ....\n\u003c/nav\u003e\n```\n\nUse:\n\n```html\n\u003cnav\n    class=\"{{\n        classnames('link', {\n            'link--active': item.isActive,\n            'link--primary': item.extra == 'primary'\n        })\n    }}\"\n\u003e\n    ....\n\u003c/nav\u003e\n```\n\nAnd that's all. :) I hope it helps.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewridetech%2Foctobercms-classnames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewridetech%2Foctobercms-classnames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewridetech%2Foctobercms-classnames/lists"}