-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a59c1f
commit 555e485
Showing
4 changed files
with
77 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
assets/* | ||
!assets/.gitignore | ||
protected/runtime/* | ||
!protected/runtime/.gitignore | ||
protected/data/*.db | ||
themes/classic/views/ | ||
/.idea | ||
/nbproject | ||
/vendor | ||
/*.lock | ||
/*.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
# yii2-extension | ||
Template package for Yii2 extensions | ||
Yii2 extension template | ||
======================= | ||
Package template for Yii2 extension | ||
|
||
Installation | ||
------------ | ||
The preferred way to install this extension is through [Composer](https://getcomposer.org/download/). | ||
Either run: | ||
```bash | ||
composer require --prefer-dist ensostudio/yii2-extension "*" | ||
``` | ||
or add | ||
``` | ||
"ensostudio/yii2-extension": "*" | ||
``` | ||
to the require section of your `composer.json` file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "ensostudio/yii2-extension", | ||
"description": "Package template for Yii2 extension", | ||
"keywords": ["yii2", "extension", "ensostudio"], | ||
"type": "yii2-extension", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Enso studio", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.1", | ||
"yiisoft/yii2": "^2.0" | ||
}, | ||
"require-dev": { | ||
"roave/security-advisories": "dev-latest" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"EnsoStudio\\Yii2Extension\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"EnsoStudio\\Yii2Extension\\": "tests/" | ||
} | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://asset-packagist.org" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace EnsoStudio\Yii2Extension; | ||
|
||
use yii\base\BootstrapInterface; | ||
|
||
/** | ||
* This is just an example. | ||
*/ | ||
class Extension implements BootstrapInterface | ||
{ | ||
/** | ||
* @param \yii\base\Application $app the application currently running | ||
* @return void | ||
*/ | ||
public function bootstrap($app): void | ||
{ | ||
// @todo | ||
} | ||
} |