-
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 c9a1a2f
Showing
238 changed files
with
5,628 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,2 @@ | ||
/vendor/ | ||
.idea |
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,30 @@ | ||
# Email Forward Parser | ||
|
||
This is a PHP port of [email-forward-parser](https://github.com/crisp-oss/email-forward-parser) by [Crisp OSS](https://github.com/crisp-oss). | ||
|
||
All credit goes to them. | ||
|
||
## Installation | ||
|
||
```bash | ||
composer require stechstudio/email-forward-parser | ||
``` | ||
|
||
## Usage | ||
|
||
```php | ||
use STS\EmailForward\Parser; | ||
|
||
$parser = new Parser(); | ||
|
||
$result = $parser->read($emailBody, $emailSubject); | ||
|
||
echo $result['forwarded']; // true | ||
echo $result['email']['from']['address']; // [email protected] | ||
``` | ||
|
||
See https://github.com/crisp-oss/email-forward-parser/blob/master/README.md for more usage examples. | ||
|
||
## License | ||
|
||
MIT |
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,24 @@ | ||
{ | ||
"name": "stechstudio/email-forward-parser", | ||
"description": "PHP port of https://github.com/crisp-oss/email-forward-parser", | ||
"type": "library", | ||
"require": { | ||
"php": "^8.3" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^11.5", | ||
"symfony/var-dumper": "^7.2" | ||
}, | ||
"license": "MIT", | ||
"autoload": { | ||
"psr-4": { | ||
"STS\\EmailForward\\": "src/" | ||
} | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Joseph Szobody", | ||
"email": "[email protected]" | ||
} | ||
] | ||
} |
Oops, something went wrong.