{"id":22397179,"url":"https://github.com/putyourlightson/craft-sprig-core","last_synced_at":"2026-02-18T02:00:56.566Z","repository":{"id":41311049,"uuid":"410830387","full_name":"putyourlightson/craft-sprig-core","owner":"putyourlightson","description":"A reactive Twig component framework for Craft CMS.","archived":false,"fork":false,"pushed_at":"2025-09-14T15:12:22.000Z","size":739,"stargazers_count":4,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-10-22T15:55:54.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/putyourlightson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"bencroker"}},"created_at":"2021-09-27T09:58:41.000Z","updated_at":"2025-09-14T15:06:59.000Z","dependencies_parsed_at":"2023-11-24T02:39:58.161Z","dependency_job_id":"6ee8f568-22c4-40a2-b114-09acf30174af","html_url":"https://github.com/putyourlightson/craft-sprig-core","commit_stats":{"total_commits":158,"total_committers":3,"mean_commits":"52.666666666666664","dds":0.1392405063291139,"last_synced_commit":"b6027f254b1ce9cf5d632aa8d9ecf278b8d655c7"},"previous_names":[],"tags_count":93,"template":false,"template_full_name":null,"purl":"pkg:github/putyourlightson/craft-sprig-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putyourlightson%2Fcraft-sprig-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putyourlightson%2Fcraft-sprig-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putyourlightson%2Fcraft-sprig-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putyourlightson%2Fcraft-sprig-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/putyourlightson","download_url":"https://codeload.github.com/putyourlightson/craft-sprig-core/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putyourlightson%2Fcraft-sprig-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29566366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T00:47:08.760Z","status":"online","status_checked_at":"2026-02-18T02:00:09.468Z","response_time":162,"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":[],"created_at":"2024-12-05T06:11:10.085Z","updated_at":"2026-02-18T02:00:56.524Z","avatar_url":"https://github.com/putyourlightson.png","language":"PHP","funding_links":["https://github.com/sponsors/bencroker"],"categories":[],"sub_categories":[],"readme":"[![Stable Version](https://img.shields.io/packagist/v/putyourlightson/craft-sprig-core?label=stable)]((https://packagist.org/packages/putyourlightson/craft-sprig-core))\n[![Total Downloads](https://img.shields.io/packagist/dt/putyourlightson/craft-sprig-core)](https://packagist.org/packages/putyourlightson/craft-sprig-core)\n\n\u003cp align=\"center\"\u003e\u003cimg width=\"150\" src=\"https://raw.githubusercontent.com/putyourlightson/craft-sprig-core/develop/src/icon.svg\"\u003e\u003c/p\u003e\n\n# Sprig Core Module for Craft CMS\n\nThis module provides the core functionality for the [Sprig plugin](https://github.com/putyourlightson/craft-sprig), a reactive Twig component framework for [Craft CMS](https://craftcms.com/). If you are developing a Craft plugin/module and would like to use Sprig in the control panel, then you can require this package to give you its functionality, without requiring that the site has the Sprig plugin installed.\n\nFirst require the package in your plugin/module’s `composer.json` file.\n\n```json\n{\n  \"require\": {\n    \"putyourlightson/craft-sprig-core\": \"^2.0\"\n  }\n}\n```\n\nThen bootstrap the module from within your plugin/module’s `init` method.\n\n```php\nuse craft\\base\\Plugin;\nuse putyourlightson\\sprig\\Sprig;\n\nclass MyPlugin extends Plugin\n{\n    public function init()\n    {\n        parent::init();\n\n        Sprig::bootstrap();\n    }\n}\n```\n\nThen use the Sprig function and tags as normal in your control panel templates.\n\n```twig\n{{ sprig('_components/search') }}\n```\n\nIf your plugin/module registers an asset bundle that depends on htmx being loaded, ensure that you specify the `HtmxAssetBundle` class as a dependency.\n\n```php\nuse craft\\web\\AssetBundle;\nuse putyourlightson\\sprig\\assets\\HtmxAssetBundle;\n\nclass MyAssetBundle extends AssetBundle\n{\n    public $depends = [\n        HtmxAssetBundle::class,\n    ];\n}\n```\n\nSprig plugin issues should be reported to https://github.com/putyourlightson/craft-sprig/issues\n\nThe Sprig plugin changelog is at https://github.com/putyourlightson/craft-sprig/blob/develop/CHANGELOG.md\n\n## Documentation\n\nLearn more and read the documentation at [putyourlightson.com/plugins/sprig »](https://putyourlightson.com/plugins/sprig)\n\nTo see working examples and video tutorials, visit the [learning resources](https://putyourlightson.com/sprig).\n\n## License\n\nThis package is licensed for free under the MIT License.\n\n## Requirements\n\nThis module requires [Craft CMS](https://craftcms.com/) 3.1.19 or later, or 4.0.0 or later, or 5.0.0 or later.\n\n## Installation\n\nInstall this package via composer.\n\n```shell\ncomposer require putyourlightson/craft-sprig-core\n```\n\n---\n\nCreated by [PutYourLightsOn](https://putyourlightson.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputyourlightson%2Fcraft-sprig-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fputyourlightson%2Fcraft-sprig-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputyourlightson%2Fcraft-sprig-core/lists"}