Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
77 lines (77 loc) · 3.08 KB
/
Copy pathcomposer.json
File metadata and controls
77 lines (77 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"name": "phalcon/rest-api",
"type": "project",
"description": "This is a sample REST API application for the Phalcon PHP Framework",
"keywords": [
"phalcon",
"framework",
"sample app",
"rest-api",
"rest",
"api"
],
"homepage": "https://phalcon.io",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Contributors",
"homepage": "https://github.com/phalcon/rest-api/graphs/contributors"
}
],
"require": {
"php": ">=8.1",
"ext-json": "*",
"ext-openssl": "*",
"league/fractal": "^0.21.0",
"robmorgan/phinx": "^0.16.12",
"vlucas/phpdotenv": "^5.6"
},
"suggest": {
"ext-phalcon": "Install the Phalcon v5 C extension to run on v5 (the default); alternatively run on v6 via the phalcon/phalcon package - see the Dockerfile PHALCON_VARIANT build arg and the README."
},
"autoload": {
"psr-4": {
"Phalcon\\Api\\": "src/"
}
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"allow-plugins": {
"pds/skeleton": false,
"infection/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3",
"pds/composer-script-names": "^1.0",
"pds/skeleton": "^1.0",
"phalcon/ide-stubs": "^5.16",
"phalcon/phalcon": "^6.0@beta",
"phalcon/phql": "1.0.x-dev",
"phalcon/code-quality": "^1.0",
"phalcon/talon": "^1.0.0",
"phpstan/phpstan": "^2.2",
"phpunit/phpunit": "^10.5",
"squizlabs/php_codesniffer": "^4.0"
},
"scripts": {
"analyze": "phpstan analyse -c resources/phpstan.neon --memory-limit 1024M",
"cs": "phpcs --standard=resources/phpcs.xml",
"cs-fix": "phpcbf --standard=resources/phpcs.xml",
"cs-fixer": "php-cs-fixer fix --config=resources/php-cs-fixer.php --dry-run --diff",
"cs-fixer-fix": "php-cs-fixer fix --config=resources/php-cs-fixer.php",
"test": "talon run",
"test-mutation": "infection --configuration=resources/infection.json5 --threads=1 --test-framework-options=--testsuite=unit,integration,cli",
"test-coverage": "phpunit -c resources/phpunit.xml.dist --coverage-clover tests/_output/coverage.xml",
"test-coverage-html": "phpunit -c resources/phpunit.xml.dist --coverage-html tests/_output/coverage",
"migrate": "phinx migrate -c resources/phinx.php",
"seed": "phinx seed:run -c resources/phinx.php",
"post-create-project-cmd": [
"@php -r \"file_exists('.env') || copy('resources/.env.example', '.env');\"",
"@php -r \"echo PHP_EOL . 'The Phalcon REST API is ready (.env created from resources/.env.example). Next steps:' . PHP_EOL . ' docker: docker compose up -d --build, then composer install && composer migrate' . PHP_EOL . ' tests: vendor/bin/talon run' . PHP_EOL;\""
]
}
}