PHPackages                             coloursfactory/refreshmailer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. coloursfactory/refreshmailer

ActivePackage[HTTP &amp; Networking](/categories/http)

coloursfactory/refreshmailer
============================

Implementation of FreshMail.pl REST API

01.1k1PHP

Since Jun 9Pushed 9y agoCompare

[ Source](https://github.com/ColoursFactory/ReFreshMailer)[ Packagist](https://packagist.org/packages/coloursfactory/refreshmailer)[ RSS](/packages/coloursfactory-refreshmailer/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

ReFreshMailer - ReFreshed REST API client for freshmail.pl
==========================================================

[](#refreshmailer---refreshed-rest-api-client-for-freshmailpl)

With this package usage of freshmailer.pl REST API will be more comfortable.

It uses adapters to provide right PSR-7 compatible HTTP service.

Actully implemented ones are:

- cURL
- Guzzle6

Feel free to commit new adapters :)

See [https://freshmail.pl/api\_section/jak-zaczac/](https://freshmail.pl/api_section/jak-zaczac/) for massive documentation.

Installation
------------

[](#installation)

Simply add to your `composer.json` file

```
{
    "require": {
        "preclowski/refreshmailer": "dev-master"
    }
}
```

or, require directly using

```
composer require preclowski/refreshmailer

```

Usage
-----

[](#usage)

```
use ColoursFactory\ReFreshMailer\FreshMailClient;
use ColoursFactory\ReFreshMailer\Http\GuzzleHttpAdapter;
use GuzzleHttp\Client;

$options = [
    'apiKey' => 'abcdef1234567890',
    'apiSecret' => 'abcdef1234567890',
];

$httpAdapter = new GuzzleHttpAdapter(new Client());
// or
$httpAdapter = new CurlHttpAdapter();

/** @var HttpAdapterInterface $httpAdapter */
$client = new FreshMailClient($httpAdapter, 'https://api.freshmail.com/rest/', $options);

$campaigns = $client->doRequest('/campaigns');
```

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the Github issue tracker.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3792973?v=4)[Konrad P](/maintainers/preclowski)[@Preclowski](https://github.com/Preclowski)

---

Top Contributors

[![Preclowski](https://avatars.githubusercontent.com/u/3792973?v=4)](https://github.com/Preclowski "Preclowski (8 commits)")

---

Tags

curlfreshmailguzzlemailingrest

### Embed Badge

![Health badge](/badges/coloursfactory-refreshmailer/health.svg)

```
[![Health](https://phpackages.com/badges/coloursfactory-refreshmailer/health.svg)](https://phpackages.com/packages/coloursfactory-refreshmailer)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
