Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/putyourlightson/craft-sprig
A reactive Twig component framework for Craft CMS.
https://github.com/putyourlightson/craft-sprig
ajax components craft-plugin craftcms reactive twig
Last synced: 4 days ago
JSON representation
A reactive Twig component framework for Craft CMS.
- Host: GitHub
- URL: https://github.com/putyourlightson/craft-sprig
- Owner: putyourlightson
- License: mit
- Created: 2020-05-30T15:48:30.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2024-10-23T19:21:23.000Z (3 months ago)
- Last Synced: 2025-01-10T15:11:43.471Z (11 days ago)
- Topics: ajax, components, craft-plugin, craftcms, reactive, twig
- Language: JavaScript
- Homepage: https://putyourlightson.com/plugins/sprig
- Size: 5.41 MB
- Stars: 129
- Watchers: 5
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
[![Stable Version](https://img.shields.io/packagist/v/putyourlightson/craft-sprig?label=stable)]((https://packagist.org/packages/putyourlightson/craft-sprig))
[![Total Downloads](https://img.shields.io/packagist/dt/putyourlightson/craft-sprig)](https://packagist.org/packages/putyourlightson/craft-sprig)# Sprig Plugin for Craft CMS
### A reactive Twig component framework for Craft CMS.
Sprig is a free plugin for [Craft CMS](https://craftcms.com/) that allows you to create reactive components from Twig templates and/or PHP classes. These components can re-render themselves on user-triggered events (clicks, changes to input fields, form submissions, etc.) using AJAX requests, without requiring you to write a single line of JavaScript.
Sprig enables common use-cases such as the following while completely avoiding full page refreshes:
- Live searching
- Loading more elements (with a button or infinite scroll)
- Pagination, ordering and filtering elements
- Adding products to a cart
- Submitting forms![Demo](https://putyourlightson.com/assets/images/plugins/sprig/search-demo.gif)
## Documentation
Learn more and read the documentation at [putyourlightson.com/plugins/sprig »](https://putyourlightson.com/plugins/sprig)
To see working examples and video tutorials, visit the [learning resources](https://putyourlightson.com/sprig).
## License
This plugin is licensed for free under the MIT License.
## Requirements
This plugin requires [Craft CMS](https://craftcms.com/) 3.1.19 or later, or 4.0.0 or later, or 5.0.0 or later.
## Installation
To install the plugin, search for “Sprig” in the Craft Plugin Store, or install manually using composer.
```shell
composer require putyourlightson/craft-sprig
```---
Created by [PutYourLightsOn](https://putyourlightson.com/).