Download the PHP package leadpush/sdk-php without Composer

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

leadpush/sdk-php

Official PHP SDK for the Leadpush API.

Create a Leadpush account at leadpush.io.

Installation

Requirements

Quick Start

Configuration

Defaults:

You can pass a Symfony HttpClientInterface as the third constructor argument for custom transports or tests.

Contacts

Contact methods that accept a contact identifier can use either the contact uuid or the workspace identity field value, such as an email address.

Get A Contact

Create A Contact

Update A Contact

Update From A Model

Subscribe Or Unsubscribe

Contact Events

You can also access events from an attached contact model:

Create A Contact Event

Contact event creation returns null when the API accepts the event. The create endpoint does not return the created event.

Pagination

List One Page

Iterate Every Model

Iterate Page By Page

Domains

List Domains

Create A Domain

Verify Or Delete A Domain

You can also verify or delete from an attached domain model:

Domain Addresses

You can also access addresses from an attached domain model:

Emails

Send An Email

The from address must be a verified sendable address in the API key workspace. Provide html, text, or both, and at least one recipient across to and bcc. Leadpush creates one tracked message per unique recipient and returns those message identifiers with initial pending status.

Fields

List Fields

Create A Field

Suppressions

List Suppressions

Create A Suppression

Suppressions do not support updates. Calling $client->suppressions()->update(...) throws UnsupportedEndpointError.

Low-Level Requests

Use get, post, or delete for endpoints that do not have a typed resource yet.

GET

POST

DELETE

Paths can also be passed as arrays:

Errors

The SDK throws typed errors for common API failures:

Available errors:

Development

Releasing

Releases are created from Git tags. Packagist reads the GitHub repository and publishes Composer versions from tags like v1.0.0.

Before the first release, submit this repository to Packagist as leadpush/sdk-php and enable the Packagist GitHub integration so new tags update automatically.

To publish a release:

  1. Open the Release workflow in GitHub Actions.
  2. Run it manually with a SemVer tag like v1.0.0.
  3. Wait for the matrix tests to pass.

The workflow creates and pushes the Git tag, then creates a GitHub Release. Packagist will expose the tag as the matching Composer version.

License

MIT


All versions of sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
symfony/http-client Version ^7.4
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 leadpush/sdk-php contains the following files

Loading the files please wait ...