Download the PHP package dallasmakerspace/cakephp-sparkpost-plugin without Composer

On this page you can find all versions of the php package dallasmakerspace/cakephp-sparkpost-plugin. 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 cakephp-sparkpost-plugin

CakePHP SparkPost Plugin

A CakePHP plugin for sending mail via SparkPost's REST API

Build Status Coverage Status Total Downloads Latest Stable Version Latest Unstable Version

Introduction

What is SparkPost?

SparkPost is a web-based email delivery service that allows web application developers to send transactional email via a flexible and reliable REST API. You may have heard of other email delivery services such as Mandrill and SendGrid.

Unfortunately these services are either not free or were once free but are no longer. Luckily, sending emails via SparkPost is free if you send less than 15,000 emails per month (which most fledgling webapps do).

Syntax Era developed this plugin because we use CakePHP in most of our apps,and because we noticed that there weren't any CakePHP plugins for SparkPost. We hope that this plugin proves to be useful to the CakePHP community at large but especially those migrating from Mandrill or another paid email service who still aren't ready/able to pay for the tiny amount of transactional emails they send.

Transactional email...?

Transactional email is email that is sent to notify users of something, or sometimes to prompt users to complete an action. For example, password reset emails, account verification emails, and "you just got a message" emails are all transactional.

For more information, see What is transactional email?.

What is CakePHP?

CakePHP is a rapid-development PHP web application framework that uses the MVC (Models/Views/Controllers) architecture. It was first released in August 2005 and is now on version 3.0 and is more powerful than ever! One of CakePHP's great features is that it supports extending its own functionality via the use of plugins, of which this is one.

For more information about CakePHP, visit their website at CakePHP.org.

Installation

Command-Line Installation

Using Composer is the recommended way of installing this plugin because it allows you to easily download the plugin and its dependencies and keep them up-to-date and make use of Composer's awesome class auto-loader.

To install the plugin using Composer:

  1. Open a terminal and cd to your CakePHP application's root directory.
  2. Run composer require syntaxera/cakephp-sparkpost-plugin to download the plugin and its dependencies.
  3. If you'd like, open composer.json for editing and modify the versioning schema for the plugin to your liking.

Manual Installation

You can also install the plugin manually by clicking the "Download ZIP" button above and unzipping it into your CakePHP application's plugins/ directory, however if you do this you will have to perform updates manually as well.

If you're familiar with git you can also download the repository directly to your hard drive using git clone. This allows you to stay on the bleeding-edge of the plugin's development, but be warned that it's called "bleeding-edge" for a reason.

Setup

To add the plugin to your application, activate the plugin in your application's bootstrap file:

Then add the following to your application's config file:

Usage

Because the plugin is implemented as a Transport, you can use it from just about any layer of your CakePHP application.

From a Controller

From the Cake CLI

Exactly the same process as sending from a controller, however you should additionally specify your hostname with $email->domain('www.example.com'); because CLI environments do not have hostnames.

Testing

You can test the plugin using CakePHP's built-in support for PHPUnit, however this assumes two things:

  1. You have PHPUnit globally installed and the phpunit command available from the command-line
  2. You didn't delete the phpunit.xml.dist that is created with new CakePHP 3.x applications

To test the plugin, first add its test suites to the application's PHPUnit config file:

Next, cd to your application's root directory and run phpunit.

If that doesn't work, run composer dump-autoload and try again.

Contributing

Bug Reports

If you find a bug in the plugin, or know of a missing feature you'd like to see added, feel free to create an issue on the Issues page. When reporting a bug, be as descriptive as possible. Include what you were doing when the bug occurred, what might have caused it to occur, and how to reproduce it if possible. Screenshots are nice, too.

As a matter of courtesy, please use the search tool to verify that an issue has not already been reported before creating a new issue. Feel free to add your comments/+1's to an open bug/feature request, but duplicate issues take time to prune and crowd out new, important issues.

Pull Requests

Found a bug you think you can fix? By all means go ahead! Clone the affected branch, fix the bug, then create a pull request and we'll review and accept it as quickly as we can. However, before submitting a pull request, please be sure that your code follows our Code Style Guidelines. PRs that don't follow the style guidelines will be rejected! (politely, of course)

A Word on Forks...

At Syntax Era we believe that certain software should be free, and this plugin is definitely in that category. That's why we've made this repository public, and why we allow contributions from the community. If you want to take this project in a different direction, thenust fork the repo and develop away! Because we have no control over the source code in a fork, however, we cannot provide support for that software. Use it at your own risk.

Legal

License

Licensed under the MIT License (MIT). See LICENSE.md for details.

Copyright

Copyright (c) 2016 Syntax Era Development Studio. All rights reserved.


All versions of cakephp-sparkpost-plugin with dependencies

PHP Build Version
Package Version
Requires cakephp/cakephp Version ~3.0
php-coveralls/php-coveralls Version ^2.1
guzzlehttp/guzzle Version ^6.3
php-http/guzzle6-adapter Version ^1.1
sparkpost/sparkpost Version ^2.1
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 dallasmakerspace/cakephp-sparkpost-plugin contains the following files

Loading the files please wait ....