diff --git a/README.md b/README.md index 61083e9..e078d00 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # What is Flight? +![](https://user-images.githubusercontent.com/104888/50957476-9c4acb80-14be-11e9-88ce-6447364dc1bb.png) +![](https://img.shields.io/badge/PHPStan-level%206-brightgreen.svg?style=flat) + Flight is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web applications. diff --git a/composer.json b/composer.json index 8e2611b..325ba7f 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "mikecao/flight", + "name": "faslatam/flight", "description": "Flight is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web applications.", "homepage": "http://flightphp.com", "license": "MIT", @@ -9,16 +9,36 @@ "email": "mike@mikecao.com", "homepage": "http://www.mikecao.com/", "role": "Original Developer" + }, + { + "name": "Franyer Sánchez", + "email": "franyeradriansanchez@gmail.com", + "homepage": "https://faslatam.000webhostapp.com", + "role": "Maintainer" } ], "require": { - "php": "^7.4|^8.0|^8.1", + "php": "^7.4|^8.0|^8.1|^8.2", "ext-json": "*" }, "autoload": { "files": [ "flight/autoload.php", "flight/Flight.php" ] }, "require-dev": { - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^9.5", + "phpstan/phpstan": "^1.10", + "phpstan/extension-installer": "^1.3" + }, + "config": { + "allow-plugins": { + "phpstan/extension-installer": true + } + }, + "scripts": { + "test": "phpunit tests", + "lint": "phpstan --no-progress -cphpstan.neon" + }, + "suggest": { + "phpstan/phpstan": "PHP Static Analysis Tool" } } diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..56c06c3 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,10 @@ +includes: + - vendor/phpstan/phpstan/conf/bleedingEdge.neon + +parameters: + level: 6 + excludePaths: + - vendor + paths: + - flight + - index.php