PHPackages                             websixgmbh/autodiscover - 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. websixgmbh/autodiscover

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

websixgmbh/autodiscover
=======================

112PHP

Since Dec 16Pushed 7y ago2 watchersCompare

[ Source](https://github.com/websixGmbH/Autodiscover)[ Packagist](https://packagist.org/packages/websixgmbh/autodiscover)[ RSS](/packages/websixgmbh-autodiscover/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Autodiscover
============

[](#autodiscover)

Mailserver Autodiscover for Outlook, Mozilla and most common Mail Clients.

originally based on  by Marcel Veldhuizen.

Usage
-----

[](#usage)

```
$config = new Configuration();

// Name of your Configuration
$cfg = $config->add('example.com');
$cfg->name = 'Example mail services';
$cfg->nameShort = 'Example';
$cfg->domains = ['example.com', 'example.org'];
$cfg->username = $_GET['emailaddress'];

// If you do not use email addresses as usernames you may want to use you own UsernameResolver like this:
// $cfg->username = new AliasesFileUsernameResolver("/etc/mail/domains/$domain/aliases");

$cfg->addServer('imap', 'mail.example.com')
    ->withEndpoint('STARTTLS')
    ->withEndpoint('SSL');

$cfg->addServer('smtp', 'smtp.example.com')
    ->withEndpoint('STARTTLS')
    ->withEndpoint('SSL');

// check wether to use mozilla or outlook handler based on subdomain.

if (strpos($_SERVER['SERVER_NAME'], "autoconfig.") === 0) {

    // Configuration for Mozilla Thunderbird, Evolution, KMail, Kontact
    $handler = new MozillaHandler($config);

} else if (strpos($_SERVER['SERVER_NAME'], "autodiscover.") === 0) {

    // Configuration for Outlook
    $handler = new OutlookHandler($config);

}

$handler->handleRequest();

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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/6d111e063952d65a886a97e6958a0a585f9d7566559aa89e070ea6d155f311d9?d=identicon)[sneumann](/maintainers/sneumann)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/websixgmbh-autodiscover/health.svg)

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

###  Alternatives

[mirazmac/dotenvwriter

A PHP library to write values to .env (DotEnv) files

19129.3k7](/packages/mirazmac-dotenvwriter)[joegreen0991/config

Config component based on laravel's

233.3k](/packages/joegreen0991-config)

PHPackages © 2026

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