mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:54:04 +00:00
* Run cache tests on all supported drivers * update ci healthcheck for memcached * remove memcached healthcheck * fix typos in test comments, expand internal.md [ci skip] * add empty line [ci skip] * switch to using $store->setPrefix() * add dynamodb * refactor try-finally to try-catch * remove unnecessary clearResolvedInstances() call * add dual Cache:: and cache() assertions * add apc * Flush APCu cache in test setup * Revert "add dual Cache:: and cache() assertions" This reverts commit a0bab162fbe2dd0d25e7056ceca4fb7ce54efc77. * phpstan fix * Add logic for scoping 'file' disks to FilesystemTenancyBootstrapper * minor changes, add todos * refactor how the session.connection is used in the DB session bootstrapper * add session forgery prevention logic to the db session bootstrapper * only use the fs bootstrapper for file disk in 'cache data is separated' dataset * minor session scoping test changes * Add session scoping logic to FilesystemTenancyBootstrapper, correctly update disk roots even with storage_path_tenancy disabled * Fix code style (php-cs-fixer) * update docblock * make not-null check more explicit * separate bootstrapper tests, fix swapped test names for two tests * refactor cache bootstrapper tests * resolve global cache todo * expand tests: session separation tests, more filesystem separation assertions; change prefix_base-type config keys to templates/formats * add apc session scoping test, various session separation bugfixes * phpstan + minor logic fixes * prefix_format -> prefix * fix database session separation test * revert composer.json changes, update laravel dependencies to expected next release * only run session scoping logic in cache bootstrapper for redis, memcached, dynamodb, apc; update gitattributes * tenancy.central_domains -> tenancy.identification.central_domains * db session separation test: add datasets --------- Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
84 lines
2.4 KiB
JSON
84 lines
2.4 KiB
JSON
{
|
|
"name": "stancl/tenancy",
|
|
"description": "Automatic multi-tenancy for your Laravel application.",
|
|
"keywords": [
|
|
"laravel",
|
|
"multi-tenancy",
|
|
"multi-database",
|
|
"tenancy"
|
|
],
|
|
"license": "MIT",
|
|
"authors": [
|
|
{
|
|
"name": "Samuel Štancl",
|
|
"email": "samuel@archte.ch"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": "^8.2",
|
|
"ext-json": "*",
|
|
"illuminate/support": "^10.1|^11.3",
|
|
"laravel/tinker": "^2.0",
|
|
"facade/ignition-contracts": "^1.0.2",
|
|
"spatie/ignition": "^1.4",
|
|
"ramsey/uuid": "^4.7.3",
|
|
"stancl/jobpipeline": "2.0.0-rc2",
|
|
"stancl/virtualcolumn": "dev-master",
|
|
"spatie/invade": "^1.1",
|
|
"laravel/prompts": "^0.1.9"
|
|
},
|
|
"require-dev": {
|
|
"laravel/framework": "^10.1|^11.3",
|
|
"orchestra/testbench": "^8.0|^9.0",
|
|
"league/flysystem-aws-s3-v3": "^3.12.2",
|
|
"doctrine/dbal": "^3.6.0",
|
|
"spatie/valuestore": "^1.2.5",
|
|
"pestphp/pest": "^2.0",
|
|
"larastan/larastan": "^2.4",
|
|
"spatie/invade": "^1.1",
|
|
"aws/aws-sdk-php-laravel": "~3.0"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Stancl\\Tenancy\\": "src/"
|
|
},
|
|
"files": [
|
|
"src/helpers.php"
|
|
]
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Stancl\\Tenancy\\Tests\\": "tests/"
|
|
}
|
|
},
|
|
"extra": {
|
|
"laravel": {
|
|
"providers": [
|
|
"Stancl\\Tenancy\\TenancyServiceProvider"
|
|
],
|
|
"aliases": {
|
|
"Tenancy": "Stancl\\Tenancy\\Facades\\Tenancy",
|
|
"GlobalCache": "Stancl\\Tenancy\\Facades\\GlobalCache"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"docker-up": "docker-compose up -d",
|
|
"docker-down": "docker-compose down",
|
|
"docker-rebuild": "PHP_VERSION=8.3 docker-compose up -d --no-deps --build",
|
|
"docker-m1": "ln -s docker-compose-m1.override.yml docker-compose.override.yml",
|
|
"coverage": "open coverage/phpunit/html/index.html",
|
|
"phpstan": "vendor/bin/phpstan",
|
|
"phpstan-pro": "vendor/bin/phpstan --pro",
|
|
"cs": "php-cs-fixer fix --config=.php-cs-fixer.php",
|
|
"test": "./test --no-coverage",
|
|
"test-full": "./test"
|
|
},
|
|
"minimum-stability": "dev",
|
|
"prefer-stable": true,
|
|
"config": {
|
|
"allow-plugins": {
|
|
"pestphp/pest-plugin": true
|
|
}
|
|
}
|
|
}
|