From a49763dd739c3c68c4a8322896d594e926ac8e6b Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Mon, 5 Jan 2026 16:26:11 +0800 Subject: first commit --- composer.json | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 composer.json (limited to 'composer.json') 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": "im@zhineng.li" + } + ], + "minimum-stability": "stable", + "scripts": { + "test": "phpunit --testdox", + "format": "php-cs-fixer fix", + "lint": "phpstan analyse", + "all": [ + "@format", + "@lint", + "@test" + ] + }, + "config": { + "sort-packages": true + } +} -- cgit v1.2.3