2015-08-26 23:16:28 -05:00
|
|
|
{
|
2021-06-04 22:51:52 +08:00
|
|
|
"name": "codeigniter4/codeigniter4",
|
|
|
|
"description": "The CodeIgniter framework v4",
|
|
|
|
"license": "MIT",
|
2023-07-21 17:53:34 +08:00
|
|
|
"type": "project",
|
|
|
|
"homepage": "https://codeigniter.com",
|
|
|
|
"support": {
|
|
|
|
"forum": "https://forum.codeigniter.com/",
|
|
|
|
"source": "https://github.com/codeigniter4/CodeIgniter4",
|
|
|
|
"slack": "https://codeigniterchat.slack.com"
|
|
|
|
},
|
2021-06-04 22:51:52 +08:00
|
|
|
"require": {
|
2023-10-13 17:26:26 +09:00
|
|
|
"php": "^8.1",
|
2021-06-04 22:51:52 +08:00
|
|
|
"ext-intl": "*",
|
|
|
|
"ext-mbstring": "*",
|
2023-10-21 08:04:26 +09:00
|
|
|
"laminas/laminas-escaper": "^2.13",
|
2023-12-16 11:51:15 +09:00
|
|
|
"psr/log": "^3.0"
|
2021-06-04 22:51:52 +08:00
|
|
|
},
|
|
|
|
"require-dev": {
|
2024-07-23 20:51:44 +08:00
|
|
|
"codeigniter/phpstan-codeigniter": "^1.4",
|
2021-06-04 22:51:52 +08:00
|
|
|
"fakerphp/faker": "^1.9",
|
2023-07-21 17:53:34 +08:00
|
|
|
"kint-php/kint": "^5.0.4",
|
2021-06-04 22:51:52 +08:00
|
|
|
"mikey179/vfsstream": "^1.6",
|
2023-10-21 08:55:35 +09:00
|
|
|
"nexusphp/tachycardia": "^2.0",
|
2024-07-23 20:51:44 +08:00
|
|
|
"phpstan/extension-installer": "^1.4",
|
|
|
|
"phpstan/phpstan": "^1.11",
|
|
|
|
"phpstan/phpstan-strict-rules": "^1.6",
|
2024-07-26 20:39:52 +08:00
|
|
|
"phpunit/phpcov": "^9.0.2 || ^10.0",
|
|
|
|
"phpunit/phpunit": "^10.5.16 || ^11.2",
|
2024-07-23 20:51:44 +08:00
|
|
|
"predis/predis": "^1.1 || ^2.0",
|
2024-08-13 15:14:34 +00:00
|
|
|
"rector/rector": "1.2.3"
|
2021-06-04 22:51:52 +08:00
|
|
|
},
|
2023-12-21 15:34:44 +08:00
|
|
|
"replace": {
|
|
|
|
"codeigniter4/framework": "self.version"
|
|
|
|
},
|
2021-06-04 22:51:52 +08:00
|
|
|
"suggest": {
|
2022-11-23 13:56:14 +09:00
|
|
|
"ext-curl": "If you use CURLRequest class",
|
2023-12-01 06:24:14 +00:00
|
|
|
"ext-dom": "If you use TestResponse",
|
2022-10-21 11:47:55 +09:00
|
|
|
"ext-exif": "If you run Image class tests",
|
2023-12-01 06:24:14 +00:00
|
|
|
"ext-fileinfo": "Improves mime type detection for files",
|
2023-07-21 17:53:34 +08:00
|
|
|
"ext-gd": "If you use Image class GDHandler",
|
|
|
|
"ext-imagick": "If you use Image class ImageMagickHandler",
|
2023-12-01 06:24:14 +00:00
|
|
|
"ext-libxml": "If you use TestResponse",
|
2023-07-21 17:53:34 +08:00
|
|
|
"ext-memcache": "If you use Cache class MemcachedHandler with Memcache",
|
|
|
|
"ext-memcached": "If you use Cache class MemcachedHandler with Memcached",
|
2022-08-01 09:12:20 +09:00
|
|
|
"ext-mysqli": "If you use MySQL",
|
|
|
|
"ext-oci8": "If you use Oracle Database",
|
|
|
|
"ext-pgsql": "If you use PostgreSQL",
|
2023-07-21 17:53:34 +08:00
|
|
|
"ext-readline": "Improves CLI::input() usability",
|
2022-08-01 09:12:20 +09:00
|
|
|
"ext-redis": "If you use Cache class RedisHandler",
|
2023-12-01 06:24:14 +00:00
|
|
|
"ext-simplexml": "If you format XML",
|
2023-12-03 05:36:02 +09:00
|
|
|
"ext-sodium": "If you use Encryption SodiumHandler",
|
2023-12-01 06:24:14 +00:00
|
|
|
"ext-sqlite3": "If you use SQLite3",
|
2023-07-21 17:53:34 +08:00
|
|
|
"ext-sqlsrv": "If you use SQL Server",
|
|
|
|
"ext-xdebug": "If you use CIUnitTestCase::assertHeaderEmitted()"
|
2021-06-04 22:51:52 +08:00
|
|
|
},
|
|
|
|
"autoload": {
|
|
|
|
"psr-4": {
|
2024-02-22 20:35:05 +09:00
|
|
|
"CodeIgniter\\": "system/"
|
2021-06-04 22:51:52 +08:00
|
|
|
},
|
|
|
|
"exclude-from-classmap": [
|
2024-06-13 08:31:19 +09:00
|
|
|
"**/Database/Migrations/**",
|
|
|
|
"system/ThirdParty/**",
|
|
|
|
"tests/system/Config/fixtures/**"
|
2021-06-04 22:51:52 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"autoload-dev": {
|
|
|
|
"psr-4": {
|
2024-07-23 20:51:44 +08:00
|
|
|
"CodeIgniter\\": "tests/system/",
|
|
|
|
"Utils\\": "utils/src/"
|
2021-06-04 22:51:52 +08:00
|
|
|
}
|
|
|
|
},
|
2023-07-21 17:53:34 +08:00
|
|
|
"config": {
|
2024-07-23 20:51:44 +08:00
|
|
|
"allow-plugins": {
|
|
|
|
"phpstan/extension-installer": true
|
|
|
|
},
|
2023-07-21 17:53:34 +08:00
|
|
|
"optimize-autoloader": true,
|
|
|
|
"preferred-install": "dist",
|
|
|
|
"sort-packages": true
|
|
|
|
},
|
|
|
|
"extra": {
|
|
|
|
"branch-alias": {
|
|
|
|
"dev-develop": "4.x-dev"
|
|
|
|
}
|
|
|
|
},
|
2021-06-04 22:51:52 +08:00
|
|
|
"scripts": {
|
|
|
|
"post-update-cmd": [
|
2024-07-13 00:34:17 +08:00
|
|
|
"CodeIgniter\\ComposerScripts::postUpdate"
|
2021-06-04 22:51:52 +08:00
|
|
|
],
|
2024-07-23 20:51:44 +08:00
|
|
|
"post-autoload-dump": [
|
|
|
|
"@composer update --working-dir=utils"
|
|
|
|
],
|
2022-08-29 10:32:27 +09:00
|
|
|
"analyze": [
|
2023-07-19 08:37:05 +07:00
|
|
|
"Composer\\Config::disableProcessTimeout",
|
2024-07-25 23:29:52 +08:00
|
|
|
"@phpstan:check",
|
2024-07-23 20:51:44 +08:00
|
|
|
"vendor/bin/rector process --dry-run"
|
2022-08-29 10:32:27 +09:00
|
|
|
],
|
2021-09-16 21:52:39 +09:00
|
|
|
"cs": [
|
2023-06-22 11:55:10 +08:00
|
|
|
"Composer\\Config::disableProcessTimeout",
|
2024-07-24 18:48:06 +08:00
|
|
|
"utils/vendor/bin/php-cs-fixer check --ansi --verbose --diff --config=.php-cs-fixer.user-guide.php",
|
|
|
|
"utils/vendor/bin/php-cs-fixer check --ansi --verbose --diff --config=.php-cs-fixer.no-header.php",
|
|
|
|
"utils/vendor/bin/php-cs-fixer check --ansi --verbose --diff --config=.php-cs-fixer.tests.php",
|
|
|
|
"utils/vendor/bin/php-cs-fixer check --ansi --verbose --diff"
|
2021-09-16 21:52:39 +09:00
|
|
|
],
|
|
|
|
"cs-fix": [
|
2023-06-22 11:55:10 +08:00
|
|
|
"Composer\\Config::disableProcessTimeout",
|
2024-07-13 00:34:17 +08:00
|
|
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.user-guide.php",
|
|
|
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.no-header.php",
|
|
|
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.tests.php",
|
|
|
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff"
|
2022-08-29 10:32:49 +09:00
|
|
|
],
|
2024-07-13 00:34:17 +08:00
|
|
|
"metrics": "utils/vendor/bin/phpmetrics --config=phpmetrics.json",
|
2024-07-25 23:29:52 +08:00
|
|
|
"phpstan:baseline": "vendor/bin/phpstan analyse --ansi --generate-baseline=phpstan-baseline.php",
|
|
|
|
"phpstan:check": "vendor/bin/phpstan analyse --verbose --ansi",
|
2023-07-21 17:53:34 +08:00
|
|
|
"sa": "@analyze",
|
|
|
|
"style": "@cs-fix",
|
|
|
|
"test": "phpunit"
|
2021-09-16 21:52:39 +09:00
|
|
|
},
|
|
|
|
"scripts-descriptions": {
|
|
|
|
"analyze": "Run static analysis",
|
|
|
|
"cs": "Check the coding style",
|
2023-07-21 17:53:34 +08:00
|
|
|
"cs-fix": "Fix the coding style",
|
2024-02-15 20:11:28 +09:00
|
|
|
"metrics": "Run PhpMetrics",
|
2024-07-25 23:29:52 +08:00
|
|
|
"phpstan:baseline": "Run PHPStan then dump all errors to baseline",
|
|
|
|
"phpstan:check": "Run PHPStan with support for identifiers",
|
2023-07-21 17:53:34 +08:00
|
|
|
"test": "Run unit tests"
|
2021-06-04 22:51:52 +08:00
|
|
|
}
|
2015-11-28 23:21:58 -06:00
|
|
|
}
|