Giter Site home page Giter Site logo

Comments (3)

travelton avatar travelton commented on August 22, 2024

Hi Chris -

At a high level, our code bases accomplish the same goals. However, at a lower level, the implementations are quite different.

There may be pieces of code or design patterns that could be ported to Mailgun's code base. I don't see any documentation for usage, so I'm not sure about the design patterns. I do see you're relying solely on Curl, where Mailgun relies on Guzzle, an library around Curl. We plan to eliminate the Guzzle requirement in version 2.

Could you point me to code that you feel could enhance the library. Or if you're comfortable submitting a pull request, that would be great as well.

Thanks,
Travis

from mailgun-php.

chriswoodford avatar chriswoodford commented on August 22, 2024

Hey Travis,

Initially I just wanted to touch base and see if it was something that you'd even be interested in, before doing any work for a pull request.

As far as design patterns, I'm using the Gateway pattern (PoEAA) as a higher level wrapper for sending email messages. If you're interested in replacing Guzzle for Curl, my library relies on an HttpClient interface, which could be something to help ease that transition (i.e. use a Guzzle Adapter that conforms to the HttpClient interface and then update the mailgun code to rely on the HttpClient interface). Then flipping to a straight Curl Adapter would be pretty easy. My code is currently using an Adapter for the Buzz library which is a lightweight wrapper around Curl (https://github.com/kriswallsmith/Buzz)

If you're interested, I could definitely sketch out a pull request for you to review. Let me know what you think

thanks,
Chris

from mailgun-php.

Nyholm avatar Nyholm commented on August 22, 2024

Im closing this issue because of inactivity and because it has been a lots of rewrites of the design in the last year.
Feel free to open a new issue with some comments. I would be happy to discuss the current state.

from mailgun-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.