Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
stronglab committed Jul 10, 2016
0 parents commit 5332a57
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
11 changes: 11 additions & 0 deletions FlashMessage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace stronglab\alert;

class FlashMessage extends \yii\base\Widget
{
public function run()
{

}
}
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Yii2 Alert Message
==================
Yii2 Alert Message

Installation
------------

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist stronglab/yii2-alert "*"
```

or add

```
"stronglab/yii2-alert": "*"
```

to the require section of your `composer.json` file.


Usage
-----

Once the extension is installed, simply use it in your code by :

```php
<?= \stronglab\alert\FlashMessage::widget(); ?>```
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "stronglab/yii2-alert",
"description": "Yii2 Alert Message",
"type": "yii2-extension",
"keywords": ["yii2","extension"],
"license": "BSD-3-Clause",
"authors": [
{
"name": "strong",
"email": "[email protected]"
}
],
"require": {
"yiisoft/yii2": "*"
},
"autoload": {
"psr-4": {
"stronglab\\alert\\": ""
}
}
}

0 comments on commit 5332a57

Please sign in to comment.