• Stars
    star
    129
  • Rank 279,262 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A reactive Twig component framework for Craft CMS.

Stable Version Total Downloads

Sprig Plugin for Craft CMS

A reactive Twig component framework for Craft CMS.

Sprig is a free plugin for Craft CMS 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

Documentation

Learn more and read the documentation at putyourlightson.com/plugins/sprig ยป

To see working examples and video tutorials, visit the learning resources.

License

This plugin is licensed for free under the MIT License.

Requirements

This plugin requires Craft CMS 3.1.19 or later, or 4.0.0 or later.

Installation

To install the plugin, search for โ€œSprigโ€ in the Craft Plugin Store, or install manually using composer.

composer require putyourlightson/craft-sprig

Created by PutYourLightsOn.

More Repositories

1

craft-blitz

Intelligent static page caching for creating lightning-fast sites with Craft CMS.
PHP
149
star
2

open-api

Open API is a front-end API for ExpressionEngine that provides authentication and CRUD functionality.
JavaScript
69
star
3

craft-campaign

Send and manage email campaigns, contacts and mailing lists in Craft CMS.
PHP
64
star
4

craft-entry-count

Counts and displays the number of times that an entry has been viewed in Craft CMS.
PHP
47
star
5

craft-dump

Simple way to create DB backups in Craft CMS
PHP
46
star
6

craft-log-to-file

Logs messages to a specific log file.
PHP
29
star
7

craft-cp-style-guide

Control panel style guide for Craft CMS.
HTML
26
star
8

craft-cloudflare

Purge Cloudflare caches from Craft.
PHP
25
star
9

craft-elements-panel

Adds an elements panel to the Craft CMS debug toolbar.
PHP
25
star
10

craft-requirements

Requirements checker script for Craft CMS
PHP
19
star
11

craft-blitz-recommendations

Provides templating performance recommendations for Craft CMS.
PHP
18
star
12

craft-sherlock

Security scanner and monitor to keep your site and Craft CMS secure.
PHP
15
star
13

craft-plugin-uxd

Plugin user experience designer for Craft CMS.
HTML
14
star
14

craft-element-status-events

Triggers events whenever element statuses change in Craft CMS.
PHP
13
star
15

craft-spark

A real-time, template-driven hypermedia framework for Craft CMS.
PHP
12
star
16

craft-autocomplete

Provides autocompletion for Craft CMS and plugins in Twig templates.
PHP
12
star
17

craft-amazon-ses

Amazon SES mailer adapter for Craft CMS.
PHP
11
star
18

craft-dashboard-begone

Removes the dashboard and redirects users to the entries page in Craft CMS.
PHP
11
star
19

craft-how-project-config-works

A rundown of how Project Config works in Craft CMS.
11
star
20

craft-secrets

Store and manage secrets in an encrypted file.
PHP
11
star
21

craft-htmx

Provides helpers for integrating Htmx with Craft CMS.
PHP
10
star
22

craft-plugin-documentation-outline

A reusable documentation outline for Craft CMS plugins.
9
star
23

craft-untransform

PHP
9
star
24

craft-snaptcha

Automatically validates forms and prevents spam bots for Craft CMS.
PHP
8
star
25

craft-blitz-cloudfront

CloudFront cache purger for the Blitz plugin for Craft CMS.
PHP
7
star
26

craft-plugin-visualisation

A visualisation of how plugins work in Craft CMS.
6
star
27

intellij-sprig-support

An IntelliJ plugin providing Sprig support.
Kotlin
6
star
28

craft-plugin-sales

Your Craft CMS plugin sales visualised in the control panel.
PHP
6
star
29

craft-sendgrid

Sendgrid mailer adapter for Craft CMS.
PHP
5
star
30

craft-sprig-core

A reactive Twig component framework for Craft CMS.
PHP
4
star
31

datastar-php

A set of PHP helper classes for working with Datastar.
PHP
4
star
32

sprig-components

Source code for complex Sprig components.
CSS
4
star
33

craft-ignition

PHP
3
star
34

vscode-sprig-support

A VSCode extension providing Sprig support.
3
star
35

craft-resave-expired

Resaves elements when their future post or expiry dates pass.
PHP
3
star
36

craft-commerce-worldpay-access

Worldpay Access payment gateway for Craft Commerce.
PHP
3
star
37

continuum

Continuum is a real-time visitor tracking add-on. It works by logging visits and other actions on your website, collecting data about each user and their navigation patterns which can be literally viewed in real-time, as well as viewed at any time in the future.
PHP
3
star
38

.github

2
star
39

omnipay-worldpay-access

Worldpay Access driver for the Omnipay payment processing library.
PHP
2
star
40

craft-redactor-aria-label

Adds an Aria Label field to the Redactor pluginโ€™s link module.
JavaScript
2
star
41

craft-blitz-shell

Blitz Shell Deployer for Craft CMS
PHP
2
star
42

craft-plugin-vulnerabilities

Craft CMS plugin vulnerabilities
PHP
2
star
43

craft-sift

Sift plugin for Craft CMS 3.
PHP
2
star
44

craft-blitz-hints

Provides templating performance hints.
PHP
2
star
45

craft-spark-plug

A real-time, template-driven hypermedia framework for Craft CMS.
JavaScript
2
star
46

craft-cache-igniter

A global CDN and reverse proxy cache warmer.
PHP
2
star
47

publisher_low_search

Extension to add Publisher support to Low Search
PHP
1
star
48

craft-blitz-netlify

Netlify deployer for the Blitz plugin for Craft CMS.
PHP
1
star
49

putyourlightson

PutYourLightsOn
1
star
50

craft-sift-workflow

Sift Workflow plugin for Craft CMS 3.
PHP
1
star
51

craft-leaf-categories

Custom field type plugin in which only leaf categories can be selected.
PHP
1
star
52

oauth2-netlify

Netlify Provider for the PHP League's OAuth 2 Client.
PHP
1
star
53

craft-campaign-pro

Adds pro features to the Campaign plugin for Craft CMS.
PHP
1
star
54

cloudflare-docs

Documentation for the Cloudflare Craft CMS plugin.
1
star
55

craft-blitz-keycdn

KeyCDN cache purger for the Blitz plugin for Craft CMS.
PHP
1
star
56

craft-generate-test-spec

Generates a test spec from PEST PHP tests.
PHP
1
star
57

craft-blitz-cloud

Craft Cloud Adapter for the Blitz plugin.
PHP
1
star