PHPackages                             putyourlightson/craft-sprig-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. putyourlightson/craft-sprig-core

ActiveYii-module[Framework](/categories/framework)

putyourlightson/craft-sprig-core
================================

A reactive Twig component framework for Craft.

3.7.2(4mo ago)4355.3k↓49.5%76mitPHPPHP ^8.2CI passing

Since Oct 4Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/putyourlightson/craft-sprig-core)[ Packagist](https://packagist.org/packages/putyourlightson/craft-sprig-core)[ GitHub Sponsors](https://github.com/bencroker)[ RSS](/packages/putyourlightson-craft-sprig-core/feed)WikiDiscussions develop Synced 2d ago

READMEChangelog (10)Dependencies (6)Versions (95)Used By (6)

[![Stable Version](https://camo.githubusercontent.com/7458c8defe3512a3e1908f5fc0db7f09ba02b5c30c86b817799c584480c5ffe6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f707574796f75726c69676874736f6e2f63726166742d73707269672d636f72653f6c6162656c3d737461626c65)](https://camo.githubusercontent.com/7458c8defe3512a3e1908f5fc0db7f09ba02b5c30c86b817799c584480c5ffe6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f707574796f75726c69676874736f6e2f63726166742d73707269672d636f72653f6c6162656c3d737461626c65)[![Total Downloads](https://camo.githubusercontent.com/69c6e76c0072c2ee6d65dbb39c13709bcb7412fb6e278d259dbd986e7f44a80b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f707574796f75726c69676874736f6e2f63726166742d73707269672d636f7265)](https://packagist.org/packages/putyourlightson/craft-sprig-core)

[![](https://raw.githubusercontent.com/putyourlightson/craft-sprig-core/develop/src/icon.svg)](https://raw.githubusercontent.com/putyourlightson/craft-sprig-core/develop/src/icon.svg)

Sprig Core Module for Craft CMS
===============================

[](#sprig-core-module-for-craft-cms)

This 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.

First require the package in your plugin/module’s `composer.json` file.

```
{
  "require": {
    "putyourlightson/craft-sprig-core": "^2.0"
  }
}
```

Then bootstrap the module from within your plugin/module’s `init` method.

```
use craft\base\Plugin;
use putyourlightson\sprig\Sprig;

class MyPlugin extends Plugin
{
    public function init()
    {
        parent::init();

        Sprig::bootstrap();
    }
}
```

Then use the Sprig function and tags as normal in your control panel templates.

```
{{ sprig('_components/search') }}
```

If your plugin/module registers an asset bundle that depends on htmx being loaded, ensure that you specify the `HtmxAssetBundle` class as a dependency.

```
use craft\web\AssetBundle;
use putyourlightson\sprig\assets\HtmxAssetBundle;

class MyAssetBundle extends AssetBundle
{
    public $depends = [
        HtmxAssetBundle::class,
    ];
}
```

Sprig plugin issues should be reported to

The Sprig plugin changelog is at

Documentation
-------------

[](#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
-------

[](#license)

This package is licensed for free under the MIT License.

Requirements
------------

[](#requirements)

This module requires [Craft CMS](https://craftcms.com/) 3.1.19 or later, or 4.0.0 or later, or 5.0.0 or later.

Installation
------------

[](#installation)

Install this package via composer.

```
composer require putyourlightson/craft-sprig-core
```

---

Created by [PutYourLightsOn](https://putyourlightson.com/).

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance75

Regular maintenance activity

Popularity42

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 89.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Recently: every ~39 days

Total

94

Last Release

136d ago

Major Versions

2.12.3 → 3.5.22024-10-23

2.12.4 → 3.5.32025-01-19

2.13.0 → 3.7.02025-08-09

2.14.0 → 3.7.12025-09-14

2.14.1 → 3.7.22026-02-17

PHP version history (2 changes)2.0.0-beta.1PHP ^8.0.2

3.0.0-beta.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/59428c6783d02d74c8778d9953ba84c35d3877ece53f5eb393689c052a9c97e4?d=identicon)[putyourlightson](/maintainers/putyourlightson)

---

Top Contributors

[![bencroker](https://avatars.githubusercontent.com/u/57572400?v=4)](https://github.com/bencroker "bencroker (310 commits)")[![khalwat](https://avatars.githubusercontent.com/u/7570798?v=4)](https://github.com/khalwat "khalwat (31 commits)")[![brianjhanson](https://avatars.githubusercontent.com/u/1843073?v=4)](https://github.com/brianjhanson "brianjhanson (4 commits)")

### Embed Badge

![Health badge](/badges/putyourlightson-craft-sprig-core/health.svg)

```
[![Health](https://phpackages.com/badges/putyourlightson-craft-sprig-core/health.svg)](https://phpackages.com/packages/putyourlightson-craft-sprig-core)
```

###  Alternatives

[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

393813.5k10](/packages/spicyweb-craft-neo)[craftcms/craft

Craft CMS

205311.2k3](/packages/craftcms-craft)[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k70](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k19](/packages/solspace-craft-freeform)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/events

A full-featured plugin for event management and ticketing.

2311.9k](/packages/verbb-events)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
