Skip to content

Commit 55376da

Browse files
committed
initial commit
1 parent 55a58eb commit 55376da

29 files changed

+4348
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/vendor
2+
/bin
3+
/coverage

.scrutinizer.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
filter:
2+
paths: [src/*]
3+
excluded_paths: [tests/*]
4+
tools:
5+
php_analyzer: true
6+
php_sim: true
7+
php_pdepend: true
8+
sensiolabs_security_checker: true
9+
php_changetracking: true
10+
php_mess_detector:
11+
enabled: true
12+
config:
13+
ruleset: ~
14+
code_size_rules:
15+
cyclomatic_complexity: true
16+
npath_complexity: true
17+
excessive_method_length: true
18+
excessive_class_length: true
19+
excessive_parameter_list: true
20+
excessive_public_count: true
21+
too_many_fields: true
22+
too_many_methods: true
23+
excessive_class_complexity: true
24+
design_rules:
25+
exit_expression: true
26+
eval_expression: true
27+
goto_statement: true
28+
number_of_class_children: true
29+
depth_of_inheritance: true
30+
coupling_between_objects: true
31+
unused_code_rules:
32+
unused_private_field: true
33+
unused_local_variable: true
34+
unused_private_method: true
35+
unused_formal_parameter: true
36+
naming_rules:
37+
short_variable:
38+
minimum: 3
39+
long_variable:
40+
maximum: 20
41+
short_method:
42+
minimum: 3
43+
constructor_conflict: true
44+
constant_naming: true
45+
boolean_method_name: true
46+
controversial_rules:
47+
superglobals: true
48+
camel_case_class_name: true
49+
camel_case_property_name: true
50+
camel_case_method_name: true
51+
camel_case_parameter_name: true
52+
camel_case_variable_name: true
53+
external_code_coverage:
54+
timeout: 600
55+
checks:
56+
php:
57+
code_rating: true
58+
59+
build:
60+
nodes:
61+
analysis:
62+
project_setup:
63+
override: true
64+
tests:
65+
override:
66+
- php-scrutinizer-run --enable-security-analysis

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: php
2+
3+
php:
4+
- 7.2
5+
- 7.3
6+
7+
cache:
8+
directories:
9+
- $HOME/.cache/composer
10+
11+
before_script:
12+
- mkdir -p build/logs
13+
14+
install:
15+
- travis_retry composer install --no-interaction --no-suggest
16+
- travis_retry wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar
17+
- chmod +x ocular.phar
18+
19+
script:
20+
- ./vendor/bin/phpunit --configuration ./phpunit.xml --coverage-clover=coverage.clover
21+
22+
after_script:
23+
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar; fi
24+
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

README.md

Whitespace-only changes.

composer.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "mmasiukevich/message-serializer",
3+
"description": "PHP Service Bus (publish-subscribe pattern) messages serializer component",
4+
"type": "library",
5+
"keywords": [],
6+
"authors": [
7+
{
8+
"name": "Masiukevich Maksim",
9+
"email": "desperado@minsk-info.ru",
10+
"homepage": "https://github.com/mmasiukevich",
11+
"role": "Developer"
12+
}
13+
],
14+
"license": "MIT",
15+
"autoload": {
16+
"psr-4": {
17+
"Desperado\\ServiceBus\\MessageSerializer\\": "src/"
18+
}
19+
},
20+
"autoload-dev": {
21+
"psr-4": {
22+
"Desperado\\ServiceBus\\MessageSerializer\\Tests\\": "tests/"
23+
}
24+
},
25+
"require": {
26+
"php": ">=7.2",
27+
"ext-json": "*",
28+
"symfony/serializer-pack": "^v1",
29+
"mmasiukevich/common": "dev-master"
30+
},
31+
"require-dev": {
32+
"phpunit/phpunit": "^7",
33+
"vimeo/psalm": "^3"
34+
},
35+
"prefer-stable": true,
36+
"minimum-stability": "dev",
37+
"scripts": {
38+
"psalm": "./vendor/bin/psalm --config=psalm.xml",
39+
"phpunit": "./vendor/bin/phpunit --configuration phpunit.xml --verbose",
40+
"coverage": "./vendor/bin/phpunit --configuration phpunit.xml --coverage-html ./coverage --verbose",
41+
"test": [
42+
"@phpunit"
43+
]
44+
},
45+
"config": {
46+
"optimize-autoloader": true
47+
}
48+
}

0 commit comments

Comments
 (0)