Download the PHP package vpmv/marketo-client without Composer

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

Marketo Client

Travis Downloads Packagist

This package provides an interface for interacting with the Marketo REST API.

The code is a revamped fork of eventfarm/marketo-client. The internal architecture has been simplified, performance improved and helper functions added to aid integration into your consumer application.

Installation

Or add the following lines to your composer.json file:

Implementation details

Project Defaults

In order to get you up and running as easily as possible, we provide default implementations of a REST client and Marketo provider to use in combination with this package.

You can extend the client to implement your own interface to cache the access token, using the construct argument TokenRefreshCallback.

Guzzle REST Client

Our REST client implements the PSR-7 HTTP message interface.

You can either use the provided RestClientInterface.

MarketoProvider

Our default Marketo OAuth2 provider is the Marketo Provider library.

You can either use the provided MarketoProviderInterface.

Example Client Implementation

Usage

The use of the Marketo helper interface is completely optional. All it does, is wrap the MarketoClient into the API endpoint abstractions.

N.B.: Some implementations have changed during the overhaul and might not work as described below!

Campaigns

Get Campaigns

Docs

Returns a list of campaign records. Refer to the docs for the full list of options.

public function getCampaigns(array $options = array())

Trigger Campaign

Docs

Passes a set of leads to a trigger campaign to run through the campaign's flow. Refer to the docs for the full list of options.

public function triggerCampaign(int $campaignId, array $options)

Lead Fields

Get Lead Fields

Docs

Returns metadata about lead objects in the target instance, including a list of all fields available for interaction via the APIs.

public function getLeadFields(array $options = array())

Leads

Create or Update Leads

Docs

Syncs a list of leads to the target instance. Refer to the docs for the full list of options.

public function createOrUpdateLeads(array $options)

By default, Marketo sets the type of sync operation (action) to createOrUpdate and the lookupField to email. If using those defaults:

Update Leads' Program Status

Docs

Changes the program status of a list of leads in a target program. Refer to the docs for the full list of options.

public function updateLeadsProgramStatus(int $programId, array $options)

Get Leads by Program

Docs

Retrieves a list of leads that are members of the designated program. Refer to the docs for the full list of options.

public function getLeadsByProgram(int $programId, array $options = array())

Lead Partitions

Get Lead Partitions

Docs

Returns a list of available partitions in the target instance. Refer to the docs for the full list of options.

public function getPartitions(array $options = array())

Programs

Get Programs

Docs

Retrieves the list of accessible programs from the target instance. Refer to the docs for the full list of options.

public function getPrograms(array $options = array())

Statuses

Get Statuses

Docs

Retrieves channels based on the provided name. Refer to the docs for the full list of options.

public function getStatuses(string $programChannel, array $options = array())


All versions of marketo-client with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
psr/http-message Version ^1.0
guzzlehttp/guzzle Version ^7.4
league/oauth2-client Version ^2.6
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 vpmv/marketo-client contains the following files

Loading the files please wait ....