coderello/laravel-shared-data
Larablocks Analysis
coderello/laravel-shared-data works with Laravel 9 (latest release 4.0.0, Feb 22, 2022), which reached end of life on Feb 6, 2024: no more fixes, even for security.
Laravel 5 to 8 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 9, past end of life since Feb 6, 2024
- No release in the last 12 months (last: Feb 22, 2022)
- 321 downloads a month (needs 10,000)
- 311 GitHub stars (at least 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Feb 22, 2022.
- No releases in the last 12 months.
- First released: Mar 18, 2019.
- Monthly downloads: 321, up 168% from six months ago.
- 3 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require coderello/laravel-shared-data |
|
| Latest Version: | 4.0.0 |
| PHP: | ^8.0 |
| Laravel: | 9 |
| Older releases: | 5 – 8 |
| License: | MIT |
| Last Updated: | Feb 1, 2023 |
| Links: | GitHub · Packagist |
Laravel Shared Data
✨ Introduction
Laravel Shared Data provides an easy way to share the data from your backend to the JavaScript.
🚀 Quick start
-
Install the package:
composer require coderello/laravel-shared-data -
Include the
@shareddirective into your blade layout before all scripts. -
Share the data from within Laravel:
share(['user' => $user, 'title' => $title]); -
Access the data from the JavaScript directly:
const user = window.sharedData.user; const title = window.sharedData.title; -
Or using the built-it global helper:
const user = shared('user'); const title = shared('title');
📖 License
Laravel Shared Data is open-sourced software licensed under the MIT license.
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 4.0.0 | ^8.0 | ^9.0 | MIT | |
| 3.2.0 | ^7.3| | ^6.0| | MIT | |
| 3.1.1 | ^7.3| | ^6.0| | MIT | |
| 3.1.0 | ^7.3| | ^6.0| | MIT | |
| 3.0.0 | ^7.3 | ^6.0| | MIT | |
| 2.1.0 | ^7.2 | 5.8.*| | MIT | |
| 2.0.0 | ^7.2 | 5.8.*| | MIT | |
| 1.4.0 | >=7.1 | 5.8.*| | MIT | |
| 1.3.0 | >=7.1 | 5.8.*| | MIT | |
| 1.2.0 | >=7.1 | 5.8.*| | MIT | |
| 1.1.0 | >=7.1 | ^5.8| | MIT | |
| 1.0.0 | >=7.1 | 5.8.* | MIT | |
| 0.2.0 | >=7.1 | 5.5.*| | MIT | |
| 0.1.0 | >=7.1 | 5.5.*| | MIT |