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 today

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

28

—

LowBetter than 52% of packages

Maintenance35

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

611d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/75424605?v=4)[st\_d05](/maintainers/stdimitrov05)[@stdimitrov05](https://github.com/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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[infinum/eightshift-libs

WordPress libs developed by Eightshift team to use in modern WordPress.

63125.5k3](/packages/infinum-eightshift-libs)

PHPackages © 2026

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