PHPackages                             nsbucky/pop3 - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. nsbucky/pop3

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

nsbucky/pop3
============

A simple class to read pop3 mailboxes

2888PHP

Since Mar 4Pushed 12y ago1 watchersCompare

[ Source](https://github.com/nsbucky/pop3)[ Packagist](https://packagist.org/packages/nsbucky/pop3)[ RSS](/packages/nsbucky-pop3/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pop3
----

[](#pop3)

This class aims to be a simple way to read a POP3 mailbox.

Most of this code was pulled from the set of functions found in this php.net comment:

### Required setup

[](#required-setup)

In the `require` key of `composer.json` file add the following

```
"nsbucky/pop3": "dev-master"

```

Example
-------

[](#example)

```
$pop3 = new \Pop3\Connection($host, $user, $password);

try {

    $messages = $pop3->listMessages();

    // each message will be instance of Pop3\Message
    foreach( $messages as $messageNumber => $message ) {
        echo "" . print_r( get_object_vars($message), true) . "";

        /*
        prints an array that looks something like this:
        Array
        (
            [subject] => sample message
            [from] => Your Mom
            [to] => mrpickles@hardbears.com
            [date] => Thu, 20 Sep 2012 09:01:51 -0700
            [message_id] =>
            [size] => 2500
            [uid] => 1
            [msgno] => 1
            [recent] => 1
            [flagged] => 0
            [answered] => 0
            [deleted] => 0
            [seen] => 0
            [draft] => 0
            [udate] => 1348156911
        )
        */

        // fetch body of message
        $body = $message->fetchBody();
    }

} catch( \RuntimeException $e) {
    echo $e->getMessage(); // will say it can't connect to $mailbox
}

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/32774749088f18fbec2f13062d79251cb780b3fc0e1103a08eaa1786d9c3a9f2?d=identicon)[nsbucky](/maintainers/nsbucky)

### Embed Badge

![Health badge](/badges/nsbucky-pop3/health.svg)

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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