Skip to content

Commit

Permalink
feat: Add initial version of bundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
b00gizm committed Feb 10, 2023
1 parent 48e837d commit c4e9a19
Show file tree
Hide file tree
Showing 27 changed files with 6,682 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig is awesome: https://EditorConfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 4
trim_trailing_whitespace = true

[{Dockerfile,Dockerfile.*}]
indent_size = 2

[.github/**.yaml]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.phpunit.cache/
/vendor/
1 change: 1 addition & 0 deletions .php-cs-fixer.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"php":"8.2.0","version":"3.14.3:v3.14.3#b418036b95b4936a33fe906245d3044395935e73","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"none"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_import_per_statement":{"group_to_single_imports":false},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true,"strict_param":true,"array_syntax":{"syntax":"short"}},"hashes":{"tests\/Unit\/Support\/Traits\/ConfigurableTraitTest.php":"70efcd120e5894c3bfedb7ba1562a31a","tests\/Unit\/Imagekit\/ProviderTest.php":"74cc96ca8abc378eb37b4f565d4c5580","tests\/Unit\/Imagekit\/ProviderRegistryTest.php":"619f5a9fabc4d6764648d95e14aa5e4b","tests\/Integration\/ProviderTest.php":"f4958d3423270da8aacbc15682ed2c89","tests\/TestKernel.php":"4cd9d424aa46c7c414a06131b5a4bdee","src\/Contracts\/Asset.php":"10e0076c8e18386fe4b1663c12b02438","src\/Support\/Traits\/ConfigurableTrait.php":"f5637c603daf28e62b2a9e04059042c6","src\/DependencyInjection\/Configuration.php":"0dd66a366f2ed4df4a2c70fa13b3094e","src\/DependencyInjection\/GeekCellImagekitExtension.php":"f262e51243d552aff7d58e8097eca9b5","src\/DependencyInjection\/Compiler\/ProviderPass.php":"dee8bb2d2018c035d64dc191c835e7ce","src\/Imagekit\/Provider.php":"e37d3da6900997d599db2db06d26b302","src\/Imagekit\/ProviderRegistry.php":"f6c4b5bee9f600ea64bba4e6668b3cfd","src\/Imagekit\/Asset.php":"2bab1fde0a0806f7c7dfc9a9c0866a79","src\/GeekCellImagekitBundle.php":"55189bffdae6ddd51e76a0cf68813d71"}}
16 changes: 16 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

$finder = PhpCsFixer\Finder::create()
->exclude(['vendor'])
->in(__DIR__)
;

$config = new PhpCsFixer\Config();
return $config
->setRules([
'@PSR12' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
])
->setRiskyAllowed(true)
->setFinder($finder);
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# imagekit-bundle
A Symfony bundle for ImageKit integration
A Symfony bundle for Imagekit integration
47 changes: 47 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "geekcell/imagekit-bundle",
"description": "A Symfony bundle for Imagekit integration",
"type": "symfony-bundle",
"version": "1.0.0",
"license": "MIT",
"authors": [
{
"name": "Christian Kappen",
"email": "christian.kappen@geekcell.io",
"homepage": "https://geekcell.io"
},
{
"name": "Pascal Cremer",
"email": "pascal.cremer@geekcell.io",
"homepage": "https://geekcell.io"
}
],
"require": {
"imagekit/imagekit": "^3.0",
"symfony/http-kernel": "^6.2",
"symfony/dependency-injection": "^6.2",
"symfony/config": "^6.2",
"symfony/string": "^6.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.14",
"mockery/mockery": "^1.5",
"phpstan/phpstan": "^1.9",
"phpstan/phpstan-mockery": "^1.1",
"phpunit/phpunit": "^9.5",
"symfony/framework-bundle": "^6.2",
"symfony/yaml": "^6.2"
},
"autoload": {
"psr-4": {
"GeekCell\\ImagekitBundle\\": "src/",
"GeekCell\\ImagekitBundle\\Tests\\": "tests/"
}
},
"scripts": {
"gc:tests": "phpunit --testdox --colors=always",
"gc:cs-lint": "php-cs-fixer fix --config .php-cs-fixer.php --diff -vvv --dry-run",
"gc:cs-fix": "php-cs-fixer fix --config .php-cs-fixer.php -vvv || true",
"gc:phpstan": "phpstan analyse --memory-limit=2G --no-progress --level=8"
}
}
Loading

0 comments on commit c4e9a19

Please sign in to comment.