PHPackages                             a2sc/chuck-norris-jokes - 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. a2sc/chuck-norris-jokes

ActiveLibrary

a2sc/chuck-norris-jokes
=======================

Create random Chuck Norris jokes.

2.1.0(6y ago)012MITPHPCI failing

Since Jan 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/a2sc/chuck-norris-jokes)[ Packagist](https://packagist.org/packages/a2sc/chuck-norris-jokes)[ RSS](/packages/a2sc-chuck-norris-jokes/feed)WikiDiscussions master Synced today

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

Chuck Norris Jokes
==================

[](#chuck-norris-jokes)

Create random Chuck Norris Jokes using the API from [The Internet Chuck Norris Database](http://www.icndb.com/)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f33323745b8d6c8a1cede1d302ab843d5c773b8ae7895949d4f4299a4dc90cb9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f613273632f636875636b2d6e6f727269732d6a6f6b65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/a2sc/chuck-norris-jokes)[![Build Status](https://camo.githubusercontent.com/293ba3f785b2d3918178edd8f28d76ad2f852c632e00af5378a9827dc55d63a5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f613273632f636875636b2d6e6f727269732d6a6f6b65732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/a2sc/chuck-norris-jokes)

Purpose
-------

[](#purpose)

This package is a test example package from the [Marcel Pociot](https://github.com/mpociot)'s PHP [Package Development Serie](https://phppackagedevelopment.com/). The must see serie to learn how to create a package!

This is the "Hello World" package build within the serie to learn how to properly create a PHP package and publish it on Packagist and understand all the caveats.

Requirement
-----------

[](#requirement)

PHP version 7.2+

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

[](#installation)

Via Composer

```
composer require a2sc/chuck-norris-jokes
```

Usage
-----

[](#usage)

```
use A2sc\ChuckNorrisJokes\JokeFactory;

$jokes = new JokeFactory();

$joke = $jokes->getRandomJoke();
```

### Within Laravel project:

[](#within-laravel-project)

You can use the Facade:

```
$joke = ChuckNorris::getRandomJoke();
```

You can use artisan command:

```
php artisan chuck-norris
```

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](./LICENSE.md)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

2301d ago

Major Versions

1.0.0 → 2.0.02020-01-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17854590?v=4)[Amaury de Saint Chamas](/maintainers/a2sc)[@a2sc](https://github.com/a2sc)

---

Top Contributors

[![a2sc](https://avatars.githubusercontent.com/u/17854590?v=4)](https://github.com/a2sc "a2sc (34 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/a2sc-chuck-norris-jokes/health.svg)

```
[![Health](https://phpackages.com/badges/a2sc-chuck-norris-jokes/health.svg)](https://phpackages.com/packages/a2sc-chuck-norris-jokes)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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