https://github.com/xanweb/c5-js-cookie
Concrete5 JS Cookie
https://github.com/xanweb/c5-js-cookie
Last synced: 27 days ago
JSON representation
Concrete5 JS Cookie
- Host: GitHub
- URL: https://github.com/xanweb/c5-js-cookie
- Owner: Xanweb
- Created: 2020-02-26T09:41:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T18:03:24.000Z (over 2 years ago)
- Last Synced: 2024-11-30T13:40:50.561Z (6 months ago)
- Language: PHP
- Size: 694 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C5 JavaScript Cookie
Integrate JavaScript Cookie API in [Concrete5](https://github.com/concrete5/concrete5) Assets System.
## Official Source
#### [https://github.com/js-cookie/js-cookie](https://github.com/js-cookie/js-cookie)## Installation
Include library to your composer.json
```bash
composer require xanweb/c5-js-cookie
```## Usage
```php
$g = \Concrete\Core\Http\ResponseAssetGroup::get();
$g->requireAsset('vendor-javascript', 'js-cookie');
```Or like in Block Controller
```php
public function registerViewAssets($outputContent = '')
{
$this->requireAsset('vendor-javascript', 'js-cookie');
}
```## Issues
If you have any issue regarding the JavaScript Cookie API please use [JavaScript Cookie Issues Tracker](https://github.com/js-cookie/js-cookie/issues).## License
The C5 JavaScript Cookie is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).