{"id":18375842,"url":"https://github.com/laravel-frontend-presets/stimulus","last_synced_at":"2025-10-16T10:40:03.855Z","repository":{"id":57011974,"uuid":"155679449","full_name":"laravel-frontend-presets/stimulus","owner":"laravel-frontend-presets","description":"Laravel 5.5+ frontend preset for Stimulus","archived":false,"fork":false,"pushed_at":"2018-11-02T23:18:57.000Z","size":7,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-29T04:23:19.195Z","etag":null,"topics":["laravel","preset","stimulus"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laravel-frontend-presets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-01T07:40:41.000Z","updated_at":"2025-02-11T21:34:18.000Z","dependencies_parsed_at":"2022-08-21T15:10:36.272Z","dependency_job_id":null,"html_url":"https://github.com/laravel-frontend-presets/stimulus","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/laravel-frontend-presets/stimulus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-frontend-presets%2Fstimulus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-frontend-presets%2Fstimulus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-frontend-presets%2Fstimulus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-frontend-presets%2Fstimulus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laravel-frontend-presets","download_url":"https://codeload.github.com/laravel-frontend-presets/stimulus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-frontend-presets%2Fstimulus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279179363,"owners_count":26120429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","preset","stimulus"],"created_at":"2024-11-06T00:20:39.398Z","updated_at":"2025-10-16T10:40:03.789Z","avatar_url":"https://github.com/laravel-frontend-presets.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel 5.5+ frontend preset for Stimulus\n\nThis package makes it easy to use [Stimulus](https://stimulusjs.org/), a modest JavaScript framework for the HTML you already have, with Laravel 5.5+.\n\nRead more on [the origin of Stimulus](https://stimulusjs.org/handbook/origin).\n\n## Contents\n\n- [Installation/Usage](#installation-usage)\n- [Options](#options)\n- [Contributing](#contributing)\n- [Credits](#credits)\n- [License](#license)\n\n## Installation/Usage\n\nTo install this preset on your Laravel application, simply run:\n\n```bash\ncomposer require laravel-frontend-presets/stimulus\nphp artisan preset stimulus\nnpm install # or yarn install\nnpm run dev # or yarn dev\n```\n\nThis will:\n\n- Add the Stimulus preset package\n- Remove JavaScript files other than `bootstrap.js`\n- Add JavaScript files for leveraging Stimulus\n- Install Node.js dependencies\n- Build frontend assets\n\nOnce complete, ensure that the built `js/app.js` file in your `public` directory is loaded in a Blade layout or view, e.g.:\n\n```html\n\u003cscript type=\"text/javascript\" defer src=\"{{ mix('/js/app.js') }}\"\u003e\u003c/script\u003e\n```\n\nThe Stimulus controllers defined in `resources/assets/js/controllers` (or `resources/js/controllers` for Laravel 5.7+) will be available at runtime.\n\n\u003e **Note:** After updating your defined Stimulus controllers, remember to rebuild your frontend assets to reflect your changes.\n\nYour 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).\n\nStimulus 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:\n\n```html\n\u003cdiv data-controller=\"hello\"\u003e\n    \u003cinput data-target=\"hello.name\" type=\"text\"\u003e\n    \u003cbutton data-action=\"click-\u003ehello#greet\"\u003eGreet\u003c/button\u003e\n\u003c/div\u003e\n```\n\nLearn more about Stimulus by reading the [handbook](https://stimulusjs.org/handbook/introduction) and/or [reference](https://stimulusjs.org/reference/controllers).\n\n## Options\n\n- `with-turbolinks` - Adds [Turbolinks](https://github.com/turbolinks/turbolinks) to make navigating your web application faster.\n\n  Example:\n\n  ```bash\n  php artisan preset stimulus --option=with-turbolinks\n  ```\n\n## Contributing\n\nPlease check our contributing rules in [our website](https://laravel-frontend-presets.github.io) for details.\n\n## Credits\n\n- [Shane Logsdon](https://github.com/slogsdon)\n- [All Contributors](../../contributors)\n\n## License\n\nThis project is licensed under the MIT License. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-frontend-presets%2Fstimulus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaravel-frontend-presets%2Fstimulus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-frontend-presets%2Fstimulus/lists"}