Skip to content

Commit

Permalink
feat: next version of symfony sdk (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhushan authored Feb 11, 2025
1 parent 42e62e0 commit 9dd6259
Show file tree
Hide file tree
Showing 25 changed files with 465 additions and 1,171 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/ci.yml

This file was deleted.

Binary file removed bin/local-php-security-checker
Binary file not shown.
77 changes: 15 additions & 62 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"type": "library",
"name": "treblle/treblle-symfony",
"description": "Stay in tune with your APIs",
"license": "MIT",
"homepage": "https://treblle.com/",
"type": "library",
"keywords": [
"treblle",
"api",
"monitoring",
"debuging",
"documentation"
],
"license": "MIT",
"authors": [
{
"name": "Vedran Cindrić",
Expand All @@ -26,30 +26,22 @@
},
"autoload-dev": {
"psr-4": {
"Tests\\Treblle\\Symfony\\": "tests/"
"Treblle\\Symfony\\Tests\\": "tests/"
}
},
"require": {
"php": "^7.4|^8.0",
"beberlei/assert": "^3.3",
"thecodingmachine/safe": "^1.3.2",
"treblle/treblle-php": "^3.0.1",
"symfony/config": "^4.4|^5.0|^6.0",
"symfony/console": "^4.4|^5.0|^6.0",
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
"symfony/event-dispatcher": "^4.4|^5.0|^6.0",
"symfony/http-kernel": "^4.4|^5.0|^6.0"
"ext-json": "*",
"php": "^8.2",
"treblle/treblle-php": "^4.0.2",
"symfony/config": "^4.4|^5.0|^6.0|^7.0",
"symfony/console": "^4.4|^5.0|^6.0|^7.0",
"symfony/routing": "^4.4|^5.0|^6.0|^7.0",
"symfony/dependency-injection": "^4.4|^5.0|^6.0|^7.0",
"symfony/event-dispatcher": "^4.4|^5.0|^6.0|^7.0",
"symfony/http-kernel": "^4.4|^5.0|^6.0|^7.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.1",
"justinrainbow/json-schema": "^5.2",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/phpstan": "^0.12.99",
"phpstan/phpstan-beberlei-assert": "^0.12.6",
"phpstan/phpstan-phpunit": "^0.12.22",
"phpunit/phpunit": "^9.5",
"rector/rector": "^0.11.56",
"thecodingmachine/phpstan-safe-rule": "^1.0"
"laravel/pint": "^1.15"
},
"config": {
"preferred-install": "dist",
Expand All @@ -58,47 +50,8 @@
"minimum-stability": "stable",
"prefer-stable": true,
"scripts": {
"security:check": [
"bin/local-php-security-checker"
],
"code-style:fix": [
"PHP_CS_FIXER_FUTURE_MODE=1 php-cs-fixer fix --config='./tools/php-cs-fixer/config.php' --diff --ansi --using-cache=no"
],
"code-style:check": [
"PHP_CS_FIXER_FUTURE_MODE=1 php-cs-fixer fix --config='./tools/php-cs-fixer/config.php' --dry-run --diff --ansi --using-cache=no"
],
"lint:php": [
"parallel-lint src",
"parallel-lint tests"
],
"lint": [
"@lint:php"
],
"rector:check": [
"rector --config='./tools/rector/config.php' --dry-run --ansi --no-progress-bar"
],
"rector:fix": [
"rector --config='./tools/rector/config.php' --ansi --no-progress-bar"
],
"phpstan": [
"phpstan analyse --configuration='./tools/phpstan/config.neon' --ansi --no-progress --memory-limit=3G"
],
"static-analysis": [
"@composer validate",
"@lint",
"@code-style:check",
"@phpstan",
"@rector:check"
],
"phpunit": [
"phpunit --configuration='./tools/phpunit/config.xml' --colors --do-not-cache-result"
],
"tests": [
"@phpunit"
],
"qc": [
"@static-analysis",
"@tests"
"pint": [
"./vendor/bin/pint"
]
}
}
100 changes: 100 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"preset": "psr12",
"rules": {
"align_multiline_comment": true,
"array_indentation": true,
"array_syntax": true,
"blank_line_between_import_groups": false,
"blank_lines_before_namespace": true,
"blank_line_before_statement": true,
"blank_line_after_namespace": true,
"blank_line_after_opening_tag": true,
"no_extra_blank_lines": true,
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,
"single_import_per_statement": true,
"single_blank_line_at_eof": true,
"final_public_method_for_abstract_class": false,
"no_trailing_whitespace": true,
"concat_space": {
"spacing": "one"
},
"final_class": true,
"declare_parentheses": true,
"declare_strict_types": true,
"explicit_string_variable": true,
"fully_qualified_strict_types": true,
"global_namespace_import": {
"import_classes": true,
"import_constants": true,
"import_functions": true
},
"is_null": true,
"no_unused_imports": true,
"lambda_not_used_import": true,
"logical_operators": true,
"mb_str_functions": true,
"method_chaining_indentation": true,
"modernize_strpos": true,
"trailing_comma_in_multiline": true,
"new_with_braces": true,
"no_empty_comment": true,
"not_operator_with_successor_space": true,
"ordered_traits": true,
"protected_to_private": false,
"simplified_if_return": true,
"strict_comparison": true,
"ternary_to_null_coalescing": true,
"trim_array_spaces": true,
"use_arrow_functions": true,
"void_return": true,
"yoda_style": true,
"array_push": true,
"assign_null_coalescing_to_coalesce_equal": true,
"explicit_indirect_variable": true,
"method_argument_space": {
"on_multiline": "ensure_fully_multiline"
},
"modernize_types_casting": true,
"no_superfluous_elseif": true,
"no_useless_else": true,
"nullable_type_declaration_for_default_null_value": true,
"ordered_imports": {
"sort_algorithm": "length"
},
"ordered_class_elements": {
"order": [
"use_trait",
"case",
"constant",
"constant_public",
"constant_protected",
"constant_private",
"property_public",
"property_protected",
"property_private",
"construct",
"destruct",
"magic",
"phpunit",
"method_abstract",
"method_public_static",
"method_public",
"method_protected_static",
"method_protected",
"method_private_static",
"method_private"
],
"sort_algorithm": "none"
},
"class_attributes_separation": {
"elements": {
"const": "none",
"method": "one",
"property": "one",
"trait_import": "none",
"case": "none"
}
}
}
}
Loading

0 comments on commit 9dd6259

Please sign in to comment.