Download the PHP package mmollick/drip-php without Composer

On this page you can find all versions of the php package mmollick/drip-php. 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 drip-php

Drip PHP API Wrapper

Build Status

Requirements

Installation

Composer Installation

Run the following command in the terminal:

Or add the following to your composer.json file:

Manual Installation

This package conforms to the PSR-4 autoloading standard. To include it in your project we recommend using composer, however you can use your own PSR-4 autoloader or manually load all the files contained in the src directory to load this library.

Usage

This package allows you use it in both an object-oriented or singleton approach depending on your preferences. All authentication and request methods are available with either approach.

Initialization as Singleton

Specify your authentication credentials with either the setTokenCredentials or setOAuthAccessToken static methods on the Drip class.

Initialization as Object

Using the object-oriented approach allows you to create multiple isolated instances of the Drip API. To do this first create new a \MMollick\Drip\Auth object and pass this into a new \MMollick\Drip\Request object.

Error Handling

This library will throw one of several exceptions when an error occurs either with the Request or the package itself. It's recommended that requests are made within in a try...catch block to properly handle errors as they arise. See the example below.

Methods

All of the request methods can be accessed statically from the \MMollick\Drip\Drip class or by calling them from the \MMollick\Drip\Request object.

Account
Actions Methods
List accounts getAccounts()
Fetch an account getAccount($account_id)
Broadcasts
Actions Methods
List broadcasts getBroadcasts($options = [])
Fetch a broadcast getBroadcast($broadcast_id)
Campaigns
Actions Request Methods
List campaigns getCampaigns($options = [])
Fetch a campaign getCampaign($campaign_id)
Activate a campaign activateCampaign($campaign_id)
Pause a campaign pauseCampaign($campaign_id)
List campaign subscribers listCampaignSubscribers($campaign_id, $options = [])
Subscribe to a campaign subscribeToCampaign($campaign_id, $subscriber)
Campaign Subscriptions
Actions Methods
List subscriber's subscriptions See listSubscribersSubscriptions in Subscribers
Conversions
Actions Methods
List all conversions getConversions($options = [])
Fetch a conversion getConversion($conversion_id)
Custom Fields
Actions Methods
List all custom fields getCustomFields()
Events
Actions Methods
Track an event recordEvent($payload)
Track a batch of events recordEvents($events)
List all custom event actions listActions()
Forms
Actions Methods
List all forms getForms($options = [])
Fetch a form getForm($form_id)
Purchases
Actions Methods
List purchases for a subscriber getPurchasesForSubscriber($id_or_email, $options = [])
Create a purchase addPurchaseToSubscriber($id_or_email, $purchase_id)
Fetch a purchase getPurchaseForSubscriber($id_or_email, $payload)
Subscribers
Actions Methods
List subscribers getSubscribers($options = [])
Create/update a subscriber createOrUpdateSubscriber($email, $payload = {})
Create/update a batch of subscribers createOrUpdateSubscribers($subscribers)
Unsubscribe a batch of subscribers unsubscribeSubscribers($subscribers)
Fetch a subscriber getSubscriber($id_or_email)
Delete deleteSubscriber($id_or_email)
Subscribe to a campaign See subscribeToCampaign in Campaigns
Unsubscribe from all mailings removeSubscriberFromAllMailings($id_or_email)
Unsubscribe from campaigns removeSubscriberFromCampaigns($id_or_email, $campaign_id = null)
List subscriber's subscriptions listSubscribersSubscriptions($subscriber_id)
Tags
Actions Methods
List tags getTags()
Apply a tag applyTag($email, $tag)
Remove a tag removeTag($email, $tag)
Webhooks
Actions Methods
List webhooks getWebhooks()
Fetch a webhook getWebhook($webhook_id)
Create a new webhook createWebhook($payload)
Delete a webhook deleteWebhook($webhook_id)
Workflows
Actions Methods
List workflows getWorkflows($options = [])
Fetch a workflow getWorkflow($workflow_id)
Activate a workflow activateWorkflow($workflow_id)
Pause a workflow pauseWorkflow($workflow_id)
Start a subscriber on a workflow addSubscriberToWorkflow($workflow_id, $options = [])
Remove a subscriber from a workflow removeSubscriberFromWorkflow($workflow_id, $id_or_email)
Workflow Triggers
Actions Methods
List workflow triggers getWorkflowTriggers($workflow_id)
Create a workflow trigger createWorkflowTrigger($workflow_id, $options = [])
Update a workflow trigger updateWorkflowTrigger($workflow_id, $options = [])

Contributing

1) Fork it ( https://github.com/mmollick/drip-php/fork ) 2) Create your feature branch (git checkout -b my-new-feature) 3) Commit your changes (git commit -am 'Add some feature')

Support

This package is open-source and maintained by the community. Drip does not directly participate in the maintenance of this package. Any issues with this package should be addressed by opening a new issue.


All versions of drip-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
ext-curl Version *
ext-json Version *
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 mmollick/drip-php contains the following files

Loading the files please wait ....