Skip to content

Commit 903fe74

Browse files
Add MongoDB Adapter
1 parent d250362 commit 903fe74

23 files changed

+3190
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.gitattributes export-ignore
2+
.gitignore export-ignore
3+
composer.lock export-ignore
4+
/tests export-ignore
5+
phpunit.xml.dist export-ignore
6+
.php-cs-fixer.dist.php export-ignore
7+
phpstan.neon export-ignore
8+
rector.php export-ignore
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: [alexander-schranz]
2+
custom: ["https://paypal.me/L91"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/vendor/
2+
/composer.phar
3+
/phpunit.xml
4+
/.phpunit.cache
5+
/tests/var
6+
/docker-compose.override.yml
7+
/.php-cs-fixer.php
8+
/.php-cs-fixer.cache
9+
/phpstan.neon
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
$phpCsConfig = require(dirname(__DIR__, 2) . '/.php-cs-fixer.dist.php');
6+
7+
$finder = (new PhpCsFixer\Finder())
8+
->in(__DIR__)
9+
->ignoreVCSIgnored(true);
10+
11+
$phpCsConfig->setFinder($finder);
12+
13+
return $phpCsConfig->setFinder($finder);

packages/seal-mongodb-adapter/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Alexander Schranz
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"name": "cmsig/seal-mongodb-adapter",
3+
"description": "An adapter to support MongoDB in cmsig/seal search abstraction.",
4+
"type": "library",
5+
"license": "MIT",
6+
"keywords": [
7+
"cmsig",
8+
"seal",
9+
"seal-adapter",
10+
"search-client",
11+
"mongodb"
12+
],
13+
"autoload": {
14+
"psr-4": {
15+
"CmsIg\\Seal\\Adapter\\MongoDB\\": "src"
16+
}
17+
},
18+
"autoload-dev": {
19+
"psr-4": {
20+
"CmsIg\\Seal\\Adapter\\MongoDB\\Tests\\": "tests"
21+
}
22+
},
23+
"authors": [
24+
{
25+
"name": "Alexander Schranz",
26+
"email": "[email protected]"
27+
}
28+
],
29+
"require": {
30+
"php": "^8.1",
31+
"cmsig/seal": "^0.7",
32+
"mongodb/mongodb": "^1.20"
33+
},
34+
"require-dev": {
35+
"php-cs-fixer/shim": "^3.51",
36+
"phpstan/extension-installer": "^1.2",
37+
"phpstan/phpstan": "^1.10",
38+
"phpstan/phpstan-phpunit": "^1.3",
39+
"phpunit/phpunit": "^10.3",
40+
"rector/rector": "^1.0"
41+
},
42+
"scripts": {
43+
"test": [
44+
"Composer\\Config::disableProcessTimeout",
45+
"vendor/bin/phpunit"
46+
],
47+
"phpstan": "@php vendor/bin/phpstan analyze",
48+
"lint-rector": "@php vendor/bin/rector process --dry-run",
49+
"lint-php-cs": "@php vendor/bin/php-cs-fixer fix --verbose --diff --dry-run",
50+
"lint": [
51+
"@phpstan",
52+
"@lint-php-cs",
53+
"@lint-rector",
54+
"@lint-composer"
55+
],
56+
"lint-composer": "@composer validate --strict",
57+
"rector": "@php vendor/bin/rector process",
58+
"php-cs-fix": "@php vendor/bin/php-cs-fixer fix",
59+
"fix": [
60+
"@rector",
61+
"@php-cs-fix"
62+
]
63+
},
64+
"repositories": [
65+
{
66+
"type": "path",
67+
"url": "./../*",
68+
"options": {
69+
"symlink": true
70+
}
71+
}
72+
],
73+
"minimum-stability": "dev",
74+
"config": {
75+
"allow-plugins": {
76+
"phpstan/extension-installer": true
77+
}
78+
}
79+
}

0 commit comments

Comments
 (0)