diff --git a/.gitignore b/.gitignore index 70f0875..fc68621 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ -assets/* -!assets/.gitignore -protected/runtime/* -!protected/runtime/.gitignore -protected/data/*.db -themes/classic/views/ +/.idea +/nbproject +/vendor +/*.lock +/*.cache diff --git a/README.md b/README.md index dc76bec..513987a 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..864811d --- /dev/null +++ b/composer.json @@ -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": "info@ensostudio.ru" + } + ], + "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" + } + ] +} \ No newline at end of file diff --git a/src/Extension.php b/src/Extension.php new file mode 100644 index 0000000..e9fb6fe --- /dev/null +++ b/src/Extension.php @@ -0,0 +1,20 @@ +