Download the PHP package fet/laravel-php-to-js without Composer
On this page you can find all versions of the php package fet/laravel-php-to-js. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fet/laravel-php-to-js
More information about fet/laravel-php-to-js
Files in fet/laravel-php-to-js
Download fet/laravel-php-to-js
More information about fet/laravel-php-to-js
Files in fet/laravel-php-to-js
Vendor fet
Package laravel-php-to-js
Short Description A simple Laravel package to pass PHP variables to JavaScript.
License MIT
Homepage https://github.com/f-e-t/laravel-php-to-js
Package laravel-php-to-js
Short Description A simple Laravel package to pass PHP variables to JavaScript.
License MIT
Homepage https://github.com/f-e-t/laravel-php-to-js
Please rate this library. Is it a good library?
Informations about the package laravel-php-to-js
Introduction
The fet/laravel-php-to-js
package provides a simple way to pass PHP variables to JavaScript in your Laravel applications.
Installation
composer require fet/laravel-php-to-js
php artisan vendor:publish --provider="Fet\PhpToJs\PhpToJsServiceProvider" --tag="config"
Configuration
Usage
You can use the \Fet\PhpToJs\PhpToJsFacade
facade to add variables that are then transformed to JavaScript.
The variables can be accessed in JavaScript as follows:
The default namespace is
phpToJs
.
Tests
Run the tests with:
All versions of laravel-php-to-js with dependencies
PHP Build Version
Package Version
The package fet/laravel-php-to-js contains the following files
Loading the files please wait ....