Commit Graph

652 Commits

Author SHA1 Message Date
David Garcia
de2902aac4 Review assets 2019-01-10 22:15:40 +00:00
David Garcia
88a9e4b1ff Relocate files 2019-01-10 22:15:40 +00:00
David Garcia
c40fe862cc Remove removed file
It was restored as part of a rebase.
Removing it again not to cause a namespace\class conflict.
2019-01-10 22:15:40 +00:00
David Garcia
f3566026b6 Remove egulias/email-validator and dependencies 2019-01-10 22:15:40 +00:00
David Garcia
5927cb162e Add method to get access to Email Validation 2019-01-10 22:15:40 +00:00
David Garcia
961ae177fa Add new lines to improve readability 2019-01-10 22:15:40 +00:00
David Garcia
2c98efc519 Re-order API methods by name
Easier to read
2019-01-10 22:15:40 +00:00
David Garcia
9f61a1e6dc Missed annotation 2019-01-10 22:15:40 +00:00
David Garcia
f775795b85 Test EmailValidation Model 2019-01-10 22:15:40 +00:00
David Garcia
39feab32e5 Remove unused use statement 2019-01-10 22:15:40 +00:00
David Garcia
34b33a9127 Add Header comment 2019-01-10 22:15:40 +00:00
David Garcia
df7043343e Test Parse model for Parseable and Unparseable data 2019-01-10 22:15:40 +00:00
David Garcia
6fc5b1e938 Test Parts model 2019-01-10 22:15:40 +00:00
David Garcia
8cb9a0e48a Provide test to parse a valid email address 2019-01-10 22:15:40 +00:00
David Garcia
2c37651097 Remove non-required tests
Egulias/EmailValidator validates these cases,
is useless to test it
2019-01-10 22:15:40 +00:00
David Garcia
18d948be0f Provide test to validate a valid email address 2019-01-10 22:15:40 +00:00
David Garcia
3f097bb178 Add EmailValidationTest 2019-01-10 22:15:40 +00:00
David Garcia
f12480e313 Remove public endpoints & implement private endpoints 2019-01-10 22:15:40 +00:00
David Garcia
e90f829eb4 Add ParsePesponse 2019-01-10 22:15:40 +00:00
David Garcia
0039e26be2 Add model to map the Parse response 2019-01-10 22:15:40 +00:00
David Garcia
1fb0d0bbc5 Email Validation does not return a key name, just the resource itself 2019-01-10 22:15:40 +00:00
David Garcia
3cf9aca200 StyleCI fixes 2019-01-10 22:15:40 +00:00
David Garcia
d15dbc4f69 Extract the email address from the string
me@davidgarcia.cat => me@davidgarcia.cat
David Garcia <me@davidgarcia.cat> => me@davidgarcia.cat
David Garcia me@davidgarcia.cat => me@davidgarcia.cat
David me@davidgarcia.cat Garcia => me@davidgarcia.cat
2019-01-10 22:15:40 +00:00
David Garcia
756b63ef54 Provide the EmailValidator entry point to send the API requests
So far we just validate the provided arguments.
Waiting for @Nyholm confirmation about the best way to proceed.
Please refer to
https://github.com/mailgun/mailgun-php/issues/191#issuecomment-350133021
2019-01-10 22:15:40 +00:00
David Garcia
682d7919ad Update error messages and provide @author annotation
http://docs.phpdoc.org/references/phpdoc/tags/author.html
2019-01-10 22:15:40 +00:00
David Garcia
e94334b4f1 Provide new Assert to validate an email address 2019-01-10 22:15:40 +00:00
David Garcia
77b50d3d17 Provide Validate Response 2019-01-10 22:15:40 +00:00
David Garcia
96b2242d5b Provide model to map the Email Validation 2019-01-10 22:15:40 +00:00
David Garcia
3079b8a75c Provide model to map the Email Validation Parts 2019-01-10 22:15:40 +00:00
David Garcia
f7b9fe7f79 composer require egulias/email-validator 2019-01-10 22:15:40 +00:00
Tobias Nyholm
a1ca1a3b2f
Added PHPStan test (#537)
* Added PHPStan test

This will fix #536

* Somce code style updates
2019-01-10 20:29:58 +01:00
Tobias Nyholm
3b3e977995
Added changelog for 3.0.0 (#525) 2019-01-10 17:33:11 +01:00
Nyholm
750a7270e3 cs 2019-01-10 08:25:29 +00:00
Nyholm
34432e0517 Minor bugfixes detected with PHPStan 2019-01-10 08:25:29 +00:00
Nyholm
dd7c1d2361 Added new CS rules
Declare strict and no superfluous phpdoc
2019-01-10 08:25:29 +00:00
Nyholm
6dff177387 typo 2019-01-09 20:51:05 +00:00
Nyholm
f915b103a3 cs 2019-01-09 20:51:05 +00:00
Nyholm
b619b66732 Adding tag aggregates 2019-01-09 20:51:05 +00:00
Tobias Nyholm
fb9892f1f8
Added PHPStan action (#530) 2019-01-09 20:36:21 +01:00
Tobias Nyholm
b725ab728e
Adding PHP7 type annotations (#523)
* Adding PHP7 type annotations

* cs

* Moved HttpClientConfigurator and RequestBuilder to Mailgun\HttpClient namespace

* fixing tests

* Rebased and fixed tests

* minors

* cs

* Bugfixes

* Typo
2019-01-09 20:18:58 +01:00
Tobias Nyholm
4a903b2ec0
Added test for BC breaks (#531)
* Added test for BC breaks

* typo

* Disable the BC test

* Update .travis.yml

* Try to disable test better
2019-01-09 20:17:37 +01:00
Tobias Nyholm
6e65a0613e Updated links 2019-01-07 18:38:45 +00:00
Tobias Nyholm
6d5d396f79 Removed some badges 2019-01-07 08:19:41 +00:00
Tobias Nyholm
538ea52b37
Removed "final" for classes with known sub-classes (#520) 2019-01-07 06:15:44 +01:00
Tobias Nyholm
519fd7a674
Added proper PHP CS fixer rules (#527)
* Added proper PHP CS fixer rules

* Adding Symfony cs rules

* Updated CS on tests
2019-01-07 06:12:53 +01:00
Tobias Nyholm
6aecbd5be4
Updated composer scripts to run tests (#519) 2019-01-06 10:37:07 +01:00
Tobias Nyholm
e341a44a5c
Removed deprecated code (#521)
* Removed deprecated code

* cs

* Removed more deprecated code

* minor
2019-01-06 10:07:06 +01:00
Matěj Humpál
12fee2f714 MessageBuilder setters entirely fluent (#507) 2019-01-06 10:06:52 +01:00
Tobias Nyholm
90eb1d6d32
Drop PHP5 (#518)
* drop PHP5

* Added branch alias
2019-01-06 09:01:37 +01:00
Tobias Nyholm
1bcce53387
Use PSR-4 (#517) 2019-01-06 08:34:49 +01:00