PHPackages                             pragmarx/trivia - 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. pragmarx/trivia

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

pragmarx/trivia
===============

A trivia json database and a PHP generator

v0.1.2(8y ago)41001MITPHPPHP ~5.6|~7.0

Since Nov 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/antonioribeiro/trivia)[ Packagist](https://packagist.org/packages/pragmarx/trivia)[ Docs](https://github.com/pragmarx/trivia)[ RSS](/packages/pragmarx-trivia/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (1)

trivia
======

[](#trivia)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c9c2b2ca9dee6544b6a7f8e0200ce12636650ca7f9d02cbf9b2aff45a54ece01/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f707261676d6172782f7472697669612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pragmarx/trivia)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/dc531466eeef6ab2217957f33a98cf6f26d0a1b6d53fad2c0a964857b52b4401/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f616e746f6e696f7269626569726f2f7472697669612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/antonioribeiro/trivia)[![Coverage Status](https://camo.githubusercontent.com/4a3675185062e9bec726f0386193297b78eeb803f61c2eec4e7086ce31c0a400/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f616e746f6e696f7269626569726f2f7472697669612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/antonioribeiro/trivia/code-structure)[![Quality Score](https://camo.githubusercontent.com/d93b62c667c4998e0f0a05fa2c91e6f34f6f35b863fd0296db5468f9e1e8c1fe/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f616e746f6e696f7269626569726f2f7472697669612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/antonioribeiro/trivia)[![Total Downloads](https://camo.githubusercontent.com/3e27c9881c86081917d7effebb5dfa4deec91fe697f206ae4b94a4018d23be61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f707261676d6172782f7472697669612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/antonioribeiro/trivia)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Install
-------

[](#install)

Via Composer

```
$ composer require pragmarx/trivia
```

Usage
-----

[](#usage)

```
$trivia = new PragmaRX\Trivia();
echo count($trivia->all()); /// 43982
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Antonio Carlos Ribeiro](https://github.com/antonioribeiro)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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 ~0 days

Total

3

Last Release

3092d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

agnosticphptriviapragmarxtrivia

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pragmarx-trivia/health.svg)

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

###  Alternatives

[pragmarx/coollection

Laravel Illuminate collection with objectified properties

943.4M11](/packages/pragmarx-coollection)[pragmarx/random

Create random chars, numbers, strings

714.2M5](/packages/pragmarx-random)[pragmarx/ia-arr

Laravel Illuminate Agnostic Arr

553.6M12](/packages/pragmarx-ia-arr)[pragmarx/ia-str

Laravel Illuminate Agnostic Str

523.5M5](/packages/pragmarx-ia-str)[pragmarx/ia-collection

Laravel Illuminate Agnostic Collection

473.4M2](/packages/pragmarx-ia-collection)[pragmarx/support

PragmaRX components support package

591.5M27](/packages/pragmarx-support)

PHPackages © 2026

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