Skip to content

Slamdunk/yii2-js-cookie

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

yii2-js-cookie

This extension provides an assets bundle with JavaScript Cookie for Yii framework 2.0 applications.

Latest Stable Version Total Downloads Daily Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require webtoucher/yii2-js-cookie "*"

or add

"webtoucher/yii2-js-cookie": "*"

to the require section of your composer.json file.

Usage

In view

webtoucher\cookie\AssetBundle::register($this);

or as dependency in your main application asset bundle

class AppAsset extends AssetBundle
{
	// ...

	public $depends = [
		// ...
		'\webtoucher\cookie\AssetBundle'
	];
}

Then you can use Cookies in your scripts. Please read project documentation for more information.

About

Asset Bundle for Yii2 with JavaScript Cookie https://github.com/js-cookie/js-cookie

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Languages

  • PHP 100.0%