summaryrefslogtreecommitdiff
path: root/composer.json
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-01-05 16:26:11 +0800
committerZhineng Li <[email protected]>2026-01-05 16:26:11 +0800
commita49763dd739c3c68c4a8322896d594e926ac8e6b (patch)
treeab96cf55ccf828ec3c61d7cf5c440cc8fe837a9b /composer.json
first commit
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
+ }
+}