Skip to content

Commit 38170ba

Browse files
authored
feat: port @formatjs/icu-messageformat-parser to PHP (#19)
1 parent 3b1d6a8 commit 38170ba

238 files changed

Lines changed: 14771 additions & 19 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "skillshare/formatphp",
3-
"type": "library",
43
"description": "Internationalize PHP apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.",
4+
"license": "MIT",
5+
"type": "library",
56
"keywords": [
67
"intl",
78
"i18n",
@@ -14,11 +15,12 @@
1415
"translate",
1516
"translation"
1617
],
17-
"license": "MIT",
1818
"require": {
1919
"php": "^7.4 || ^8",
2020
"ext-intl": "*",
2121
"ext-json": "*",
22+
"ext-mbstring": "*",
23+
"myclabs/php-enum": "^1.8",
2224
"nikic/php-parser": "^4.13",
2325
"psr/log": "^1 || ^2",
2426
"ramsey/collection": "^1.2",
@@ -27,8 +29,24 @@
2729
"webmozart/glob": "^4.4"
2830
},
2931
"require-dev": {
30-
"ramsey/devtools": "^1.7"
32+
"ramsey/devtools": "^1.7",
33+
"spatie/phpunit-snapshot-assertions": "^4.2"
3134
},
35+
"minimum-stability": "dev",
36+
"prefer-stable": true,
37+
"autoload": {
38+
"psr-4": {
39+
"FormatPHP\\": "src/"
40+
}
41+
},
42+
"autoload-dev": {
43+
"psr-4": {
44+
"FormatPHP\\Test\\": "tests/"
45+
}
46+
},
47+
"bin": [
48+
"bin/formatphp"
49+
],
3250
"config": {
3351
"sort-packages": true
3452
},
@@ -42,20 +60,5 @@
4260
"ramsey/devtools": {
4361
"command-prefix": "dev"
4462
}
45-
},
46-
"autoload": {
47-
"psr-4": {
48-
"FormatPHP\\": "src/"
49-
}
50-
},
51-
"autoload-dev": {
52-
"psr-4": {
53-
"FormatPHP\\Test\\": "tests/"
54-
}
55-
},
56-
"minimum-stability": "dev",
57-
"prefer-stable": true,
58-
"bin": [
59-
"bin/formatphp"
60-
]
63+
}
6164
}

0 commit comments

Comments
 (0)