dowilcox/javascript-variables
Larablocks Analysis
dowilcox/javascript-variables works with Laravel 5 (latest release 1.0.1, Mar 10, 2015), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Mar 10, 2015)
- 2 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Mar 10, 2015.
- No releases in the last 12 months.
- First released: Mar 10, 2015.
- Monthly downloads: 2.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require dowilcox/javascript-variables |
|
| Latest Version: | 1.0.1 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Mar 10, 2015 |
| Links: | GitHub · Packagist |
JavaScript-Variables
Send variables into JavaScript. Can be used standalone or with a Laravel service provider.
Installation
Add to your composer.json file
"dowilcox/javascript-variables": "dev-master"
$jsVar = new Dowilcox\JsVar\JsVar('namespace');
Installation (Laravel)
In config/app.php add the service provider and alias.
'Dowilcox\JsVar\JsVarServiceProvider',
'JsVar' => 'Dowilcox\JsVar\Facades\JsVar',
Example
$jsVar->add('key', 'value');
echo $jsVar->dump();
Will output:
window.namespace = window.namespace || {key: 'value'};
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 | Laravel | License |
|---|---|---|---|
| 1.0.1 | ~5.0 | MIT | |
| 1.0.0 | ~5.0 | MIT |