Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterSilence authored and Fedonyuk Anton committed Oct 7, 2021
1 parent 4a59c1f commit 555e485
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .gitignore
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
18 changes: 16 additions & 2 deletions README.md
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.
36 changes: 36 additions & 0 deletions composer.json
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"
}
]
}
20 changes: 20 additions & 0 deletions src/Extension.php
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
}
}

0 comments on commit 555e485

Please sign in to comment.