PHPackages                             beanbean/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. [Framework](/categories/framework)
4. /
5. beanbean/activity

ActiveLibrary[Framework](/categories/framework)

beanbean/activity
=================

Activity package for Laravel

0.1.0(7y ago)10382MITPHPPHP &gt;=7.1

Since Mar 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/toancong/activity)[ Packagist](https://packagist.org/packages/beanbean/activity)[ RSS](/packages/beanbean-activity/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

Activity
========

[](#activity)

[![Build Status](https://camo.githubusercontent.com/df5de9f688b3d0e39a4ba7db74416c2d82d848ec063798aef01037b6ff5880fd/68747470733a2f2f7472617669732d63692e636f6d2f746f616e636f6e672f61637469766974792e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/toancong/activity)

a laravel package follow [activity stream spec](https://www.w3.org/TR/activitystreams-core/) and [jsonapi](https://jsonapi.org/)

[![feed](feed.png)](feed.png)

[![timeline](timeline.png)](timeline.png)

[![order-track](order-track.png)](order-track.png)

Examples
--------

[](#examples)

Install
-------

[](#install)

```
composer require beanbean/activity

```

Usage
-----

[](#usage)

### Integrate with your code

[](#integrate-with-your-code)

1. Add trait Activitiable in your models

```
// class User, class Product
use \Bean\Activity\Traits\Activitiable;

```

2. Add an activity when something happen

```
// when user favorite a product
app('activity')->create([
    // 'favorite'
    'type'    => ActivityConst::FAVORITE_PRODUCT,

    // selected fields to save
    'actor'   => $user->toObject('id', 'fullname', 'avatar_url'),

    // selected fields to save
    'object'  => $product->toObject('id', 'title', 'image_url'),

    // a placeholder template to use later
    'summary' => '{{actor}} {{type}} {{object}}',
]);

// when user unfavorite a product
app('activity')->delete($user, 'favorite', $product);

//browse to display
$activities = app('activity')->browse([
    'target_id' => (string)$user->id,
    'type'      => 'favorite',
], [
    'page' => [
        'size' => 50,
    ]
]);

```

### Integrate with API

[](#integrate-with-api)

Comming soon

Todo
----

[](#todo)

- Activity service
- BREAD api
- UI in-app notification, activity
- UI theme support
- Real-time activity
- Horizontal Partitioning

Contribute
----------

[](#contribute)

PR are welcome. Please open an issue first and submit PR with a good commit message. Thanks

### Dev

[](#dev)

```
docker-compose run --rm --entrypoint=composer test install

```

### Test

[](#test)

```
docker-compose run --rm test

```

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2654d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34872712?v=4)[Nguyen Duy Toan](/maintainers/toanpc)[@toanpc](https://github.com/toanpc)

---

Top Contributors

[![toancong](https://avatars.githubusercontent.com/u/5398771?v=4)](https://github.com/toancong "toancong (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M504](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M200](/packages/sulu-sulu)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[october/rain

October Rain Library

1601.7M80](/packages/october-rain)

PHPackages © 2026

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