werx / email
Composer-friendly wrapper for CI Email.
Installs: 4 008
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 4
Open Issues: 0
Requires
- php: >= 5.4
Requires (Dev)
- guzzlehttp/guzzle: 4.2.*@dev
- phpunit/phpunit: 3.7.*
README
Use CodeIgniter's email library outside CodeIgniter.
Full Documentation at http://ellislab.com/codeigniter/user-guide/libraries/email.html
Usage
$email = new \werx\Email\Message(); $email->clear(); $email->from('me@example.com', 'My Name'); $email->to('you@example.com'); $email->subject('your subject line'); $email->attach($attachment, 'attachment', 'filename.html', 'text/html'); $email->message('Message body goes here.'); $email->send();
Installation
This package is installable and autoloadable via Composer as werx/email. If you aren't familiar with the Composer Dependency Manager for PHP, you should read this first.
$ composer require werx/email --prefer-dist
Testing
There are unit tests available for this package. To run them, you must have MailCatcher installed and running.
$ vendor/bin/phpunit