PHPackages                             mothership-app/php-logs - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. mothership-app/php-logs

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

mothership-app/php-logs
=======================

Error logging library for Mothership.app

16.8k↓79.8%PHP

Since Aug 17Pushed 2y ago2 watchersCompare

[ Source](https://github.com/MothershipApp/php-logs)[ Packagist](https://packagist.org/packages/mothership-app/php-logs)[ RSS](/packages/mothership-app-php-logs/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Mothership PHP Logs
===================

[](#mothership-php-logs)

About
-----

[](#about)

Mothership PHP Logs allows you to log server-side errors to your [Mothership](https://mothership.app) account where you can gather and organize logs in addition to performing backups, healthchecks, and sync your devlopment box with your various environments in seconds.

Once you've signed up let's get started!

Install through composer
------------------------

[](#install-through-composer)

```
composer require mothership-app/php-logs
```

General PHP
-----------

[](#general-php)

```
use Mothership\Mothership;

Mothership::init([
    'access_token' => 'XXXXXXXXX - YOUR KEY - XXXXXXXX',
    'environment'  => 'production'
]);
Mothership::error($exception);
```

Laravel
-------

[](#laravel)

Edit your `app/Exceptions/Handler.php` file with the following and you're good to go.

```
use Illuminate\Support\Facades\App;
use Mothership\Mothership;
...

/**
 * Render an exception into an HTTP response.
 *
 * @param  \Illuminate\Http\Request $request
 * @param  \Exception $exception
 * @return \Illuminate\Http\Response
 */
public function render($request, Exception $exception)
{
    if ($this->shouldReport($exception))
    {
        Mothership::init([
            'access_token' => 'XXXXXXXXX - YOUR KEY - XXXXXXXX',
            'environment'  => App::environment()
        ]);
        Mothership::error($exception);
    }

    parent::report($exception);
}
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70% 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/71b13af9be8d544d8275a375d1def0db89574e0c15cfcd0deaef35ffbe7d5c2e?d=identicon)[dolbex](/maintainers/dolbex)

---

Top Contributors

[![cinco-de-mauro](https://avatars.githubusercontent.com/u/4553533?v=4)](https://github.com/cinco-de-mauro "cinco-de-mauro (14 commits)")[![dolbex](https://avatars.githubusercontent.com/u/954095?v=4)](https://github.com/dolbex "dolbex (6 commits)")

### Embed Badge

![Health badge](/badges/mothership-app-php-logs/health.svg)

```
[![Health](https://phpackages.com/badges/mothership-app-php-logs/health.svg)](https://phpackages.com/packages/mothership-app-php-logs)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M277](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

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