Skip to content

Commit 3d5c1a6

Browse files
Merge pull request #1 from conjoon/dev
chore: add library sources and tests
2 parents 5316c11 + aba274e commit 3d5c1a6

File tree

230 files changed

+34482
-1
lines changed

Some content is hidden

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

230 files changed

+34482
-1
lines changed

.github/workflows/run.tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Unit Tests
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
php-tests:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
env:
14+
COMPOSER_NO_INTERACTION: 1
15+
LC_ALL: en_US.UTF-8
16+
17+
strategy:
18+
matrix:
19+
php: [7.4]
20+
dependency-version: [prefer-stable]
21+
22+
name: P${{ matrix.php }}
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v2
27+
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
coverage: none
33+
tools: composer:v1
34+
35+
- name: Install dependencies
36+
run: composer install --no-progress
37+
38+
- name: Execute Unit Tests
39+
run: ./vendor/bin/phpunit --do-not-cache-result
40+
41+
- name: Check Project Coding Standards
42+
run: vendor/bin/phpcs

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/vendor/
2+
/.phpunit.result.cache
3+
/.ddev/

LICENSE renamed to LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 conjoon
3+
Copyright (c) 2019-2022 Thorsten Suckow-Homberg https://github.com/conjoon/php-lib-conjoon
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# conjoon/php-lib-conjoon ![MIT](https://img.shields.io/github/license/conjoon/php-lib-conjoon) ![Tests](https://github.com/conjoon/php-lib-conjoon/actions/workflows/run.tests.yml/badge.svg)
2+
PHP library for IMAP operations.
3+
4+
## Installation
5+
6+
```shell
7+
$ composer i
8+
```
9+
10+
## Troubleshooting
11+
12+
### Composer 2.0 - Pear/Horde vows
13+
If you experience any troubles running `composer`, please revert to **Composer 1.***. You can safely
14+
go back to **Composer 2** afterwards.
15+
16+
- remove `requires` and `repositories` from the _composer.json_, then run
17+
```shell
18+
composer self-update --1
19+
```
20+
- add the previously removed `requires` and `repositories` back to _composer.json_, then run
21+
```shell
22+
composer update
23+
composer self-update --rollback
24+
```

composer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "conjoon/php-lib-conjoon",
3+
"description": "PHP email library",
4+
"type": "library",
5+
"repositories": [
6+
{
7+
"type": "pear",
8+
"url": "https://pear.horde.org"
9+
}
10+
],
11+
"require": {
12+
"php": ">=7.4",
13+
"ezyang/htmlpurifier": "^4.11",
14+
"laravel/lumen-framework": "5.8.*",
15+
"pear-pear.horde.org/horde_imap_client": "*",
16+
"pear-pear.horde.org/horde_smtp": "*"
17+
},
18+
"require-dev": {
19+
"fakerphp/faker": "^1.9.1",
20+
"mockery/mockery": "^1.3.1",
21+
"phpunit/phpunit": "^9.3",
22+
"squizlabs/php_codesniffer": "*"
23+
},
24+
"license": "MIT",
25+
"autoload": {
26+
"psr-4": {
27+
"Conjoon\\": "src/"
28+
}
29+
},
30+
"autoload-dev": {
31+
"psr-4": {
32+
"Tests\\Conjoon\\": "tests/",
33+
"Tests\\": "tests/"
34+
}
35+
},
36+
"authors": [
37+
{
38+
"name": "Thorsten Suckow-Homberg",
39+
"email": "[email protected]"
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)