Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derekisbusy/yii2-forcecopy
Debug toolbar plugin to add button to quickly enable/disable forcecopy.
https://github.com/derekisbusy/yii2-forcecopy
yii2 yii2-debug yii2-extension
Last synced: 1 day ago
JSON representation
Debug toolbar plugin to add button to quickly enable/disable forcecopy.
- Host: GitHub
- URL: https://github.com/derekisbusy/yii2-forcecopy
- Owner: derekisbusy
- License: bsd-3-clause
- Created: 2017-02-06T02:17:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T18:17:57.000Z (over 5 years ago)
- Last Synced: 2024-11-13T14:53:12.330Z (7 days ago)
- Topics: yii2, yii2-debug, yii2-extension
- Language: PHP
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yii2-forcecopy
[![Latest Release](https://img.shields.io/github/release/derekisbusy/yii2-forcecopy.svg?style=flat-square)]()
[![Software License](https://img.shields.io/badge/license-BSD-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Total Downloads](https://img.shields.io/packagist/dt/derekisbusy/yii2-forcecopy.svg?style=flat-square)](https://packagist.org/packages/derekisbusy/yii2-forcecopy)Adds a button to quickly turn [forceCopy](http://www.yiiframework.com/doc-2.0/yii-web-assetmanager.html#$forceCopy-detail) on/off in the debug toolbar.
Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist --dev derekisbusy/yii2-forcecopy "*"
```or add
```
"derekisbusy/yii2-forcecopy": "*"
```to the require section of your `composer.json` file.
Setup Config
------------Add the forcecopy panel to the debug panels list in your configuration file :
```php
'debug' => [
'class' => 'yii\debug\Module',
'panels' => [
'forcecopy' => ['class' => 'derekisbusy\forcecopy\ForcecopyPanel']
]
],
```Usage
-----The extension will add a section to the debug toolbar indicating whether or not forceCopy is on or off.
Click the forcecopy status label to change it's state on or off.