Implementation a microservice architecture with JSON-RPC 2.0 communication between backend and frontend https://www.jsonrpc.org/specification
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

157 lines
6.7 KiB

{
"type": "project",
"license": "MIT",
"require": {
"php": "7.4.*",
"ext-apcu": "5.1.*",
"ext-ctype": "7.4.*",
"ext-iconv": "7.4.*",
"composer/package-versions-deprecated": "1.11.99.1",
"doctrine/doctrine-bundle": "^2.2",
"doctrine/doctrine-migrations-bundle": "^3.0",
"doctrine/orm": "^2.8",
"symfony/console": "5.2.*",
"symfony/dotenv": "5.2.*",
"symfony/flex": "^1.3.1",
"symfony/framework-bundle": "5.2.*",
"symfony/monolog-bundle": "^3.6",
"symfony/proxy-manager-bridge": "5.2.*",
"symfony/yaml": "5.2.*",
"yoanm/symfony-jsonrpc-http-server": "^3.0",
"yoanm/symfony-jsonrpc-params-validator": "^2.0"
},
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*"
},
"require-dev": {
"codeception/codeception": "^4.1",
"codeception/module-asserts": "^1.3",
"codeception/module-phpbrowser": "^1.0",
"codeception/module-rest": "^1.2",
"doctrine/doctrine-fixtures-bundle": "^3.4",
"ergebnis/composer-normalize": "^2.13",
"friendsofphp/php-cs-fixer": "^2.18",
"fzaninotto/faker": "^1.9",
"php-parallel-lint/php-parallel-lint": "^1.2",
"roave/security-advisories": "dev-master",
"symfony/maker-bundle": "^1.28"
},
"config": {
"apcu-autoloader": true,
"cache-files-ttl": 7776000,
"discard-changes": true,
"optimize-autoloader": true,
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"extra": {
"composer-normalize": {
"indent-size": 4,
"indent-style": "space"
},
"symfony": {
"allow-contrib": false,
"require": "5.2.*"
}
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/",
"App\\Tests\\Helper\\": "tests/_support/Helper",
"App\\Tests\\_generated\\": "tests/_support/_generated"
}
},
"minimum-stability": "stable",
"prefer-stable": true,
"scripts": {
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
],
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"codecept": "codecept -c tests/codeception.yml",
"data-recreate": [
"bin/console doctrine:database:drop --if-exists --force",
"bin/console doctrine:database:create --if-not-exists",
"bin/console doctrine:migrations:migrate -n --allow-no-migration -q",
"bin/console doctrine:fixtures:load --append"
],
"json-cs-fix": "composer normalize",
"lint:php": [
"parallel-lint --no-progress --no-colors --blame ./bin/console",
"parallel-lint --no-progress --no-colors --blame ./config/bundles.php",
"parallel-lint --no-progress --no-colors --blame ./config/preload.php",
"parallel-lint --no-progress --no-colors --blame ./public/index.php",
"parallel-lint --no-progress --no-colors --blame ./src",
"parallel-lint --no-progress --no-colors --blame ./tests/_support/Helper",
"parallel-lint --no-progress --no-colors --blame ./tests/_support/AcceptanceTester.php",
"parallel-lint --no-progress --no-colors --blame ./tests/_support/ApiTester.php",
"parallel-lint --no-progress --no-colors --blame ./tests/_support/UnitTester.php",
"parallel-lint --no-progress --no-colors --blame ./tests/acceptance",
"parallel-lint --no-progress --no-colors --blame ./tests/api",
"parallel-lint --no-progress --no-colors --blame ./tests/unit",
"parallel-lint --no-progress --no-colors --blame ./.php_cs"
],
"lint:yaml": [
"bin/console --quiet --no-debug l:yaml ./config/packages",
"bin/console --quiet --no-debug l:yaml ./config/routes",
"bin/console --quiet --no-debug l:yaml ./config/routes.yaml",
"bin/console --quiet --no-debug l:yaml ./config/services.yaml",
"bin/console --quiet --no-debug l:yaml ./tests/acceptance.suite.yml",
"bin/console --quiet --no-debug l:yaml ./tests/api.suite.yml",
"bin/console --quiet --no-debug l:yaml ./tests/codeception.yml",
"bin/console --quiet --no-debug l:yaml ./tests/unit.suite.yml"
],
"php-cs-fix": [
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache bin/console",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache config/bundles.php",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache config/preload.php",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache public/index.php",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache src",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/_support/Helper",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/_support/AcceptanceTester.php",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/_support/ApiTester.php",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/_support/UnitTester.php",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/acceptance",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/api",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/unit",
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache .php_cs"
],
"prepare-request": [
"@json-cs-fix",
"@lint:yaml",
"@lint:php",
"@lint:container",
"@php-cs-fix",
"@test:unit",
"@test:api",
"@test:acceptance"
],
"test:acceptance": [
"@codecept build -q",
"@codecept run acceptance"
],
"test:api": [
"@codecept build -q",
"@codecept run api"
],
"test:unit": [
"@codecept build -q",
"@codecept run unit --no-rebuild --coverage-html --coverage-text --no-colors"
]
}
}