Commit Graph

51 Commits

Author SHA1 Message Date
Pawel Wasiluk
5762ae9309 Composer normalized 2022-01-31 10:52:54 +01:00
Nyholm
8cc34a1f74 cs 2021-08-21 00:40:34 +01:00
Nyholm
128bcc680c Update dev dependencies 2021-08-21 00:40:34 +01:00
Tobias Nyholm
12ed8aae43
Updating workflows and add psalm (#741)
* Updating workflows and add psalm

* Normalize composer

* Fixed CS
2021-01-30 12:43:12 +01:00
David Garcia
66fd858a02
PHP 8.x support (#727)
* Set dependencies for 7.3 and 8.x

* Set GitHub Actions for PHP 7.3, 7.4 and 8.0

* Set Ubuntu version that supports PHP from 7.1 to 7.4

According to warnings raised by GitHub Actions, the alias for the latest
Ubuntu version will upgrade soon to the newer 20.04 LTS instead of 18.04.

Aiming to ensure the compatibility with previous PHP versions, it's safer
to force the Ubuntu 18.04 that has the previous PHP version as built-in
versions in the OS

https://github.com/marketplace/actions/setup-php-action#github-hosted-runners

* Fix dependencies for PHP ^7.3 and ^8.0 support

* Run test suite with PHP versions from 7.3 to 8.1

* Broken Prophecy dependency for PHPUnit on PHP 8.1

This broken dependency doesn't allow us to run PHPUnit tests and ensure it works. Keeping the ^8.0 version should allow installations for non-maintainers on newer versions too.

https://packagist.org/packages/phpspec/prophecy#1.12.2

requires
- php: ^7.2 || ~8.0, <8.1
- ...

* Use the latest Ubuntu version instead of a specific version

* Prepare Changelog for PHP 8.0
2021-01-30 07:39:30 +01:00
David Garcia
27d579fdf1 Require webmozart/assert ^1.6 to ensure compatibility with Assert::isList() 2020-10-08 13:20:23 +01:00
Bob Olde Hampsink
e707e112f5 Allow php-http/guzzle6-adapter ^2.0
It still uses the same API, just updated for PHP 7
2020-08-20 20:11:47 +01:00
Tobias Nyholm
6954b4dd2a
Use PSR-18 (#522)
* Use PSR-18

* minor fixes

* phpstan fixes

* cs
2019-02-02 08:30:04 +01:00
David Garcia
f3566026b6 Remove egulias/email-validator and dependencies 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
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
6aecbd5be4
Updated composer scripts to run tests (#519) 2019-01-06 10:37:07 +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
Tobias Nyholm
1623c7e48a
Update composer.json (#428) 2019-01-06 08:14:24 +01:00
Tobias Nyholm
7b24312f6c
Added support for HTTPlug 2.0 (#510) 2019-01-05 09:10:36 +01:00
Tobias Nyholm
eb07576e6a
Ported MessageBuilder and BatchMessage (#472)
* Ported MessageBuilder and BatchMessage

* Added test for MessageBuilder

* Added test for BatchMessageTest

* cs

* cs

* Removed PHP7 code
2018-08-04 21:30:15 +02:00
David Garcia
48e5b8956b Suggest packages used on Dev (#440) 2018-08-04 15:18:41 +02:00
Tobias Nyholm
5976bcbb4e Use stable version of multipart stream builder (#356) 2017-06-03 10:21:05 +02:00
Tobias Nyholm
27b5c830ba Use latest version of guzzle/psr7 (#339) 2017-04-08 11:36:06 +02:00
z38
0bc0a3b1a5 Fix disordered POST parameters (#279) 2017-04-07 18:24:37 -05:00
Tobias Nyholm
2d83ab3bf8 Show that we allow MultipartStreamBuilder 0.2 (#291) 2017-02-20 13:59:56 -06:00
Tobias Nyholm
751770d32c Disable integration tests until they are improved (#242) 2016-12-06 11:02:32 -06:00
Tobias Nyholm
8c2ffbfd3f Improve Travis build (#231)
* Improve Travis build

* Added more shields

* bugfiz

* minor

* bash fix

* Update min version

* Remove test code

* Refactor
2016-11-24 09:30:41 +01:00
Tobias Nyholm
8668b4c222 Updated to use Assert 1.2 (#224) 2016-11-23 23:01:26 +01:00
Tobias Nyholm
c875890720 SImplefied travis config and added composer scripts (#213)
* SImplefied travis config and added composer scripts

* Use 2 space indentation
2016-11-11 14:22:46 -06:00
Sean Johnson
58430e4537 Domains API, #187 (#198) 2016-10-27 08:34:27 +02:00
Tobias Nyholm
738e6e32e2 POC - Better api (#192)
* Added base for the new API

* code style

* Added response classes

* Added support for serializer

* The abstract API should not know of Mailgun

* Minor

* minor

* Using a client configrator

* code style

* Put HTTPClient in the configurator

* Do not use the api() function

* Use stable version of Assert

* style

* Fixed tests

* make the httpClient private

* Renamed ResponseSerializer to ResponseDeserializer

* Disabled tests that are testing error messages with Assert

* style fixes

* Refactoring fix
2016-10-24 12:01:32 -05:00
Tobias Nyholm
cd001cf5b3 Added tests and use PSR4 2016-08-10 17:06:27 +02:00
Tobias Nyholm
313666214a Require php-http/message 2016-07-21 10:50:33 +02:00
Tobias Nyholm
2cc6ee8c77 Completly removed depenency on Guzzle and made discovery easier 2016-07-21 00:05:23 +02:00
Jesse Spears
976a76a3b5 Get rid of nonexistent package
composer.json required a package that doesn't exist.
2016-04-01 17:58:54 -07:00
Tobias Nyholm
89869402e0 removed unsupported PHP versions 2016-03-05 11:14:34 +01:00
Tobias Nyholm
b961cfb4eb Updated to latest version of Httplug and made auto discovery optional 2016-02-26 12:04:54 +01:00
Tobias Nyholm
ac0b85b9e2 Updated to httplug beta 2015-12-21 00:24:34 +01:00
Tobias Nyholm
7f3d637756 Updated to reflect changes in PHP-HTTP 2015-11-18 15:46:53 +01:00
Tobias Nyholm
a0edd0eb30 Updates to the php-http library 2015-10-30 14:36:08 +01:00
Tobias Nyholm
78f252761e Updated the php-http lib 2015-10-30 14:28:43 +01:00
Tobias Nyholm
61d03262a9 Removed dependency on Happyr/AutoDiscovery 2015-10-12 19:23:58 +02:00
Tobias Nyholm
5fcbb3d37c Use guzzle5 in development 2015-10-03 22:59:31 +02:00
Tobias Nyholm
b080b181ac Make sure we do not depend on any http transport library 2015-10-03 22:10:48 +02:00
Anders Munk
ffab6c9e39 Bumped to guzzlehttp/guzzle:~6.0
PHPUnit OK (49 tests, 75 assertions)
2015-07-23 13:27:32 +02:00
Tobias Nyholm
3bb69d8cbe * Updated composer.json to guzzle v5
* Don't allow HHVM to fail
* Updated RestClient to Guzzle5
* Removed php5.3 from travis.
* Bugfix and removed debug code
2015-05-05 18:19:10 -07:00
Tarjei Huse
f47892e58c Depend on guzzle >=3.8
As guzzle 3.9.* is out, mailgun should support it as well - else it
creates conflicts on larger projects.
2014-05-22 07:03:36 +02:00
Travis Swientek
af53fd50ff Ability to rename attachments and inline images. 2014-01-13 22:53:34 +00:00
Travis Swientek
116fb33255 Relaxed Guzzle requirement, fixed reply-to bug, updated point release version. Fixes #7 Fixes #9 2013-09-12 14:19:23 -07:00
Travis Swientek
7ef8533aab Fixed GET Requests 2013-08-02 12:43:50 -07:00
Travis Swientek
5befeb0f66 End of day commit 2013-07-23 17:34:50 -07:00
Travis Swientek
c09e6fd579 Removed some stuff 2013-07-22 22:11:01 -07:00
Travis Swientek
a2f005a8f2 Composer refactor 2013-07-22 20:55:41 -07:00