Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-si committed Jul 18, 2017
0 parents commit af452f4
Show file tree
Hide file tree
Showing 15 changed files with 5,869 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .docheader
@@ -0,0 +1,6 @@
/**
* Mailer Queue Component (http://mateuszsitek.com/projects/mailer-component-queue)
*
* @copyright Copyright (c) 2017 DIGITAL WOLVES LTD (http://digitalwolves.ltd) All rights reserved.
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
*/
11 changes: 11 additions & 0 deletions .formatter.yml
@@ -0,0 +1,11 @@
use-sort:
sort-type: alph
sort-direction: asc

header: |
/**
* Mailer Queue Component (http://mateuszsitek.com/projects/mailer-component-queue)
*
* @copyright Copyright (c) 2017 DIGITAL WOLVES LTD (http://digitalwolves.ltd) All rights reserved.
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
*/
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
vendor/
.gtm/
/.coveralls.yml
/coveralls-upload.json
/clover.xml
6 changes: 6 additions & 0 deletions .scrutinizer.yml
@@ -0,0 +1,6 @@
checks:
php:
code_rating: true
duplication: true
tools:
external_code_coverage: true
66 changes: 66 additions & 0 deletions .travis.yml
@@ -0,0 +1,66 @@
sudo: false

language: php

cache:
directories:
- $HOME/.composer/cache
- vendor

env:
global:
- COMPOSER_ARGS="--no-interaction"

before_script:
- composer self-update
- composer install --dev --prefer-source --no-interaction

script:
- composer test
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
- if [[ $HEADER_CHECK == 'true' ]]; then composer header-check ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi

after_script:
- php vendor/bin/coveralls

matrix:
fast_finish: true
include:
- php: 7
env:
- DEPS=lowest
- php: 7
env:
- DEPS=locked
- CS_CHECK=true
- HEADER_CHECK=true
- TEST_COVERAGE=true
- php: 7
env:
- DEPS=latest
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=locked
- php: 7.1
env:
- DEPS=latest

before_install:
- travis_retry composer self-update
- if [[ $TRAVIS_PHP_VERSION != "hhvm" && $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || true ; fi

install:
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi
- travis_retry composer install $COMPOSER_ARGS
- composer show

branches:
only:
- master
- develop
28 changes: 28 additions & 0 deletions LICENSE.md
@@ -0,0 +1,28 @@
Copyright (c) 2017, **DIGITAL WOLVES LTD**

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 **DIGITAL WOLVES LTD** 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.
50 changes: 50 additions & 0 deletions README.md
@@ -0,0 +1,50 @@
# Mailer Queue Component [![SensioLabsInsight](https://insight.sensiolabs.com/projects/29103798-98e6-42b2-835f-0198a9140e2d/small.png)](https://insight.sensiolabs.com/projects/29103798-98e6-42b2-835f-0198a9140e2d)

[![build status][build image]][build]
[![coverage status][coverage image]][coverage]
[![code climate][Code Climate image]][Code Climate]
[![scrutinizer][Scrutinizer image]][Scrutinizer]
[![check][SensioLabsInsight image]][SensioLabsInsight]
[![packagist][Packagist image]][Packagist]

![requirements][dependencies image]
[![issues][issues image]][issues]
[![pull requests][pull requests image]][pull requests]

[![Minimum PHP Version][Minimum PHP Version image]][PHP]
[![license][license image]][license]

*container-interop console.*

## Installation
Install via composer:
```console
$ composer require aist/mailer-component-queue
```

[build image]: https://img.shields.io/travis/ma-si/mailer-component-queue/master.svg?style=flat-square
[build]: https://secure.travis-ci.org/ma-si/mailer-component-queue
[coverage image]: https://img.shields.io/coveralls/ma-si/mailer-component-queue.svg?style=flat-square
[coverage]: https://coveralls.io/r/ma-si/mailer-component-queue?branch=master

[Code Climate image]: https://img.shields.io/codeclimate/github/ma-si/mailer-component-queue.svg?style=flat-square
[Code Climate]: https://codeclimate.com/github/ma-si/mailer-component-queue
[Scrutinizer image]: https://img.shields.io/scrutinizer/g/ma-si/mailer-component-queue.svg?style=flat-square
[Scrutinizer]: https://scrutinizer-ci.com/g/ma-si/mailer-component-queue

[SensioLabsInsight image]: https://img.shields.io/sensiolabs/i/29103798-98e6-42b2-835f-0198a9140e2d.svg?style=flat-square
[SensioLabsInsight]: https://insight.sensiolabs.com/projects/29103798-98e6-42b2-835f-0198a9140e2d

[Packagist image]: https://img.shields.io/packagist/v/aist/mailer-component-queue.svg?style=flat-square
[Packagist]: https://packagist.org/packages/aist/mailer-component-queue

[dependencies image]: https://img.shields.io/requires/github/ma-si/mailer-component-queue.svg?style=flat-square
[issues image]: https://img.shields.io/github/issues/ma-si/mailer-component-queue.svg?style=flat-square
[issues]: https://github.com/ma-si/mailer-component-queue/issues
[pull requests image]: https://img.shields.io/github/issues-pr/ma-si/mailer-component-queue.svg?style=flat-square
[pull requests]: https://github.com/ma-si/mailer-component-queue/pulls

[Minimum PHP Version image]: https://img.shields.io/badge/php-%3E%3D%207.0-8892BF.svg?style=flat-square
[PHP]: https://php.net
[license image]: https://poser.pugx.org/aist/mailer-component-queue/license?format=flat-square
[license]: https://opensource.org/licenses/BSD-3-Clause
87 changes: 87 additions & 0 deletions composer.json
@@ -0,0 +1,87 @@
{
"name": "aist/mailer-component-queue",
"description": "Mailer Queue Component",
"type": "library",
"license": "BSD-3-Clause",
"keywords": [
"mailer",
"queue"
],
"authors": [
{
"name": "MaSi",
"email": "webdeveloper@mateuszsitek.com",
"homepage": "http://mateuszsitek.com",
"role": "Author"
}
],
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
},
"zf": {
"component": "Aist\\Mailer\\Component\\Queue",
"config-provider": "Aist\\Mailer\\Component\\Queue\\ConfigProvider"
}
},
"require": {
"php": "^7.0",
"container-interop/container-interop": "^1.2",
"slm/queue-doctrine": "^2.1@dev",
"zendframework/zend-expressive-template": "^1.0@dev",
"zendframework/zend-mail": "^2.8@dev"
},
"require-dev": {
"malukenho/docheader": "^0.1.5",
"mmoreram/php-formatter": "^1.3",
"mockery/mockery": "^0.9.8",
"php-mock/php-mock-phpunit": "^2.0 || ^1.1.2",
"phpunit/phpunit": "^6.0.7 || ^5.7.14",
"satooshi/php-coveralls": "^1.0",
"symfony/var-dumper": "^3.3",
"zendframework/zend-coding-standard": "~1.0.0"
},
"autoload": {
"psr-4": {
"Aist\\Mailer\\Component\\Queue\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Test\\Aist\\Mailer\\Component\\Queue\\": "test/"
}
},
"scripts": {
"post-update-cmd": [
],
"header-fix": [
"php-formatter formatter:header:fix src",
"php-formatter formatter:header:fix test"
],
"header-check": [
"docheader check src",
"docheader check test"
],
"use-sort": [
"php-formatter formatter:use:sort src",
"php-formatter formatter:use:sort test"
],
"check": [
"@header-check",
"@cs-check"
],
"fix": [
"@header-fix",
"@use-sort",
"@cs-fix"
],
"test": "phpunit --colors=always",
"cs-check": "phpcs --colors",
"cs-fix": "phpcbf --colors",
"test-coverage": "phpunit --coverage-clover clover.xml",
"upload-coverage": "coveralls -v"
}
}

0 comments on commit af452f4

Please sign in to comment.