-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 89d2c5c
Showing
17 changed files
with
311 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = false | ||
max_line_length = 80 | ||
tab_width = 4 | ||
|
||
[{*.json}] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "composer" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: (📡) Create GitHub Release Draft | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create-github-release: | ||
uses: sitepark/github-project-workflow/.github/workflows/create-github-release-draft.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: (▶) Create Release | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
release: | ||
uses: sitepark/github-project-workflow/.github/workflows/composer-release.yml@main | ||
with: | ||
botName: "sitepark-bot" | ||
botEmail: "opensource@sitepark.com" | ||
secrets: | ||
# Sitepark-BOT personal access token | ||
BOT_PAT: ${{ secrets.BOT_PAT }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: (📡) Verify | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'dependabot/**' | ||
pull_request: | ||
branches-ignore: | ||
- 'main' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
verify: | ||
uses: sitepark-com/github-project-workflow/.github/workflows/composer-verify.yml@release/1.x | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/vendor | ||
/vendor.orig | ||
.idea | ||
/var/cache/* | ||
!var/cache/.gitkeep | ||
/var/log/* | ||
!var/log/.gitkeep | ||
/tools | ||
.phpactor.json | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phive xmlns="https://phar.io/phive"> | ||
<phar name="phpstan" version="^1.10.22" location="./tools/phpstan" copy="false" installed="1.10.22"/> | ||
<phar name="composer-normalize" version="^2.32.0" location="./tools/composer-normalize" copy="false" installed="2.32.0"/> | ||
<phar name="phpunit" version="^10.4.0" location="./tools/phpunit.phar" copy="true" installed="10.4.1"/> | ||
<phar name="overtrue/phplint" version="^9.0.4" location="./tools/phplint" copy="false" installed="9.0.4"/> | ||
</phive> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
path: ./src | ||
jobs: 10 | ||
cache: var/cache/phplint.cache | ||
extensions: | ||
- php | ||
warning: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Sitepark GmbH | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[![codecov](https://codecov.io/gh/sitepark/atoolo-resource/graph/badge.svg?token=QwvDRxKEa2)](https://codecov.io/gh/sitepark/atoolo-resource) | ||
|
||
# Atoolo resource | ||
|
||
In the Atoolo context, resources from IES (Sitepark's content management system) are aggregated data that can be handled through this library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
"name": "atoolo/search", | ||
"description": "Indexing und searching", | ||
"license": "MIT", | ||
"type": "library", | ||
"authors": [{ | ||
"name": "veltrup", | ||
"email": "veltrup@sitepark.com" | ||
}], | ||
"autoload": { | ||
"psr-4": { | ||
"Atoolo\\Search\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Atoolo\\Search\\Test\\": "test" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"require": { | ||
"php": ">=8.1 <8.3.0", | ||
"atoolo/resource": "dev-feature/hierarchy-loader", | ||
"solarium/solarium": "^6.3", | ||
"symfony/config": "^6.3", | ||
"symfony/console": "^6.3", | ||
"symfony/dependency-injection": "^6.3", | ||
"symfony/event-dispatcher": "^6.3", | ||
"symfony/finder": "^6.3", | ||
"symfony/yaml": "^6.3" | ||
}, | ||
"require-dev": { | ||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0", | ||
"infection/infection": "^0.27.6", | ||
"phpcompatibility/php-compatibility": "^9.3", | ||
"phpunit/phpunit": "^10.4", | ||
"roave/security-advisories": "dev-latest", | ||
"squizlabs/php_codesniffer": "^3.7" | ||
}, | ||
"scripts": { | ||
|
||
"post-install-cmd": "phive --no-progress install --force-accept-unsigned --trust-gpg-keys C00543248C87FB13,4AA394086372C20A,CF1A108D0E7AE720,51C67305FFC2E5C0", | ||
"analyse": [ | ||
"@analyse:phplint", | ||
"@analyse:phpstan", | ||
"@analyse:phpcs", | ||
"@analyse:compatibilitycheck" | ||
], | ||
"analyse:compatibilitycheck": "./vendor/bin/phpcs --standard=./phpcs.compatibilitycheck.xml", | ||
"analyse:phpcs": "./vendor/bin/phpcs", | ||
"analyse:phplint": "./tools/phplint", | ||
"analyse:phpstan": "./tools/phpstan analyse", | ||
"cs-fix": [ | ||
"@cs-fix:phpcbf" | ||
], | ||
"cs-fix:phpcbf": "./vendor/bin/phpcbf", | ||
"report": [ | ||
"@report:phpcs", | ||
"@report:phpstan" | ||
], | ||
"report:phpcs": "./vendor/bin/phpcs || exit 0", | ||
"report:phpstan": "./tools/phpstan analyse --no-progress --no-ansi --no-interaction --error-format=checkstyle > ./var/log/phpstan-report.xml || exit 0", | ||
"test": [ | ||
"@test:phpunit" | ||
], | ||
"test:phpunit": "./tools/phpunit.phar -c phpunit.xml --coverage-text", | ||
"test:infection": "vendor/bin/infection --threads=8 --no-progress --only-covered -s || exit 0" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true, | ||
"infection/extension-installer": true | ||
}, | ||
"optimize-autoloader": true, | ||
"preferred-install": { | ||
"*": "dist" | ||
}, | ||
"sort-packages": true | ||
}, | ||
"extra": { | ||
"composer-link": { | ||
"atoolo/resource": { | ||
"dev": false, | ||
"version": "dev-feature/hierarchy-loader" | ||
} | ||
} | ||
}, | ||
"repositories": { | ||
"atoolo/resource": { | ||
"type": "path", | ||
"url": "/home/veltrup/.cache/composer/link/atoolo/resource" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$schema": "vendor/infection/infection/resources/schema.json", | ||
"source": { | ||
"directories": [ | ||
"src" | ||
] | ||
}, | ||
"logs": { | ||
"text": "var/log/infection.log" | ||
}, | ||
"tmpDir": "var/cache", | ||
"phpUnit": { | ||
"customPath": "./tools/phpunit.phar" | ||
}, | ||
"mutators": { | ||
"@default": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> | ||
|
||
<config name="testVersion" value="8.1-8.2"/> | ||
|
||
<arg name="basepath" value="."/> | ||
<arg name="cache" value="var/cache/.phpcs-compability-cache"/> | ||
<arg name="colors"/> | ||
<arg name="extensions" value="php"/> | ||
<arg name="tab-width" value="4" /> | ||
<arg name="parallel" value="6"/> | ||
<arg name="warning-severity" value="0"/> | ||
|
||
<file>src/</file> | ||
|
||
<rule ref="PHPCompatibility"/> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> | ||
|
||
<arg name="basepath" value="."/> | ||
<arg name="cache" value="var/cache/phpcs-cache"/> | ||
<arg name="colors"/> | ||
<arg name="extensions" value="php"/> | ||
<arg name="tab-width" value="4"/> | ||
<arg name="parallel" value="6"/> | ||
<arg name="report-checkstyle" value="var/log/checkstyle-result.xml"/> | ||
<arg name="report-full"/> | ||
|
||
<file>src/</file> | ||
<file>test/</file> | ||
|
||
<rule ref="PSR12"/> | ||
<rule ref="Generic.Files.LineLength"> | ||
<properties> | ||
<property name="lineLimit" value="80"/> | ||
<property name="absoluteLineLimit" value="80"/> | ||
</properties> | ||
</rule> | ||
</ruleset> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
parameters: | ||
level: 9 | ||
tmpDir: var/cache/phpstan | ||
paths: | ||
- src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" | ||
colors="true" | ||
bootstrap="vendor/autoload.php" | ||
executionOrder="random" | ||
cacheResultFile="var/cache/.phpunit.result.cache" | ||
cacheDirectory="var/cache/.phpunit.cache"> | ||
|
||
<coverage> | ||
<report> | ||
<clover outputFile="var/log/clover/clover.xml"/> | ||
<html outputDirectory="var/log/clover"/> | ||
</report> | ||
</coverage> | ||
|
||
<testsuite name="atoolo-resource"> | ||
<directory>test/</directory> | ||
</testsuite> | ||
|
||
<php> | ||
<server name="APP_ENV" value="test"/> | ||
<server name="TEST_BASEDIR" value="./"/> | ||
<ini name="memory_limit" value="512M"/> | ||
</php> | ||
|
||
<logging> | ||
<junit outputFile="var/log/surefire-reports/surefire-report.xml"/> | ||
</logging> | ||
|
||
<source> | ||
<include> | ||
<directory>src/</directory> | ||
</include> | ||
</source> | ||
</phpunit> |