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 8y agoCompare

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

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 27% 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://www.gravatar.com/avatar/bab07c1028c2d3b69fd454c0e90b70cbda11467c273179fd99399187c1430adb?d=identicon)[preclowski](/maintainers/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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M317](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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