Download the PHP package stdimitrov/jockstream without Composer
On this page you can find all versions of the php package stdimitrov/jockstream. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stdimitrov/jockstream
More information about stdimitrov/jockstream
Files in stdimitrov/jockstream
Package jockstream
Short Description 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.
License MIT
Informations about the package jockstream
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
- 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
Install the library via Composer:
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:
Use the file that is in the db folder.
All versions of jockstream with dependencies
guzzlehttp/guzzle Version ^7.9
ext-pdo Version *
php-di/php-di Version ^7.0