Carpe-Hora / SmsSender

[DEPRECATED] The almost missing SMS sending PHP library.
MIT License
54 stars 19 forks source link

SwisscomProvider based on GsmaOneApiProvider #17

Closed hairmare closed 10 years ago

hairmare commented 10 years ago

Hi Kévin

I did some refactoring...

The abstract GsmaOneApiProvider contains the parts of the implementation that are described in the gsma specs. As far as I can tell this part of the code should work with all "gsma oneapi" providers. The SwisscomProvider configures the right URL and also implements the Swisscom API-Key.

As far as I can tell the unspecified parts of the standards (like auth) are handled different by the various providers.

Even though I'm not 100% sure as to how production ready the Swisscom service is, I believe that this pull request already contains enough substance to be warranted.

Even though this was not done on work time, I should probably disclaim, that I am currently employed by Swisscom.

K-Phoen commented 10 years ago

Merged, thanks!

I took the liberty to update a bit the code, I hope you won't mind :)

hairmare commented 10 years ago

Thanks for the merge. Your changes all make sense to me.