diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c1c44c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,34 @@ +# hidev internals +.hidev/composer.json +.hidev/composer.lock +.hidev/config-local.yml +.hidev/vendor + +# IDE & OS files +.*.swp +.DS_Store +.buildpath +.idea +.project +.settings +Thumbs.db +nbproject + +# vendor dirs +vendor + +# composer lock files +composer.lock + +# php-cs-fixer cache +.php_cs.cache + +# phpunit generated files +coverage.clover + +# Binaries +chkipper.phar +composer.phar +php-cs-fixer.phar +phpunit-skelgen.phar +phpunit.phar diff --git a/.hidev/config.yml b/.hidev/config.yml new file mode 100644 index 0000000..7afcfc5 --- /dev/null +++ b/.hidev/config.yml @@ -0,0 +1,15 @@ +package: + type: yii2-extension + name: hipanel-module-mailing + title: Mailing module for HiPanel + headline: HiPanel Mailing Module + keywords: hipanel, module, mailing + namespace: hipanel\modules\mailing + description: | + [![Logo](https://raw.githubusercontent.com/hiqdev/hipanel-core/master/docs/logo.png)](https://hipanel.com/) + + [HiPanel](http://hipanel.com) is the next generation control panel for hosting, domains and more. + + This package provides mailing functions for HiPanel. + + diff --git a/.php_cs b/.php_cs new file mode 100644 index 0000000..d42a143 --- /dev/null +++ b/.php_cs @@ -0,0 +1,54 @@ +setUsingCache(true) + ->setRiskyAllowed(true) + ->setRules(array( + '@Symfony' => true, + 'header_comment' => [ + 'header' => $header, + 'separate' => 'bottom', + 'location' => 'after_declare_strict', + 'commentType' => 'PHPDoc', + ], + 'binary_operator_spaces' => [ + 'align_double_arrow' => null, + 'align_equals' => null, + ], + 'concat_space' => ['spacing' => 'one'], + 'array_syntax' => ['syntax' => 'short'], + 'empty_return' => false, + 'blank_line_before_return' => false, + 'phpdoc_align' => false, + 'phpdoc_params' => false, + 'phpdoc_scalar' => false, + 'phpdoc_separation' => false, + 'phpdoc_to_comment' => false, + 'method_argument_space' => false, + 'ereg_to_preg' => true, + 'blank_line_after_opening_tag' => true, + 'single_blank_line_before_namespace' => true, + 'ordered_imports' => true, + 'phpdoc_order' => true, + 'pre_increment' => true, + 'strict_comparison' => true, + 'strict_param' => true, + 'no_multiline_whitespace_before_semicolons' => true, + )) + ->setFinder( + PhpCsFixer\Finder::create() + ->in(__DIR__) + ->notPath('vendor') + ->notPath('runtime') + ->notPath('web/assets') + ) +; diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 0000000..4d60661 --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,9 @@ +checks: + php: + code_rating: true + duplication: true +tools: + php_code_coverage: + enabled: true + external_code_coverage: + timeout: 600 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6910a91 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +language: php +php: + - 5.5 + - 5.6 + - 7 + - hhvm +matrix: + allow_failures: + - + php: hhvm + - + php: 5.5 +cache: + directories: + - $HOME/.composer/cache +before_install: + - 'composer self-update' + - 'composer --version' + - 'wget http://hiqdev.com/hidev/hidev.phar -O hidev.phar && chmod a+x hidev.phar' + - './hidev.phar --version' + - './hidev.phar travis/before_install' +sudo: false +install: + - './hidev.phar travis/install' +script: + - './hidev.phar travis/script' +after_script: + - './hidev.phar travis/after_script' diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d1dab10 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# hiqdev/hipanel-module-mailing + +## [Under development] + +## [Development started] - 2017-01-03 + +[@silverfire]: https://github.com/SilverFire +[d.naumenko.a@gmail.com]: https://github.com/SilverFire +[@hiqsol]: https://github.com/hiqsol +[sol@hiqdev.com]: https://github.com/hiqsol +[Under development]: https://github.com/hiqdev/hipanel-module-mailing/releases/tag/Under development diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..dd9e6ac --- /dev/null +++ b/LICENSE @@ -0,0 +1,29 @@ +Copyright © 2017, HiQDev (http://hiqdev.com/) +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name of HiQDev nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..ac6215f --- /dev/null +++ b/README.md @@ -0,0 +1,41 @@ +HiPanel Mailing Module +====================== + +**Mailing module for HiPanel** + +[![Latest Stable Version](https://poser.pugx.org/hiqdev/hipanel-module-mailing/v/stable)](https://packagist.org/packages/hiqdev/hipanel-module-mailing) +[![Total Downloads](https://poser.pugx.org/hiqdev/hipanel-module-mailing/downloads)](https://packagist.org/packages/hiqdev/hipanel-module-mailing) +[![Build Status](https://img.shields.io/travis/hiqdev/hipanel-module-mailing.svg)](https://travis-ci.org/hiqdev/hipanel-module-mailing) +[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/hiqdev/hipanel-module-mailing.svg)](https://scrutinizer-ci.com/g/hiqdev/hipanel-module-mailing/) +[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/hiqdev/hipanel-module-mailing.svg)](https://scrutinizer-ci.com/g/hiqdev/hipanel-module-mailing/) + +[![Logo](https://raw.githubusercontent.com/hiqdev/hipanel-core/master/docs/logo.png)](https://hipanel.com/) + +[HiPanel](http://hipanel.com) is the next generation control panel for hosting, domains and more. + +This package provides mailing functions for HiPanel. + +## Installation + +The preferred way to install this yii2-extension is through [composer](http://getcomposer.org/download/). + +Either run + +```sh +php composer.phar require "hiqdev/hipanel-module-mailing" +``` + +or add + +```json +"hiqdev/hipanel-module-mailing": "*" +``` + +to the require section of your composer.json. + +## License + +This project is released under the terms of the BSD-3-Clause [license](LICENSE). +Read more [here](http://choosealicense.com/licenses/bsd-3-clause). + +Copyright © 2017, HiQDev (http://hiqdev.com/) diff --git a/chkipper.json b/chkipper.json new file mode 100644 index 0000000..92be52b --- /dev/null +++ b/chkipper.json @@ -0,0 +1,3 @@ +{ + "name": "hiqdev/hipanel-module-mailing" +} diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..20ce680 --- /dev/null +++ b/composer.json @@ -0,0 +1,54 @@ +{ + "name": "hiqdev/hipanel-module-mailing", + "type": "yii2-extension", + "description": "Mailing module for HiPanel", + "keywords": [ + "hipanel", + "module", + "mailing" + ], + "homepage": "https://github.com/hiqdev/hipanel-module-mailing", + "license": "BSD-3-Clause", + "support": { + "email": "support@hiqdev.com", + "source": "https://github.com/hiqdev/hipanel-module-mailing", + "issues": "https://github.com/hiqdev/hipanel-module-mailing/issues", + "wiki": "https://github.com/hiqdev/hipanel-module-mailing/wiki", + "forum": "http://forum.hiqdev.com/" + }, + "authors": [ + { + "name": "Andrii Vasyliev", + "role": "Project lead", + "email": "sol@hiqdev.com", + "homepage": "http://hipanel.com/" + }, + { + "name": "Dmitry Naumenko", + "role": "Lead backend developer", + "email": "silverfire@hiqdev.com", + "homepage": "http://silverfire.me/" + }, + { + "name": "Andrey Klochok", + "role": "Lead frontend developer", + "email": "tafid@hiqdev.com", + "homepage": "http://hiqdev.com/" + }, + { + "name": "Yuriy Myronchuk", + "role": "QA Lead", + "email": "bladeroot@hiqdev.com", + "homepage": "http://hiqdev.com/" + } + ], + "require-dev": { + "hiqdev/hidev-php": "<2.0 || dev-master", + "hiqdev/hidev-hiqdev": "<2.0 || dev-master" + }, + "autoload": { + "psr-4": { + "hipanel\\modules\\mailing\\": "src" + } + } +} diff --git a/history.md b/history.md new file mode 100644 index 0000000..5d61a47 --- /dev/null +++ b/history.md @@ -0,0 +1,14 @@ +# hiqdev/hipanel-module-mailing + +## [Under development] + + - [424661f] 2017-01-03 Initial commit [@silverfire] + +## [Development started] - 2017-01-03 + +[@silverfire]: https://github.com/SilverFire +[d.naumenko.a@gmail.com]: https://github.com/SilverFire +[@hiqsol]: https://github.com/hiqsol +[sol@hiqdev.com]: https://github.com/hiqsol +[Under development]: https://github.com/hiqdev/hipanel-module-mailing/releases/tag/Under development +[424661f]: https://github.com/hiqdev/hipanel-module-mailing/commit/424661f