Skip to content

hoquochai/E-service

Repository files navigation

E-service

About e-service

E-service can help you send mail to another email quickly and conveniently

Technical stack

  • PHP (Laravel framework)

Project structure

  • Base on laravel framework structure
  • Besides that, I add a service folder(inside app/Http directory), this folder contain code of other service(example: mail, s3...)
  • I use interface to design struct of service, and use abstract class for define the common function
  • With this structure, very easy custom if you want to write yourself service. You can over right the function of abstract class
  • If you want to add the server mail provider, let add config to the mail_customize.php file, and add value of config to .env file

Run project

  • Clone project:
git clone git@github.com:hoquochai/E-service.git
  • Go to project
cd E-service
  • Run composer for install package:
composer install
  • Create .env file and add key to server mail provider
mv .env.example .env

Current, we support the providers: mailtrap, gmail, mailgun, sendgrid, sparkpost

If you want to add a new provider, let add config to the mail_customize.php file

php artisan serve

Note: Current, we are using mailtrap server is default, and the backup server is mailgun server. You can change it in the mail_customize.php file

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published