PHPackages                             dsoares/lastlogin - 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. dsoares/lastlogin

ActiveRoundcube-plugin[Mail &amp; Notifications](/categories/mail)

dsoares/lastlogin
=================

Roundcube plugin to save and show user login information and login history.

1.3.0(4y ago)1510114[3 issues](https://github.com/dsoares/roundcube-lastlogin/issues)[2 PRs](https://github.com/dsoares/roundcube-lastlogin/pulls)GPL-3.0+PHPPHP &gt;=5.4

Since May 10Pushed 2y ago7 watchersCompare

[ Source](https://github.com/dsoares/roundcube-lastlogin)[ Packagist](https://packagist.org/packages/dsoares/lastlogin)[ Docs](https://github.com/dsoares/roundcube-lastlogin)[ RSS](/packages/dsoares-lastlogin/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (10)Dependencies (2)Versions (22)Used By (0)

Roundcube plugin lastlogin
==========================

[](#roundcube-plugin-lastlogin)

Roundcube plugin to save and show user login information (user login history).

When a user logs in into Roundcube, this plugin:

1. shows the user's last login information in a small box for N configurable seconds;
2. saves the information to a database table for history purposes.

The login history may be consulted in its own Settings tab.

If using the [geolocation plugin](http://plugins.roundcube.net/packages/dsoares/geolocation) (config option `lastlogin_geolocation` is `true`) and you have some organization internal networks configured there, that information will be shown. Also, if using the [geolocation plugin](http://plugins.roundcube.net/packages/dsoares/geolocation) with the `system` method, don't forget to enable the [PHP GeoIP extension](https://www.php.net/manual/en/book.geoip.php). For more information, see the [geolocation plugin](http://plugins.roundcube.net/packages/dsoares/geolocation) configuration.

The plugin provides a section in settings for the user to configure for how long (number of seconds) to show a notification with last access information on login.

Stable versions of this plugin are available from the [Roundcube plugin repository](http://plugins.roundcube.net/packages/dsoares/lastlogin) or the [releases section](http://github.com/dsoares/roundcube-lastlogin/releases) of the GitHub repository.

Requirements
------------

[](#requirements)

- [geolocation plugin](http://plugins.roundcube.net/packages/dsoares/geolocation) if the config option `lastlogin_geolocation` is `true` (default is `false`).
- The option `log_logins` in Roundcube main configuration must be enabled to register the logins.

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

[](#installation)

#### Install with composer

[](#install-with-composer)

Add the plugin to your `composer.json` file:

```
"require": {
    (...)
    "dsoares/lastlogin": "*"
}

```

Run:

```
$ composer update [--your-options]`

```

Copy `config.inc.php.dist` to `config.inc.php` and modify it as necessary.

#### Manual installation

[](#manual-installation)

Place this directory under your Rouncdube `plugins/` folder, copy `config.inc.php.dist` to `config.inc.php` and modify it as necessary. Then, you need to import the database script:

```
mysql -your_mysql_connection_options your_roundcube_database_name < SQL/mysql.initial.sql

```

NOTE: The plugin ships only with a MySQL/MariaDB script `SQL/mysql.initial.sql`; you are welcome to contribute with other database drivers.

Don't forget to enable the lastlogin plugin within the main Roundcube configuration file `config/config.inc.php`.

Configuration
-------------

[](#configuration)

- **$config\['lastlogin\_timeout'\]** - number of seconds to show the user login info at login; default `10`.
- **$config\['lastlogin\_lastrecords'\]** - number of history entries to show in the settings section; default `10`.
- **$config\['lastlogin\_geolocation'\]** - use the geolocation plugin; default `false`.
- **$config\['lastlogin\_dns'\]** - also register IP DNS names; default `true`.
- **$config\['lastlogin\_tor'\]** - check if IP is a TOR-network exit point; default `true`.
- **$config\['lastlogin\_tor\_suffix'\]** - the TOR-network DNS suffix.
- **$config\['lastlogin\_tor\_ip'\]** - the TOR-network IP.
- **$config\['lastlogin\_mask\_ip'\]** - mask the IP? (for GDPR); default `false`;
- **$config\['lastlogin\_useragent'\]** - save the user-agent information?; default `false`.

See the `config.inc.php.dist` for more information.

If you don't want the `lastlogin_timeout` setting to be overriden by the user, you can add it to your Roundcube [`dont_override`](https://github.com/roundcube/roundcubemail/blob/master/config/defaults.inc.php#L363).

License
-------

[](#license)

This plugin is released under the [GNU General Public License Version 3+](http://www.gnu.org/licenses/gpl.html).

Contact
-------

[](#contact)

Comments and suggestions are welcome!

Email: [Diana Soares](mailto:diana.soares@gmail.com)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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 ~98 days

Recently: every ~285 days

Total

20

Last Release

1786d ago

Major Versions

0.1.14 → 1.0.02018-05-13

PHP version history (3 changes)0.1.0PHP &gt;=5.2.1

1.2.1PHP &gt;=5.5.0

1.3.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4598e204a3ac2c802920b88d2742ff1656ac9cdcaa9490f21c9218576fac169?d=identicon)[dsoares](/maintainers/dsoares)

---

Top Contributors

[![dsoares](https://avatars.githubusercontent.com/u/673736?v=4)](https://github.com/dsoares "dsoares (67 commits)")[![mckaygerhard](https://avatars.githubusercontent.com/u/1571724?v=4)](https://github.com/mckaygerhard "mckaygerhard (4 commits)")[![san4op](https://avatars.githubusercontent.com/u/11719266?v=4)](https://github.com/san4op "san4op (2 commits)")[![hannesbe](https://avatars.githubusercontent.com/u/10950856?v=4)](https://github.com/hannesbe "hannesbe (1 commits)")[![kawaiipantsu](https://avatars.githubusercontent.com/u/12233528?v=4)](https://github.com/kawaiipantsu "kawaiipantsu (1 commits)")[![valarauco](https://avatars.githubusercontent.com/u/434898?v=4)](https://github.com/valarauco "valarauco (1 commits)")

---

Tags

geolocationhacktoberfestlogin-historypluginroundcubemailhistorylogin

### Embed Badge

![Health badge](/badges/dsoares-lastlogin/health.svg)

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

###  Alternatives

[zbateson/mail-mime-parser

MIME email message parser

53949.2M79](/packages/zbateson-mail-mime-parser)[zbateson/stream-decorators

PHP psr7 stream decorators for mime message part streams

4748.6M6](/packages/zbateson-stream-decorators)[opcodesio/mail-parser

Parse emails without the mailparse extension

216.8M8](/packages/opcodesio-mail-parser)[kitist/html5_notifier

Desktop Notifications for Roundcube

7710.9k](/packages/kitist-html5-notifier)[weird-birds/thunderbird_labels

Shows thunderbird labels for messages in roundcube webmail.

6310.5k](/packages/weird-birds-thunderbird-labels)[toteph42/identity_switch

This plugin allows users to switch between different accounts (and check for new mails) in a single Roundcube session.

211.2k](/packages/toteph42-identity-switch)

PHPackages © 2026

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