2017 © Pedro Peláez
 

library laposta-api-php

Laposta api, free api to laposta.nl

image

laposta/laposta-api-php

Laposta api, free api to laposta.nl

  • Thursday, June 7, 2018
  • by laposta
  • Repository
  • 2 Watchers
  • 4 Stars
  • 94 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 2 Versions
  • 29 % Grown

The README.md

Laposta API PHP

Build Coverage Packagist Version PHP Version License, (*1)

A PHP library for interacting with the Laposta API, compatible with PSR-18 and PSR-17 standards., (*2)

Requirements

To use the Laposta API, the following is required:, (*3)

  • PHP >= 8.1
  • cURL PHP extension
  • JSON PHP extension

Composer Installation

The easiest way to install this library is by requiring it via Composer:, (*4)

composer require laposta/laposta-api-php

Manual Installation

If you're not using Composer, include the autoloader:, (*5)

require_once("/path/to/laposta-api-php/standalone/autoload.php");

Quick Example

$laposta = new LapostaApi\Laposta('your_api_key');
$member = $laposta->memberApi()->create($listId, ['email' => 'test@example.com', 'ip' => '123.123.123.123']);

Examples

This project includes a set of real, runnable examples organized by API resource (e.g., list, campaign, member).
Each example demonstrates a specific API operation and can be run via PHP CLI.
See examples/README.md for setup instructions and an overview of the available examples., (*6)

Extensibility

This library is built around PHP standards (PSR-18/17) and is designed to be flexible.
You can inject your own HTTP client and factories (e.g. Guzzle, Nyholm, Symfony components) via the constructor:, (*7)

$laposta = new LapostaApi\Laposta(
    'your_api_key',
    httpClient: new \GuzzleHttp\Client(), // implements PSR-18
    requestFactory: ...,
    responseFactory: ...,
    streamFactory: ...,
    uriFactory: ...
);

If no client or factories are provided, the library uses its own lightweight implementations by default., (*8)

API Documentation

For the full API reference, see https://api.laposta.nl/doc., (*9)

Changelog

See CHANGELOG.md for a complete list of changes., (*10)

License

This library is open-sourced software licensed under the MIT license., (*11)

The Versions

07/06 2018

dev-master

9999999-dev http://laposta.nl

Laposta api, free api to laposta.nl

  Sources   Download

MIT

The Requires

  • php >=5.2

 

by Stijn van der Ree

api newsletter email marketing email-marketing

09/10 2016

v1.5

1.5.0.0 http://laposta.nl

Laposta api, free api to laposta.nl

  Sources   Download

MIT

The Requires

  • php >=5.2

 

by Stijn van der Ree

api newsletter email marketing email-marketing