PHPackages                             quarterdeck/laravel-collection-nps - 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. quarterdeck/laravel-collection-nps

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

quarterdeck/laravel-collection-nps
==================================

Laravel Collection Net Promoter Score Macro

v1.1(2y ago)012UnlicensePHPPHP ^8.0

Since Aug 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/quarterdeck/laravel-collection-nps)[ Packagist](https://packagist.org/packages/quarterdeck/laravel-collection-nps)[ RSS](/packages/quarterdeck-laravel-collection-nps/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)DependenciesVersions (4)Used By (0)

Laravel Collection Net Promoter Score Macro
===========================================

[](#laravel-collection-net-promoter-score-macro)

Calculate Net Promoter Score (NPS) from a Collection.

Install
-------

[](#install)

`composer require quarterdeck/laravel-collection-nps`

Use
===

[](#use)

Given a collection of numbers just add `->nps()` and it will spit out an NPS score.

`collect([1,2,3,4,5,6,7,8,9,0,10])->nps(); // -45`

Any values not in the range of integers from 0-10 will be ignored.

`collect([1,2,3,4,5,6,7,8,9,0,10,-1,99,null,false,'boo'])->nps(); // -45`

License
-------

[](#license)

License is public domain. Do what you wish. But if you fancy linking to us at `quarterdeck.co.uk` to help with our Google Juice as a thank you then it would be very much appreciated.

Be lucky.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Every ~13 days

Total

3

Last Release

1034d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95821?v=4)[Kris Northfield](/maintainers/knorthfield)[@knorthfield](https://github.com/knorthfield)

---

Top Contributors

[![knorthfield](https://avatars.githubusercontent.com/u/95821?v=4)](https://github.com/knorthfield "knorthfield (1 commits)")

### Embed Badge

![Health badge](/badges/quarterdeck-laravel-collection-nps/health.svg)

```
[![Health](https://phpackages.com/badges/quarterdeck-laravel-collection-nps/health.svg)](https://phpackages.com/packages/quarterdeck-laravel-collection-nps)
```

###  Alternatives

[eiriksm/site-schema

Allows you to get the complete picture of a site schema, to use for CI for example

121.5M](/packages/eiriksm-site-schema)

PHPackages © 2026

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