| 1 | { |
| 2 | "name": "nesbot/carbon", |
| 3 | "description": "An API extension for DateTime that supports 281 different languages.", |
| 4 | "license": "MIT", |
| 5 | "type": "library", |
| 6 | "keywords": [ |
| 7 | "date", |
| 8 | "time", |
| 9 | "DateTime" |
| 10 | ], |
| 11 | "authors": [ |
| 12 | { |
| 13 | "name": "Brian Nesbitt", |
| 14 | "email": "[email protected]", |
| 15 | "homepage": "https://markido.com" |
| 16 | }, |
| 17 | { |
| 18 | "name": "kylekatarnls", |
| 19 | "homepage": "https://github.com/kylekatarnls" |
| 20 | } |
| 21 | ], |
| 22 | "homepage": "https://carbonphp.github.io/carbon/", |
| 23 | "support": { |
| 24 | "issues": "https://github.com/CarbonPHP/carbon/issues", |
| 25 | "source": "https://github.com/CarbonPHP/carbon", |
| 26 | "docs": "https://carbonphp.github.io/carbon/guide/getting-started/introduction.html" |
| 27 | }, |
| 28 | "funding": [ |
| 29 | { |
| 30 | "url": "https://github.com/sponsors/kylekatarnls", |
| 31 | "type": "github" |
| 32 | }, |
| 33 | { |
| 34 | "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", |
| 35 | "type": "tidelift" |
| 36 | }, |
| 37 | { |
| 38 | "url": "https://opencollective.com/Carbon#sponsor", |
| 39 | "type": "opencollective" |
| 40 | } |
| 41 | ], |
| 42 | "require": { |
| 43 | "php": "^8.1", |
| 44 | "ext-json": "*", |
| 45 | "carbonphp/carbon-doctrine-types": "<100.0", |
| 46 | "psr/clock": "^1.0", |
| 47 | "symfony/clock": "^6.3.12 || ^7.0 || ^8.0", |
| 48 | "symfony/polyfill-mbstring": "^1.0", |
| 49 | "symfony/translation": "^4.4.18 || ^5.2.1 || ^6.0 || ^7.0 || ^8.0" |
| 50 | }, |
| 51 | "require-dev": { |
| 52 | "doctrine/dbal": "^3.6.3 || ^4.0", |
| 53 | "doctrine/orm": "^2.15.2 || ^3.0", |
| 54 | "friendsofphp/php-cs-fixer": "^v3.87.1", |
| 55 | "kylekatarnls/multi-tester": "^2.5.3", |
| 56 | "phpmd/phpmd": "^2.15.0", |
| 57 | "phpstan/extension-installer": "^1.4.3", |
| 58 | "phpstan/phpstan": "^2.1.22", |
| 59 | "phpunit/phpunit": "^10.5.53", |
| 60 | "squizlabs/php_codesniffer": "^3.13.4 || ^4.0.0" |
| 61 | }, |
| 62 | "provide": { |
| 63 | "psr/clock-implementation": "1.0" |
| 64 | }, |
| 65 | "minimum-stability": "dev", |
| 66 | "prefer-stable": true, |
| 67 | "autoload": { |
| 68 | "psr-4": { |
| 69 | "Carbon\\": "src/Carbon/" |
| 70 | } |
| 71 | }, |
| 72 | "autoload-dev": { |
| 73 | "psr-4": { |
| 74 | "Tests\\": "tests/" |
| 75 | }, |
| 76 | "files": [ |
| 77 | "tests/Laravel/ServiceProvider.php" |
| 78 | ] |
| 79 | }, |
| 80 | "bin": [ |
| 81 | "bin/carbon" |
| 82 | ], |
| 83 | "config": { |
| 84 | "allow-plugins": { |
| 85 | "phpstan/extension-installer": true, |
| 86 | "composer/package-versions-deprecated": true |
| 87 | }, |
| 88 | "process-timeout": 0, |
| 89 | "sort-packages": true |
| 90 | }, |
| 91 | "extra": { |
| 92 | "branch-alias": { |
| 93 | "dev-master": "3.x-dev", |
| 94 | "dev-2.x": "2.x-dev" |
| 95 | }, |
| 96 | "laravel": { |
| 97 | "providers": [ |
| 98 | "Carbon\\Laravel\\ServiceProvider" |
| 99 | ] |
| 100 | }, |
| 101 | "phpstan": { |
| 102 | "includes": [ |
| 103 | "extension.neon" |
| 104 | ] |
| 105 | } |
| 106 | }, |
| 107 | "scripts": { |
| 108 | "phpcs": "php-cs-fixer fix -v --diff --dry-run", |
| 109 | "phpdoc": "php phpdoc.php", |
| 110 | "phpmd": "phpmd src text /phpmd.xml", |
| 111 | "phpmd-test": "phpmd tests text /tests/phpmd-test.xml", |
| 112 | "phpstan": "phpstan analyse --configuration phpstan.neon", |
| 113 | "phpunit": "phpunit --verbose", |
| 114 | "style-check": [ |
| 115 | "@phpcs", |
| 116 | "@phpstan", |
| 117 | "@phpmd" |
| 118 | ], |
| 119 | "test": [ |
| 120 | "@phpunit", |
| 121 | "@style-check" |
| 122 | ], |
| 123 | "sponsors": "php sponsors.php" |
| 124 | } |
| 125 | } |