Skip to content

Commit 84b759f

Browse files
committed
Initial commit
0 parents  commit 84b759f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4376
-0
lines changed

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
jobs:
9+
phpunit:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
php-version: ['8.1', '8.3', '8.4']
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php-version }}
23+
tools: composer
24+
25+
- name: Install dependencies
26+
run: composer install --no-progress --no-suggest --prefer-dist
27+
28+
- name: Run PHPUnit
29+
run: vendor/bin/phpunit tests

.gitignore

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/phpunit,phpcodesniffer,visualstudiocode,macos
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=phpunit,phpcodesniffer,visualstudiocode,macos
3+
4+
### macOS ###
5+
# General
6+
.DS_Store
7+
.AppleDouble
8+
.LSOverride
9+
10+
# Icon must end with two \r
11+
Icon
12+
13+
14+
# Thumbnails
15+
._*
16+
17+
# Files that might appear in the root of a volume
18+
.DocumentRevisions-V100
19+
.fseventsd
20+
.Spotlight-V100
21+
.TemporaryItems
22+
.Trashes
23+
.VolumeIcon.icns
24+
.com.apple.timemachine.donotpresent
25+
26+
# Directories potentially created on remote AFP share
27+
.AppleDB
28+
.AppleDesktop
29+
Network Trash Folder
30+
Temporary Items
31+
.apdisk
32+
33+
### macOS Patch ###
34+
# iCloud generated files
35+
*.icloud
36+
37+
### PHPCodeSniffer ###
38+
# CodeSniffer
39+
phpcs.xml
40+
41+
/vendor/*
42+
/wpcs/*
43+
44+
### PHPUnit ###
45+
# Covers PHPUnit
46+
# Reference: https://phpunit.de/
47+
48+
# Generated files
49+
.phpunit.result.cache
50+
.phpunit.cache
51+
52+
# PHPUnit
53+
/app/phpunit.xml
54+
/phpunit.xml
55+
56+
# Build data
57+
/build/
58+
59+
### VisualStudioCode ###
60+
.vscode/*
61+
!.vscode/settings.json
62+
!.vscode/tasks.json
63+
!.vscode/launch.json
64+
!.vscode/extensions.json
65+
!.vscode/*.code-snippets
66+
67+
# Local History for Visual Studio Code
68+
.history/
69+
70+
# Built Visual Studio Code Extensions
71+
*.vsix
72+
73+
### VisualStudioCode Patch ###
74+
# Ignore all local history of files
75+
.history
76+
.ionide
77+
78+
# End of https://www.toptal.com/developers/gitignore/api/phpunit,phpcodesniffer,visualstudiocode,macos
79+
80+
.idea

LICENSE.md

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) 2024 Bump Team Inc.
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.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
./vendor/bin/phpunit ./tests
2+
3+
./vendor/bin/phpstan analyze src

composer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "temp-mail-io/temp-mail-php",
3+
"type": "library",
4+
"license": "MIT",
5+
"autoload": {
6+
"psr-4": {
7+
"TempMailIo\\TempMailPhp\\": "src/",
8+
"Tests\\": "tests/"
9+
}
10+
},
11+
"require": {
12+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
13+
"guzzlehttp/guzzle": "^7.9",
14+
"phpdocumentor/reflection-docblock": "^5.6"
15+
},
16+
"require-dev": {
17+
"phpstan/phpstan": "^2.1",
18+
"phpstan/phpstan-strict-rules": "^2.0",
19+
"phpunit/phpunit": "^11.5",
20+
"phpstan/extension-installer": "^1.4"
21+
},
22+
"config": {
23+
"allow-plugins": {
24+
"phpstan/extension-installer": true
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)