mailjet

Integrating Mailjet API v3 wrapper as Codeigniter library

…衆ロ難τιáo~ 提交于 2019-11-26 23:20:33
How can I integrate the Mailjet API PHP wrapper into my Codeigniter installation as a library? Is it as simple as placing the contents of the repository into application/libraries/Mailjet and then creating a Mailjet.php file in application/libraries which initializes Mailjet like shown below? require 'Mailjet/vendor/autoload.php'; use \Mailjet\Resources; $mj = new \Mailjet\Client(getenv('MJ_APIKEY_PUBLIC'), getenv('MJ_APIKEY_PRIVATE')); Please let me know if I'm on the right track. Thanks. Yes, you are on right track. But you don't need to create CI library. Use Mailjet repository library in