Skip to content

Commit 9dd6259

Browse files
authored
feat: next version of symfony sdk (#15)
1 parent 42e62e0 commit 9dd6259

25 files changed

+465
-1171
lines changed

.github/workflows/ci.yml

-57
This file was deleted.

bin/local-php-security-checker

-4.6 MB
Binary file not shown.

composer.json

+15-62
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"type": "library",
32
"name": "treblle/treblle-symfony",
43
"description": "Stay in tune with your APIs",
4+
"license": "MIT",
55
"homepage": "https://treblle.com/",
6+
"type": "library",
67
"keywords": [
78
"treblle",
89
"api",
910
"monitoring",
1011
"debuging",
1112
"documentation"
1213
],
13-
"license": "MIT",
1414
"authors": [
1515
{
1616
"name": "Vedran Cindrić",
@@ -26,30 +26,22 @@
2626
},
2727
"autoload-dev": {
2828
"psr-4": {
29-
"Tests\\Treblle\\Symfony\\": "tests/"
29+
"Treblle\\Symfony\\Tests\\": "tests/"
3030
}
3131
},
3232
"require": {
33-
"php": "^7.4|^8.0",
34-
"beberlei/assert": "^3.3",
35-
"thecodingmachine/safe": "^1.3.2",
36-
"treblle/treblle-php": "^3.0.1",
37-
"symfony/config": "^4.4|^5.0|^6.0",
38-
"symfony/console": "^4.4|^5.0|^6.0",
39-
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
40-
"symfony/event-dispatcher": "^4.4|^5.0|^6.0",
41-
"symfony/http-kernel": "^4.4|^5.0|^6.0"
33+
"ext-json": "*",
34+
"php": "^8.2",
35+
"treblle/treblle-php": "^4.0.2",
36+
"symfony/config": "^4.4|^5.0|^6.0|^7.0",
37+
"symfony/console": "^4.4|^5.0|^6.0|^7.0",
38+
"symfony/routing": "^4.4|^5.0|^6.0|^7.0",
39+
"symfony/dependency-injection": "^4.4|^5.0|^6.0|^7.0",
40+
"symfony/event-dispatcher": "^4.4|^5.0|^6.0|^7.0",
41+
"symfony/http-kernel": "^4.4|^5.0|^6.0|^7.0"
4242
},
4343
"require-dev": {
44-
"friendsofphp/php-cs-fixer": "^3.1",
45-
"justinrainbow/json-schema": "^5.2",
46-
"php-parallel-lint/php-parallel-lint": "^1.3",
47-
"phpstan/phpstan": "^0.12.99",
48-
"phpstan/phpstan-beberlei-assert": "^0.12.6",
49-
"phpstan/phpstan-phpunit": "^0.12.22",
50-
"phpunit/phpunit": "^9.5",
51-
"rector/rector": "^0.11.56",
52-
"thecodingmachine/phpstan-safe-rule": "^1.0"
44+
"laravel/pint": "^1.15"
5345
},
5446
"config": {
5547
"preferred-install": "dist",
@@ -58,47 +50,8 @@
5850
"minimum-stability": "stable",
5951
"prefer-stable": true,
6052
"scripts": {
61-
"security:check": [
62-
"bin/local-php-security-checker"
63-
],
64-
"code-style:fix": [
65-
"PHP_CS_FIXER_FUTURE_MODE=1 php-cs-fixer fix --config='./tools/php-cs-fixer/config.php' --diff --ansi --using-cache=no"
66-
],
67-
"code-style:check": [
68-
"PHP_CS_FIXER_FUTURE_MODE=1 php-cs-fixer fix --config='./tools/php-cs-fixer/config.php' --dry-run --diff --ansi --using-cache=no"
69-
],
70-
"lint:php": [
71-
"parallel-lint src",
72-
"parallel-lint tests"
73-
],
74-
"lint": [
75-
"@lint:php"
76-
],
77-
"rector:check": [
78-
"rector --config='./tools/rector/config.php' --dry-run --ansi --no-progress-bar"
79-
],
80-
"rector:fix": [
81-
"rector --config='./tools/rector/config.php' --ansi --no-progress-bar"
82-
],
83-
"phpstan": [
84-
"phpstan analyse --configuration='./tools/phpstan/config.neon' --ansi --no-progress --memory-limit=3G"
85-
],
86-
"static-analysis": [
87-
"@composer validate",
88-
"@lint",
89-
"@code-style:check",
90-
"@phpstan",
91-
"@rector:check"
92-
],
93-
"phpunit": [
94-
"phpunit --configuration='./tools/phpunit/config.xml' --colors --do-not-cache-result"
95-
],
96-
"tests": [
97-
"@phpunit"
98-
],
99-
"qc": [
100-
"@static-analysis",
101-
"@tests"
53+
"pint": [
54+
"./vendor/bin/pint"
10255
]
10356
}
10457
}

pint.json

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"preset": "psr12",
3+
"rules": {
4+
"align_multiline_comment": true,
5+
"array_indentation": true,
6+
"array_syntax": true,
7+
"blank_line_between_import_groups": false,
8+
"blank_lines_before_namespace": true,
9+
"blank_line_before_statement": true,
10+
"blank_line_after_namespace": true,
11+
"blank_line_after_opening_tag": true,
12+
"no_extra_blank_lines": true,
13+
"combine_consecutive_issets": true,
14+
"combine_consecutive_unsets": true,
15+
"single_import_per_statement": true,
16+
"single_blank_line_at_eof": true,
17+
"final_public_method_for_abstract_class": false,
18+
"no_trailing_whitespace": true,
19+
"concat_space": {
20+
"spacing": "one"
21+
},
22+
"final_class": true,
23+
"declare_parentheses": true,
24+
"declare_strict_types": true,
25+
"explicit_string_variable": true,
26+
"fully_qualified_strict_types": true,
27+
"global_namespace_import": {
28+
"import_classes": true,
29+
"import_constants": true,
30+
"import_functions": true
31+
},
32+
"is_null": true,
33+
"no_unused_imports": true,
34+
"lambda_not_used_import": true,
35+
"logical_operators": true,
36+
"mb_str_functions": true,
37+
"method_chaining_indentation": true,
38+
"modernize_strpos": true,
39+
"trailing_comma_in_multiline": true,
40+
"new_with_braces": true,
41+
"no_empty_comment": true,
42+
"not_operator_with_successor_space": true,
43+
"ordered_traits": true,
44+
"protected_to_private": false,
45+
"simplified_if_return": true,
46+
"strict_comparison": true,
47+
"ternary_to_null_coalescing": true,
48+
"trim_array_spaces": true,
49+
"use_arrow_functions": true,
50+
"void_return": true,
51+
"yoda_style": true,
52+
"array_push": true,
53+
"assign_null_coalescing_to_coalesce_equal": true,
54+
"explicit_indirect_variable": true,
55+
"method_argument_space": {
56+
"on_multiline": "ensure_fully_multiline"
57+
},
58+
"modernize_types_casting": true,
59+
"no_superfluous_elseif": true,
60+
"no_useless_else": true,
61+
"nullable_type_declaration_for_default_null_value": true,
62+
"ordered_imports": {
63+
"sort_algorithm": "length"
64+
},
65+
"ordered_class_elements": {
66+
"order": [
67+
"use_trait",
68+
"case",
69+
"constant",
70+
"constant_public",
71+
"constant_protected",
72+
"constant_private",
73+
"property_public",
74+
"property_protected",
75+
"property_private",
76+
"construct",
77+
"destruct",
78+
"magic",
79+
"phpunit",
80+
"method_abstract",
81+
"method_public_static",
82+
"method_public",
83+
"method_protected_static",
84+
"method_protected",
85+
"method_private_static",
86+
"method_private"
87+
],
88+
"sort_algorithm": "none"
89+
},
90+
"class_attributes_separation": {
91+
"elements": {
92+
"const": "none",
93+
"method": "one",
94+
"property": "one",
95+
"trait_import": "none",
96+
"case": "none"
97+
}
98+
}
99+
}
100+
}

0 commit comments

Comments
 (0)