-
- Downloads
Add a basic project
Showing
- .gitignore 6 additions, 0 deletions.gitignore
- .php_cs.dist 22 additions, 0 deletions.php_cs.dist
- README.md 23 additions, 1 deletionREADME.md
- composer.json 64 additions, 0 deletionscomposer.json
- phpstan.neon 13 additions, 0 deletionsphpstan.neon
- phpunit.xml.dist 34 additions, 0 deletionsphpunit.xml.dist
- psalm.xml 16 additions, 0 deletionspsalm.xml
- src/Command/TestCommand.php 32 additions, 0 deletionssrc/Command/TestCommand.php
- src/DbpStarterBundle.php 15 additions, 0 deletionssrc/DbpStarterBundle.php
- src/DependencyInjection/DbpStarterExtension.php 22 additions, 0 deletionssrc/DependencyInjection/DbpStarterExtension.php
- src/Resources/config/services.yaml 4 additions, 0 deletionssrc/Resources/config/services.yaml
- src/Service/ExternalApi.php 12 additions, 0 deletionssrc/Service/ExternalApi.php
- tests/Service/ExternalApiTest.php 23 additions, 0 deletionstests/Service/ExternalApiTest.php
- tests/bootstrap.php 5 additions, 0 deletionstests/bootstrap.php
.gitignore
0 → 100644
.php_cs.dist
0 → 100644
composer.json
0 → 100644
{ | ||
"name": "dbp/api-starter-bundle", | ||
"type": "symfony-bundle", | ||
"license": "AGPL-3.0-or-later", | ||
"require": { | ||
"php": "^7.3", | ||
"api-platform/core": "^2.4", | ||
"symfony/framework-bundle": "^4.1.12", | ||
"dbp/api-core-bundle": "@dev" | ||
}, | ||
"require-dev": { | ||
"friendsofphp/php-cs-fixer": "^2.16", | ||
"phpstan/phpstan": "^0.12.33", | ||
"phpstan/phpstan-phpunit": "^0.12.13", | ||
"symfony/phpunit-bridge": "^4.4", | ||
"vimeo/psalm": "^3.12" | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "../../API/bundles/api-core-bundle" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"DBP\\API\\StarterBundle\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"DBP\\API\\StarterBundle\\Tests\\": "tests/" | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
"platform": { | ||
"php": "7.3" | ||
} | ||
}, | ||
"scripts": { | ||
"test": [ | ||
"@php vendor/bin/simple-phpunit" | ||
], | ||
"phpstan": [ | ||
"@php vendor/bin/simple-phpunit --atleast-version 0", | ||
"@php vendor/bin/phpstan analyze --ansi" | ||
], | ||
"psalm": [ | ||
"@php vendor/bin/simple-phpunit --atleast-version 0", | ||
"@php vendor/bin/psalm" | ||
], | ||
"lint": [ | ||
"@composer run cs", | ||
"@composer run phpstan", | ||
"@composer run psalm" | ||
], | ||
"cs-fix": [ | ||
"@php vendor/bin/php-cs-fixer --ansi fix" | ||
], | ||
"cs": [ | ||
"@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff --diff-format=udiff" | ||
] | ||
} | ||
} | ||
\ No newline at end of file |
phpstan.neon
0 → 100644
phpunit.xml.dist
0 → 100644
psalm.xml
0 → 100644
src/Command/TestCommand.php
0 → 100644
src/DbpStarterBundle.php
0 → 100644
src/Resources/config/services.yaml
0 → 100644
src/Service/ExternalApi.php
0 → 100644
tests/Service/ExternalApiTest.php
0 → 100644
tests/bootstrap.php
0 → 100644
Please register or sign in to comment