Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pkruithof committed May 13, 2014
0 parents commit b349529
Show file tree
Hide file tree
Showing 38 changed files with 3,283 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .editorconfig
@@ -0,0 +1,36 @@
; top-most EditorConfig file
root = true

; Unix-style newlines
[*]
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true

[*.php]
indent_size = 4
insert_final_newline = true

[*.scss]
indent_size = 2

[*.less]
indent_size = 2

[*.js]
indent_size = 2

[*.html]
indent_size = 2

[*.twig]
indent_size = 2

[*.xml]
indent_size = 2

[*.yml]
indent_size = 2

[*.sls]
indent_size = 2
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
vendor/*
62 changes: 62 additions & 0 deletions .scrutinizer.yml
@@ -0,0 +1,62 @@
# inherit the next configuration down the chain
inherit: true

filter:
paths: [src/*]

tools:
php_mess_detector:
config:
code_size_rules:
cyclomatic_complexity: true
npath_complexity: true
excessive_method_length: true
excessive_class_length: true
excessive_parameter_list: true
excessive_public_count: true
too_many_fields: true
too_many_methods: true
excessive_class_complexity: true
design_rules:
number_of_class_children: true
depth_of_inheritance: true
coupling_between_objects: true
unused_code_rules:
unused_local_variable: true
unused_private_method: true
unused_formal_parameter: true
naming_rules:
short_variable: true
long_variable: true
short_method: true
boolean_method_name: true
controversial_rules: ~
php_cs_fixer:
config:
level: all
php_analyzer:
config:
suspicious_code:
enabled: true
overriding_parameter: true
verify_php_doc_comments:
enabled: true
loops_must_use_braces:
enabled: true
simplify_boolean_return:
enabled: true
phpunit_checks:
enabled: true
reflection_fixes:
enabled: true
use_statement_fixes:
enabled: true
order_alphabetically: true
php_code_sniffer:
config:
standard: PSR2
php_loc: true
php_pdepend: true
php_sim: true
php_changetracking: true
external_code_coverage: true
22 changes: 22 additions & 0 deletions .travis.yml
@@ -0,0 +1,22 @@
services:
- rabbitmq

language: php

php:
- 5.5
- 5.6

install:
- pecl install -f amqp
- composer self-update

before_script:
- composer install --no-interaction

script:
- phpunit --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --access-token="edf9593753c666cc9c4f6f43a8e4f5643d7f084d682b0bd0a64b447b052a5083" --format=php-clover coverage.clover
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 TreeHouse

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 4 additions & 0 deletions README.md
@@ -0,0 +1,4 @@
Queue library
===========================

To be documented
32 changes: 32 additions & 0 deletions composer.json
@@ -0,0 +1,32 @@
{
"name": "treehouselabs/queue",
"type": "library",
"description": "Queue",
"keywords": ["mq","message queue","message","queue","amqp","rabbitmq","worker","pubsub"],
"license": "MIT",
"authors": [
{
"name": "Peter Kruithof",
"email": "peter@treehouse.nl"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=5.5",
"psr/log": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"doctrine/orm": "~2.3",
"empi89/php-amqp-stubs": "dev-master"
},
"suggest": {
"ext-amqp": "When you want to use the AMQP extension, written in C",
"videlalvaro/php-amqplib": "When you want to use the PhpAmqpLib library, written in PHP"
},
"autoload": {
"psr-4": {
"TreeHouse\\Queue\\": "src/TreeHouse/Queue/"
}
}
}

0 comments on commit b349529

Please sign in to comment.