summaryrefslogtreecommitdiff
path: root/composer.json
diff options
context:
space:
mode:
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json44
1 files changed, 44 insertions, 0 deletions
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..1776b5f
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,44 @@
+{
+ "name": "lizhineng/snowflake",
+ "description": "Build your own Snowflake.",
+ "type": "library",
+ "require": {
+ "php": "^8.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^11.5",
+ "friendsofphp/php-cs-fixer": "^3.92",
+ "phpstan/phpstan": "^2.1"
+ },
+ "license": "MIT",
+ "autoload": {
+ "psr-4": {
+ "Zhineng\\Snowflake\\": "src/"
+ }
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "Zhineng\\Snowflake\\Tests\\": "tests/"
+ }
+ },
+ "authors": [
+ {
+ "name": "Zhineng Li",
+ "email": "[email protected]"
+ }
+ ],
+ "minimum-stability": "stable",
+ "scripts": {
+ "test": "phpunit --testdox",
+ "format": "php-cs-fixer fix",
+ "lint": "phpstan analyse",
+ "all": [
+ "@format",
+ "@lint",
+ "@test"
+ ]
+ },
+ "config": {
+ "sort-packages": true
+ }
+}