Skip to content

Commit f7a72f7

Browse files
committed
Merge branch 'initial-setup' into 'master'
Initial setup See merge request it/soldel-packages/sns-handler!5
2 parents 02b6053 + 1da365e commit f7a72f7

27 files changed

+8814
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/vendor/
2+
/.phive/
3+
/tools/
4+
5+
.idea
6+
.php_cs.cache
7+
.phpunit.result.cache

.gitlab-ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
include:
2+
# Include the templates for php jobs
3+
- 'https://git.itapps.miamioh.edu/operations/gitlab-ci-includes/raw/2.0/php/php-job-templates.yaml'
4+
# Set up the standard Laravel pipeline
5+
- 'https://git.itapps.miamioh.edu/operations/gitlab-ci-includes/raw/2.0/php/laravel-pipeline.yaml'
6+
# Include unit testing, analysis and feature testing jobs
7+
- 'https://git.itapps.miamioh.edu/operations/gitlab-ci-includes/raw/2.0/php/php-unit.yaml'
8+
- 'https://git.itapps.miamioh.edu/operations/gitlab-ci-includes/raw/2.0/php/php-analysis.yaml'
9+
- 'https://git.itapps.miamioh.edu/operations/gitlab-ci-includes/raw/2.0/php/php-feature.yaml'
10+
# Run the php code quality assessment (coverage and CRAP score)
11+
- 'https://git.itapps.miamioh.edu/operations/gitlab-ci-includes/raw/2.0/php/php-quality.yaml'
12+
13+
variables:
14+
MINIMUM_COVERAGE_PERCENT: 90
15+
MAXIMUM_CRAP_SCORE: 15
16+
APP_SOURCE_PATH: src
17+

.php_cs.dist

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->exclude('somedir')
5+
->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
6+
->in(__DIR__ . DIRECTORY_SEPARATOR . 'src')
7+
->in(__DIR__ . DIRECTORY_SEPARATOR . 'tests')
8+
;
9+
10+
return PhpCsFixer\Config::create()
11+
->setRules([
12+
'@PSR2' => true,
13+
'array_syntax' => ['syntax' => 'short'],
14+
])
15+
->setFinder($finder)
16+
;

composer.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"name": "miamioh/sns-handler",
3+
"description": "Handle SNS subscription requests and messages",
4+
"type": "library",
5+
"license": "MIT",
6+
"require": {
7+
"php": ">=7.3",
8+
"ext-json": "*",
9+
"aws/aws-php-sns-message-validator": "^1.6"
10+
11+
},
12+
"require-dev" : {
13+
"phpunit/phpunit": "^9.5",
14+
"roave/security-advisories": "dev-latest",
15+
"guzzlehttp/guzzle": "^7.2",
16+
"orchestra/testbench": "^6.0"
17+
},
18+
"autoload-dev": {
19+
"psr-4": {
20+
"Tests\\MiamiOH\\SnsHandler\\": "tests/"
21+
22+
}
23+
},
24+
"keywords": [
25+
"laravel",
26+
"sns",
27+
"messages"
28+
],
29+
"autoload": {
30+
"psr-4": {
31+
"MiamiOH\\SnsHandler\\" : "src/"
32+
}
33+
},
34+
"minimum-stability": "dev",
35+
"prefer-stable": true,
36+
"extra": {
37+
"laravel" : {
38+
"providers": [
39+
"MiamiOH\\SnsHandler\\ServiceProvider"
40+
]
41+
}
42+
},
43+
"scripts": {
44+
"phpcs-7.3": [
45+
"phpcs -p src --standard=PHPCompatibility --runtime-set testVersion 7.3"
46+
],
47+
"phpcs-7.4": [
48+
"phpcs -p src --standard=PHPCompatibility --runtime-set testVersion 7.4"
49+
],
50+
"cs-fix": [
51+
"php-cs-fixer fix --diff"
52+
],
53+
"phpstan": [
54+
"phpstan analyze"
55+
]
56+
}
57+
}

0 commit comments

Comments
 (0)