PHPackages                             marshmallow/server-project-usage - 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. marshmallow/server-project-usage

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

marshmallow/server-project-usage
================================

Send the usage of a project to an endpoint.

v1.0.8(5y ago)09.7k[1 PRs](https://github.com/marshmallow-packages/server-project-usage/pulls)MITPHPPHP ^7.4|^8.0

Since Jul 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/marshmallow-packages/server-project-usage)[ Packagist](https://packagist.org/packages/marshmallow/server-project-usage)[ Docs](https://github.com/Marshmallow-Development/)[ RSS](/packages/marshmallow-server-project-usage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (12)Used By (0)

[![alt text](https://camo.githubusercontent.com/329958cb02b7bee461fd9dcae7a0a3a34e6595669116ff441ad5ef9e77bc511c/68747470733a2f2f63646e2e6d617273686d616c6c6f772d6f66666963652e636f6d2f6d656469612f696d616765732f6c6f676f2f6d617273686d616c6c6f772e7472616e73706172656e742e7265642e706e67 "marshmallow.")](https://camo.githubusercontent.com/329958cb02b7bee461fd9dcae7a0a3a34e6595669116ff441ad5ef9e77bc511c/68747470733a2f2f63646e2e6d617273686d616c6c6f772d6f66666963652e636f6d2f6d656469612f696d616765732f6c6f676f2f6d617273686d616c6c6f772e7472616e73706172656e742e7265642e706e67)

Project usage
=============

[](#project-usage)

Deze package maakt het mogelijk om gegevens over het project naar een endpoint naar keuze te sturen zodat je statistieken bij kan houden over bijvoorbeeld hoe groot de database is, hoeveel geheugen wordt er gebruikt en welke packages worden er gebruikt.

### Installatie

[](#installatie)

```
composer require marshmallow/server-project-usage
```

### Usage

[](#usage)

First publish the config or update your `.env` file with the values below.

```
PROJECT_USAGE_API_ENDPOINT=XXXXX
PROJECT_USAGE_CUSTOMER_ID=XXXXXX
PROJECT_USAGE_PROJECT_ID=XXXXXX

```

### Setup automatic updating

[](#setup-automatic-updating)

Add the following command to your `composer.json` so on every composer update we will update the information in your panel.

```
"scripts": {
    "post-autoload-dump": [
        // ...
        "@php artisan marshmallow:publish-package-usage --ansi"
    ],
    // ...
}
```

### Schedule your updates

[](#schedule-your-updates)

Add the command to your schedule in every project and handle the request on the endpoint in your config file to store the data that will be send.

```
protected function schedule(Schedule $schedule)
{
    $schedule->command('marshmallow:publish-project-usage')->daily();
}
```

### Commands

[](#commands)

```
# This will show the data that will be send to the endpoint
php artisan marshmallow:show-project-usage
```

```
# This will do a post request to the endpoint in the config
php artisan marshmallow:publish-project-usage
```

```
# This will only post the package information to your endpoint
php artisan marshmallow:publish-package-usage
```

### The data

[](#the-data)

Below you will find the data that will be sent to the API endpoint.

```
{
	"customer_id": "XXXXXX",
	"project_id": "XXXXXX",
	"data": {
		"server": {
			"php_version": "7.4.8"
		},
		"database": {
			"size": 14155776,		// bytes
			"table_count": 31
		},
		"storage": {
			"root": 284579340,		// bytes
			"storage": 53010322		// bytes
		},
		"packages": {
			"composer": {
				"marshmallow/package-novastyling": "v1.1.1",
				"marshmallow/server-project-usage": "v1.0.4"
				// ...
			},
			"dependencies": {
				"doctrine/inflector": "2.0.3",
				"laravel/ui": "v2.1.0"
				// ...
			}
		}
	}
}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~31 days

Recently: every ~62 days

Total

9

Last Release

1868d ago

PHP version history (2 changes)v1.0.0PHP ^7.4

v1.0.8PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/be33d2624e24c516e73892b0929447cc762f3622c024ab8d0d2a59042e5d2c7f?d=identicon)[marshmallow](/maintainers/marshmallow)

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (14 commits)")

---

Tags

marshmallow

### Embed Badge

![Health badge](/badges/marshmallow-server-project-usage/health.svg)

```
[![Health](https://phpackages.com/badges/marshmallow-server-project-usage/health.svg)](https://phpackages.com/packages/marshmallow-server-project-usage)
```

PHPackages © 2026

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