PHPackages                             laravel-frontend-presets/stimulus - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. laravel-frontend-presets/stimulus

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

laravel-frontend-presets/stimulus
=================================

Laravel 5.5+ frontend preset for Stimulus

0.1.0(7y ago)926MITPHP

Since Nov 2Pushed 7y ago2 watchersCompare

[ Source](https://github.com/laravel-frontend-presets/stimulus)[ Packagist](https://packagist.org/packages/laravel-frontend-presets/stimulus)[ RSS](/packages/laravel-frontend-presets-stimulus/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel 5.5+ frontend preset for Stimulus
=========================================

[](#laravel-55-frontend-preset-for-stimulus)

This package makes it easy to use [Stimulus](https://stimulusjs.org/), a modest JavaScript framework for the HTML you already have, with Laravel 5.5+.

Read more on [the origin of Stimulus](https://stimulusjs.org/handbook/origin).

Contents
--------

[](#contents)

- [Installation/Usage](#installation-usage)
- [Options](#options)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Installation/Usage
------------------

[](#installationusage)

To install this preset on your Laravel application, simply run:

```
composer require laravel-frontend-presets/stimulus
php artisan preset stimulus
npm install # or yarn install
npm run dev # or yarn dev
```

This will:

- Add the Stimulus preset package
- Remove JavaScript files other than `bootstrap.js`
- Add JavaScript files for leveraging Stimulus
- Install Node.js dependencies
- Build frontend assets

Once complete, ensure that the built `js/app.js` file in your `public` directory is loaded in a Blade layout or view, e.g.:

```

```

The Stimulus controllers defined in `resources/assets/js/controllers` (or `resources/js/controllers` for Laravel 5.7+) will be available at runtime.

> **Note:** After updating your defined Stimulus controllers, remember to rebuild your frontend assets to reflect your changes.

Your Stimulus controllers will be included in your project automatically via Webpack's `require.context` feature and a Stimulus helper. If you're not using Laravel Mix or other Webpack-based build tools, review the Stimulus Handbook for [alternative integration steps](https://stimulusjs.org/handbook/installing).

Stimulus operates based on HTML data attributes, so update your view(s) to make use of your defined Stimulus controllers. For the default `hello-controller`, the necessary HTML would look similar to:

```

    Greet

```

Learn more about Stimulus by reading the [handbook](https://stimulusjs.org/handbook/introduction) and/or [reference](https://stimulusjs.org/reference/controllers).

Options
-------

[](#options)

- `with-turbolinks` - Adds [Turbolinks](https://github.com/turbolinks/turbolinks) to make navigating your web application faster.

    Example:

    ```
    php artisan preset stimulus --option=with-turbolinks
    ```

Contributing
------------

[](#contributing)

Please check our contributing rules in [our website](https://laravel-frontend-presets.github.io) for details.

Credits
-------

[](#credits)

- [Shane Logsdon](https://github.com/slogsdon)
- [All Contributors](../../contributors)

License
-------

[](#license)

This project is licensed under the MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2749d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23558090?v=4)[Miguel Piedrafita](/maintainers/m1guelpf)[@m1guelpf](https://github.com/m1guelpf)

---

Top Contributors

[![slogsdon](https://avatars.githubusercontent.com/u/647624?v=4)](https://github.com/slogsdon "slogsdon (4 commits)")

---

Tags

laravelpresetstimuluslaravelpresetstimulus

### Embed Badge

![Health badge](/badges/laravel-frontend-presets-stimulus/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-frontend-presets-stimulus/health.svg)](https://phpackages.com/packages/laravel-frontend-presets-stimulus)
```

###  Alternatives

[laravel-frontend-presets/tailwindcss

Laravel frontend preset for Tailwind CSS

1.1k405.6k6](/packages/laravel-frontend-presets-tailwindcss)[laravel-frontend-presets/material-dashboard

Laravel 11.x Front-end preset for material

264283.7k](/packages/laravel-frontend-presets-material-dashboard)[laravel-frontend-presets/now-ui-dashboard

Laravel 11.x Front-end preset for now ui dashboard

22318.3k](/packages/laravel-frontend-presets-now-ui-dashboard)[miaababikir/laravel-tailwind-dashboard-preset

Laravel tailwind css dashboard preset

3634.7k](/packages/miaababikir-laravel-tailwind-dashboard-preset)[laravel-frontend-presets/vuetify

Laravel 5.5+ Front-end preset for vuetify

8013.4k](/packages/laravel-frontend-presets-vuetify)[laravel-frontend-presets/zurb-foundation

Laravel 6.0+ front-end preset for Zurb Foundation

5418.7k](/packages/laravel-frontend-presets-zurb-foundation)

PHPackages © 2026

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