PHPackages                             nwidart/activity - 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. nwidart/activity

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

nwidart/activity
================

Activity lets you list your current activity on Github. Soon from Bitbucket as well.

122[1 PRs](https://github.com/nWidart/activity/pulls)PHP

Since Apr 17Pushed 4y ago2 watchersCompare

[ Source](https://github.com/nWidart/activity)[ Packagist](https://packagist.org/packages/nwidart/activity)[ RSS](/packages/nwidart-activity/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7b255a645ccce56c8c23d0b8a6a517a2ab4f39bd1b7e8ffa4c03bab9b6ff01b0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e5769646172742f61637469766974792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nWidart/activity/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/7c5f6a78a19a26cd9a85bc80b3ce9be5483fba46177c30a0a415f706f1906fe7/68747470733a2f2f706f7365722e707567782e6f72672f6e7769646172742f61637469766974792f762f737461626c652e737667)](https://packagist.org/packages/nwidart/activity) [![Total Downloads](https://camo.githubusercontent.com/7a31ad1d30e0cfc0ef82e596b65849506a6bc10114240d6cb8e40d79f17fdc10/68747470733a2f2f706f7365722e707567782e6f72672f6e7769646172742f61637469766974792f646f776e6c6f6164732e737667)](https://packagist.org/packages/nwidart/activity) [![Latest Unstable Version](https://camo.githubusercontent.com/5c885a107750a356174982830b9e2dee0f125d688ccc598fdeb9fbeb76c3a7e8/68747470733a2f2f706f7365722e707567782e6f72672f6e7769646172742f61637469766974792f762f756e737461626c652e737667)](https://packagist.org/packages/nwidart/activity) [![License](https://camo.githubusercontent.com/6728c1ca6c47952d59a60bfd628c27edbcd1efa883d93e03b9cacc660645f4e9/68747470733a2f2f706f7365722e707567782e6f72672f6e7769646172742f61637469766974792f6c6963656e73652e737667)](https://packagist.org/packages/nwidart/activity)[![SensioLabsInsight](https://camo.githubusercontent.com/c7ab3aa5a0a0c000f80b9cec02a07f1337b48629a81cc9b7d696026c461f0baa/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39326536323561382d306533632d343663642d393538332d3066316265316437666339392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/92e625a8-0e3c-46cd-9583-0f1be1d7fc99)

Activity
========

[](#activity)

Activity lets you list your current activity on Github. Soon from Bitbucket as well.

**Important note**

Keep in mind this package is still in W.I.P., meaning not all event types are implemented yet.

The event types **not implemented** yet:

- ForkEvent
- PublicEvent
- ReleaseEvent

Events **available**:

- CreateEvent
- DeleteEvent
- IssueCommentEvent
- PullRequestEvent
- PushEvent
- WatchEvent
- IssuesEvent
- CommitCommentEvent
- GollumEvent
- PullRequestReviewCommentEvent

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

[](#installation)

Add the following in you [composer](http://getcomposer.org).json file:

```
{
    "require": {
        "nwidart/activity": "dev-master"
    }
}
```

Add the service provider in `app/config/app.php`

```
'providers' => [
	...
    'Nwidart\Activity\ActivityServiceProvider'
]
```

Next add the Facade:

```
'aliases' => [
	...
    'Activity'          => 'Nwidart\Activity\ActivityFacade',
]
```

Finally publish the configuration file:

```
php artisan config:publish Nwidart/activity

```

And add your Github Application token.

Usage
-----

[](#usage)

The usage is very simple and straightforward.

### Constructor/method injection

[](#constructormethod-injection)

```
public function __construct(Activity $activity)
{
    $this->activity = $activity;
}

public function getIndex()
{
    $activities = $this->activity->forUser('nwidart')->activities();
}
```

The `activities` method accepts integer that represents the limit of activities. It defaults to 5.

### Using the Facade

[](#using-the-facade)

```
$activities = ActivityFacade::forUser('nwidart')->activities();
```

The response will be:

```
array (size=5)
  0 =>
    array (size=6)
      'time' => string '2 hours ago' (length=11)
      'actor' => string 'nWidart' (length=7)
      'actor_avatar' => string 'https://avatars.githubusercontent.com/u/882397?' (length=47)
      'verb' => string 'pushed to ' (length=10)
      'action_object' => string 'nWidart/portfolio' (length=17)
      'target' => string 'https://github.com/nWidart/portfolio/commit/5fae34f185d7b52e4de4c3597df7218af024c9e1' (length=84)
  1 =>
    array (size=6)
      'time' => string '8 hours ago' (length=11)
      'actor' => string 'nWidart' (length=7)
      'actor_avatar' => string 'https://avatars.githubusercontent.com/u/882397?' (length=47)
      'verb' => string 'pushed to ' (length=10)
      'action_object' => string 'nWidart/portfolio' (length=17)
      'target' => string 'https://github.com/nWidart/portfolio/commit/bba88e3d9bbaa1c13e98100d3da7fa3becbbd3f1' (length=84)
  2 =>
    array (size=6)
      'time' => string '8 hours ago' (length=11)
      'actor' => string 'nWidart' (length=7)
      'actor_avatar' => string 'https://avatars.githubusercontent.com/u/882397?' (length=47)
      'verb' => string 'pushed to ' (length=10)
      'action_object' => string 'nWidart/portfolio' (length=17)
      'target' => string 'https://github.com/nWidart/portfolio/commit/275c0627c449eb3370bf50e46bad8987d74e1c9a' (length=84)
  3 =>
    array (size=6)
      'time' => string '8 hours ago' (length=11)
      'actor' => string 'nWidart' (length=7)
      'actor_avatar' => string 'https://avatars.githubusercontent.com/u/882397?' (length=47)
      'verb' => string 'pushed to ' (length=10)
      'action_object' => string 'nWidart/portfolio' (length=17)
      'target' => string 'https://github.com/nWidart/portfolio/commit/beba6f74cd40eef52a46195026e80d136beb90ee' (length=84)
  4 =>
    array (size=6)
      'time' => string '13 hours ago' (length=12)
      'actor' => string 'nWidart' (length=7)
      'actor_avatar' => string 'https://avatars.githubusercontent.com/u/882397?' (length=47)
      'verb' => string 'pushed to ' (length=10)
      'action_object' => string 'nWidart/portfolio' (length=17)
      'target' => string 'https://github.com/nWidart/portfolio/commit/7c23584cd4dca9eea529a15fc61da0afe2ea0485' (length=84)

```

License (MIT)
-------------

[](#license-mit)

Copyright (c) 2013 [Nicolas Widart](http://www.nicolaswidart.com) ,

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/565946b8d70f5fa172a21f87b7f0e3abdce0611cc1cd300ec8e7b360bdb0a4bc?d=identicon)[nWidart](/maintainers/nWidart)

---

Top Contributors

[![nWidart](https://avatars.githubusercontent.com/u/882397?v=4)](https://github.com/nWidart "nWidart (38 commits)")

### Embed Badge

![Health badge](/badges/nwidart-activity/health.svg)

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

PHPackages © 2026

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