PHPackages                             kaicmueller/medium - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kaicmueller/medium

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kaicmueller/medium
==================

A PHP library for reading the latest posts from a Medium.com feed

v2.0.0(9y ago)024MITPHPPHP ^5.6 || ^7.0

Since Feb 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/KaiCMueller/medium)[ Packagist](https://packagist.org/packages/kaicmueller/medium)[ RSS](/packages/kaicmueller-medium/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/18f87074e1ef47b1362a8f4725cde74f2670f13a6e9347b1bb94ca6b2f10178d/68747470733a2f2f7472617669732d63692e6f72672f4b6169434d75656c6c65722f6d656469756d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/KaiCMueller/medium)

A PHP library for reading the latest posts from a Medium.com feed

I built this library for showing my latest Medium posts on my web profile. As this might be interesting to others, I provide it to the public. This library is currently under development and has a limited feature set. Feel free to contact me for any bugs or contributions.

Current features:
-----------------

[](#current-features)

- Get up to ten latest Medium posts with title, preview text, url, date and tags
- Built in file cache and possibility to inject own cache

Usage
-----

[](#usage)

```
$medium = new \KaiCMueller\Medium\Medium(
    [
        'user' => '@yourUsername',
        'cacheTime' => 600, // an optional cache lifetime
        'useFileCache' => false, // de-/activate the optional build in file cache
        'fileCachePath' => '/path/to/cacheFile' // optional file path for internal file cache
    ],
    $cache // optional parameter to inject own cache class implementing \KaiCMueller\Medium\Cache\CacheInterface
);

foreach ($medium->getPosts() as $post) {
    echo $post->getTitle();
}
```

Install
-------

[](#install)

The recommended way to install is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

In your composer.json file add the following requirement

```
"require": {
    "kaicmueller/medium": "~1.0"
}
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

You can then later update using composer:

```
composer.phar update
```

Versions
--------

[](#versions)

- 2.0.0 - Post date now is DateTime object
- 1.0.1 - Adjusting Readme for correct versioning
- 1.0.0 - First release version

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~6 days

Total

3

Last Release

3374d ago

Major Versions

v1.0.1 → v2.0.02017-02-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dbcf6dc5f79fb0df6f78f96c1cbb3cc698fb29a58cd55193eac769aca658b2e?d=identicon)[KaiCMueller](/maintainers/KaiCMueller)

---

Top Contributors

[![KaiCMueller](https://avatars.githubusercontent.com/u/1928209?v=4)](https://github.com/KaiCMueller "KaiCMueller (10 commits)")

---

Tags

composerfeedmediumphp-librarymedium

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kaicmueller-medium/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[mtownsend/read-time

A PHP package to show users how long it takes to read content.

283571.1k2](/packages/mtownsend-read-time)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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