{ "name": "flightphp/core", "description": "Flight is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web applications. This is the maintained fork of mikecao/flight", "homepage": "https://docs.flightphp.com/", "license": "MIT", "authors": [ { "name": "Mike Cao", "email": "mike@mikecao.com", "homepage": "https://mikecao.com/", "role": "Original Developer" }, { "name": "Franyer Sánchez", "email": "franyeradriansanchez@gmail.com", "homepage": "https://faslatam.42web.io/", "role": "Maintainer" }, { "name": "n0nag0n", "email": "n0nag0n@sky-9.com", "role": "Maintainer" } ], "require": { "php": ">=7.4", "ext-json": "*" }, "autoload": { "classmap": [ "src/Flight.php" ], "psr-4": { "flight\\": "src" } }, "autoload-dev": { "psr-4": { "tests\\": "tests" } }, "require-dev": { "ext-pdo_sqlite": "*", "flightphp/container": "^1.3", "flightphp/runway": "^1.2", "league/container": "^4.2", "level-2/dice": "^4.0", "phpstan/extension-installer": "^1.4", "phpstan/phpstan": "^2.1", "phpunit/phpunit": "^9.6", "rregeer/phpunit-coverage-check": "^0.3.1", "spatie/phpunit-watcher": "^1.23", "squizlabs/php_codesniffer": "^4.0", "symfony/var-dumper": "^5.4" }, "config": { "allow-plugins": { "phpstan/extension-installer": true }, "process-timeout": 0, "sort-packages": true }, "scripts": { "test": "phpunit", "test-watcher": "phpunit-watcher watch", "test-coverage": [ "rm -rf coverage", "@putenv XDEBUG_MODE=coverage", "phpunit --coverage-html coverage --coverage-clover coverage/clover.xml", "coverage-check coverage/clover.xml 100" ], "test-server": [ "echo \"Running Test Server\"", "@php -S localhost:8000 -t tests/server" ], "test-server-v2": [ "echo \"Running Test Server\"", "@php -S localhost:8000 -t tests/server_v2" ], "test-performance": [ "echo \"Running Performance Tests...\"", "@php -S localhost:8077 -t tests/performance/ > /dev/null 2>&1 & echo $! > server.pid", "sleep 2", "bash tests/performance/performance_tests.sh", "kill `cat server.pid`", "rm server.pid", "echo \"Performance Tests Completed.\"" ], "lint": [ "phpstan --no-progress --memory-limit=256M", "phpcs" ], "format": [ "phpcbf" ], "post-install-cmd": [ "@php -r \"if (!file_exists('phpcs.xml')) copy('phpcs.xml.dist', 'phpcs.xml');\"", "@php -r \"if (!file_exists('phpstan.neon')) copy('phpstan.dist.neon', 'phpstan.neon');\"", "@php -r \"if (!file_exists('phpunit.xml')) copy('phpunit.xml.dist', 'phpunit.xml');\"", "@php -r \"if (!file_exists('phpunit-watcher.yml')) copy('phpunit-watcher.yml.dist', 'phpunit-watcher.yml');\"" ] }, "suggest": { "latte/latte": "Latte template engine", "tracy/tracy": "Tracy debugger", "phpstan/phpstan": "PHP Static Analyzer" }, "replace": { "mikecao/flight": "2.0.2" } }