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.4k↓57.1%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 1mo ago

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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity23

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.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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