{"id":22397109,"url":"https://github.com/putyourlightson/craft-spark-module","last_synced_at":"2025-07-31T12:31:40.096Z","repository":{"id":260652159,"uuid":"881937542","full_name":"putyourlightson/craft-spark-module","owner":"putyourlightson","description":"A real-time, template-driven hypermedia framework for Craft CMS.","archived":false,"fork":false,"pushed_at":"2024-11-05T21:51:44.000Z","size":89,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-11-29T11:07:52.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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":null,"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},"funding":{"github":"bencroker"}},"created_at":"2024-11-01T14:32:03.000Z","updated_at":"2024-11-05T21:51:47.000Z","dependencies_parsed_at":"2024-11-01T16:27:08.264Z","dependency_job_id":"ce9722d2-0bff-4834-a820-b32a4fcfe382","html_url":"https://github.com/putyourlightson/craft-spark-module","commit_stats":null,"previous_names":["putyourlightson/craft-spark-plug","putyourlightson/craft-spark-module"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putyourlightson%2Fcraft-spark-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putyourlightson%2Fcraft-spark-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putyourlightson%2Fcraft-spark-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putyourlightson%2Fcraft-spark-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/putyourlightson","download_url":"https://codeload.github.com/putyourlightson/craft-spark-module/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228242556,"owners_count":17890481,"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":[],"created_at":"2024-12-05T06:10:53.302Z","updated_at":"2024-12-05T06:10:54.009Z","avatar_url":"https://github.com/putyourlightson.png","language":"JavaScript","funding_links":["https://github.com/sponsors/bencroker"],"categories":[],"sub_categories":[],"readme":"[![Stable Version](https://img.shields.io/packagist/v/putyourlightson/craft-spark-module?label=stable)]((https://packagist.org/packages/putyourlightson/craft-spark-module))\n[![Total Downloads](https://img.shields.io/packagist/dt/putyourlightson/craft-spark-module)](https://packagist.org/packages/putyourlightson/craft-spark-module)\n\n\u003cp align=\"center\"\u003e\u003cimg width=\"150\" src=\"https://putyourlightson.com/assets/logos/spark-icon.svg\"\u003e\u003c/p\u003e\n\n# Spark Module for Craft CMS\n\nThis module provides the core functionality for the [Spark plugin](https://github.com/putyourlightson/craft-spark), a real-time, template-driven hypermedia framework for [Craft CMS](https://craftcms.com/). If you are developing a Craft plugin/module and would like to use Spark in the control panel, you can require this package to give you its functionality, without requiring that the Spark plugin is installed.\n\nFirst require the package in your plugin/module’s `composer.json` file.\n\n```json\n{\n  \"require\": {\n    \"putyourlightson/craft-spark-module\": \"^1.0.0-alpha.1\"\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\\spark\\Spark;\n\nclass MyPlugin extends Plugin\n{\n    public function init()\n    {\n        parent::init();\n\n        Spark::bootstrap();\n    }\n}\n```\n\nThen use the Spark function and tags as normal in your control panel templates.\n\n```twig\n\u003cbutton data-on-click=\"{{ spark('_spark/search') }}\"\u003eSearch\u003c/button\u003e\n```\n\nSpark plugin issues should be reported to https://github.com/putyourlightson/craft-spark/issues\n\nThe Spark plugin changelog is at https://github.com/putyourlightson/craft-spark/blob/develop/CHANGELOG.md\n\n## Documentation\n\nLearn more and read the documentation at [putyourlightson.com/plugins/spark »](https://putyourlightson.com/plugins/spark)\n\n## License\n\nThis plugin is licensed for free under the MIT License.\n\n## Requirements\n\nThis plugin requires [Craft CMS](https://craftcms.com/) 5.0.0 or later.\n\n## Installation\n\nInstall this package via composer.\n\n```shell\ncomposer require putyourlightson/craft-spark-module:^1.0.0-alpha.1\n```\n\n---\n\nCreated by [PutYourLightsOn](https://putyourlightson.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputyourlightson%2Fcraft-spark-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fputyourlightson%2Fcraft-spark-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputyourlightson%2Fcraft-spark-module/lists"}