PHPackages                             stdimitrov/jockstream - 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. stdimitrov/jockstream

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

stdimitrov/jockstream
=====================

A PHP library for aggregating random science, tech, and programming jokes from multiple APIs. Provides a unified interface for fetching jokes from various providers with support for logging API requests and handling errors gracefully.

v1.0.4(1y ago)09MITPHPPHP &gt;=8.3.0

Since Oct 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/stdimitrov05/JockStream)[ Packagist](https://packagist.org/packages/stdimitrov/jockstream)[ RSS](/packages/stdimitrov-jockstream/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Joke Aggregator Library
=======================

[](#joke-aggregator-library)

A PHP library/package for aggregating science, tech, and programming jokes from multiple joke APIs. This library allows developers to configure and retrieve random jokes from one or more APIs in a standardized format with integrated logging support.

Features
--------

[](#features)

- **Aggregate Jokes**: Retrieve jokes from multiple APIs in a unified, normalized format.
- **Configurable Providers**: Choose and configure one or more joke API providers from a list of available APIs.
- **PSR-3 Logging**: Log all API requests and responses using any PSR-3 compliant logger.
- **Fault Tolerance**: Handles API rate limits and errors gracefully, continuing to return jokes when possible.
- **PSR-12 Compliance**: Adheres to PHP best practices and PSR-12 standards.

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

[](#installation)

Install the library via Composer:

```
composer require stdimitrov/jockstream
```

Environment Configuration
-------------------------

[](#environment-configuration)

Create a `.env` file in the root directory of your project and configure it with the necessary environment variables for accessing the APIs and setting up the database. Below is an example `.env` configuration:

```
# Rapid
RAPID_API_KEY=your_token

# Database Configuration
DB_PORT=3306
DB_ADAPTER=Mysql
DB_HOST=localhost
DB_USERNAME=root
DB_PASSWORD=your_password
DB_NAME=jockstream
DB_CHARSET=utf8mb4
DB_COLLATION=utf8mb4_0900_ai_ci
```

Use the file that is in the db folder.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

4

Last Release

565d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/624fa04679964145e1414132fca5e959ff70c67ef1dfc2c45a40564da37b158f?d=identicon)[stdimitrov05](/maintainers/stdimitrov05)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stdimitrov-jockstream/health.svg)

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

###  Alternatives

[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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