Download the PHP package divya2407sharma/pepipost without Composer

On this page you can find all versions of the php package divya2407sharma/pepipost. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pepipost

This project is a copy of pepipost/pepipost-laravel-driver, with some customizations to make it compatible with Laravel 5.2

Laravel Driver for Pepipost

A Mail Driver with support for Pepipost Send Email Web API, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods.

To use this package required your Pepipost Api Key. Please make it Here.

We are trying to make our libraries Community Driven- which means we need your help in building the right things in proper order we would request you to help us by sharing comments, creating new issues or pull requests.

We welcome any sort of contribution to this library.

The latest 1.0.0 version of this library provides is fully compatible with the latest Pepipost v2.0 API.

For any update of this library check Releases.

Table of Content

Installation

Prerequisites

PHP >= 5.5.9

Laravel 5.2

guzzlehttp/guzzle ~5.3|~6.0

A free account on Pepipost. If you don't have a one, click here to signup.

Usage

Configuring laravel project

Step 1 - Create New Laravel project

Step 2 - Add the package to your composer.json and run composer update.

or install with composer

Step 3 - Configurations

1) Add the pepipost service provider in config/app.php: (Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.)

2) Add pepipost api key, endpoint in config/services.php

    endpoint config

    If you need to set custom endpoint, you can set any endpoint by using endpoint key.
    For example,calls to Pepipost Web API through a proxy,configure endpoint in config/services.php.

      'pepipost' => [
              'api_key' => env('PEPIPOST_API_KEY'),
              'endpoint' => 'https://api.pepipost.com/v2/sendEmail',
          ],

3) Add following in .env file

Step 4- Laravel Steps to create controller and view

1) Define Controller

2) create file in resources/views/viewname/name.blade.php and include your email content

include following function sendMail in TestController to send
viewname.name as content of email and initialize $data to use it on view page

3) Create Route in routes/web.php

Step 5 - Testing

Host your laravel project and enter url- http://your_url.com/send/email in browser

This will send email and display Email sent successfully on browser.

Additional Usage

IF want to pass others parameters of PepiPost SendEmail API use embedData function and include below code as below Add parameters as per your requirement. Do not use multiple to's,cc's,bcc's with this method.

For multiple to's,cc's,bcc's pass recipient,recipient_cc,recipient_bcc as below, create personalizations as required

License

MIT


All versions of pepipost with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
illuminate/mail Version ~5.2
guzzlehttp/guzzle Version ~5.3|~6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package divya2407sharma/pepipost contains the following files

Loading the files please wait ....