Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dektrium/yii2-passfield
Passfield widget
https://github.com/dektrium/yii2-passfield
Last synced: about 2 months ago
JSON representation
Passfield widget
- Host: GitHub
- URL: https://github.com/dektrium/yii2-passfield
- Owner: dektrium
- License: mit
- Created: 2014-04-15T18:18:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-16T14:25:59.000Z (over 10 years ago)
- Last Synced: 2024-03-25T22:01:42.413Z (10 months ago)
- Language: PHP
- Size: 137 KB
- Stars: 3
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Yii2-passfield
==============Passfield widget for Yii2.
Installation
------------Either run following command:
```bash
$ php composer.phar require --prefer-dist dektrium/yii2-passfield "dev-master"
```or add
```json
"dektrium/yii2-passfield": "dev-master"
```to the require section of your `composer.json` file and run following command:
```bash
$ php composer.phar update
```Usage
-----If you are using active form you can all the widget as follows:
```php
= \dektrium\passfield\Passfield::widget([
'form' => $form, // active form instance
'model' => $model, // your model
'attribute' => 'password', // model attribute name
'config' => [] // passfield configuration
]) ?>
```Or if you are not using active form:
```php
= \dektrium\passfield\Passfield::widget([
'name' => 'password', // the input name
'config' => [] // passfield configuration
]) ?>
```License
-------Yii2-passfield is released under the MIT License. See the bundled [LICENSE.md](LICENSE.md) for details.