Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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/).