PHPackages                             myaghobi/f3-captcha - 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. myaghobi/f3-captcha

ActiveLibrary

myaghobi/f3-captcha
===================

A better captcha for Fat-Free Framework.

v1.2.0(4y ago)62484GPL-3.0PHP

Since May 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/myaaghubi/f3-captcha)[ Packagist](https://packagist.org/packages/myaghobi/f3-captcha)[ Docs](https://github.com/myaghobi/f3-captcha)[ RSS](/packages/myaghobi-f3-captcha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

F3 Captcha
==========

[](#f3-captcha)

A better captcha for Fat-Free Framework.

[![screenshot-english](screenshots/shot1.jpg?raw=true "F3 Captcha Screentshot-English Font")](screenshots/shot1.jpg?raw=true) [![screenshot-persian](screenshots/shot2.jpg?raw=true "F3 Captcha Screentshot-Persian Font")](screenshots/shot2.jpg?raw=true)

Config
------

[](#config)

This plugin is configurable via config file:

```
[captcha]
LENGTH=5
CASE_SENSITIVE=TRUE
WIDTH=150
HEIGHT=70
FONT=monofont.ttf
FONT_SCALE=0.65
WAVES=TRUE
LETTERS=123456789abcdefghijklmnopkrstuvwxyz
KEY=captcha_code
```

The above config is the default, you can ignore/remove each one you don't need to change.

Usage
-----

[](#usage)

### 1. Install

[](#1-install)

If you use composer, run the below code:

```
composer require myaghobi/f3-captcha

```

For manual installation:

1. Copy the content of `lib/` folder into your `lib/` folder.
2. Copy content of `ui/` into your `ui/` folder.

### 2. Routing

[](#2-routing)

To show the captcha, you need to add a new route:

```
$f3->route('GET /captcha', 'Captcha->makeCaptchaImage');
```

### 3. Serve

[](#3-serve)

Within your controller you need to serve the captcha:

```
$f3->set('captcha', \Captcha::instance()->serve());
```

And in your HTML template:

```
{{@captcha|raw}}
```

### 4. Verification

[](#4-verification)

Finally you need to verify entered security code:

```
if (\Captcha::verify()) {
...
```

Customization
-------------

[](#customization)

### - Style

[](#--style)

The default captcha template can be changed by the developer, check out `ui/captcha/captcha.html`.

### - Font

[](#--font)

The default font is `monofont.ttf`, you can add your font in `ui/fonts/` and set the font name in config file.

License
-------

[](#license)

You are allowed to use this plugin under the terms of the GNU General Public License version 3 or later.

Copyright (C) 2021 Mohammad Yaghobi

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

1812d ago

### Community

Maintainers

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

---

Top Contributors

[![myaaghubi](https://avatars.githubusercontent.com/u/4276074?v=4)](https://github.com/myaaghubi "myaaghubi (10 commits)")

---

Tags

captchaf3-captchafat-free-pluginfatfree-frameworkcaptchafat-free frameworkfat-free-pluginf3-captcha

### Embed Badge

![Health badge](/badges/myaghobi-f3-captcha/health.svg)

```
[![Health](https://phpackages.com/badges/myaghobi-f3-captcha/health.svg)](https://phpackages.com/packages/myaghobi-f3-captcha)
```

###  Alternatives

[google/recaptcha

Client library for reCAPTCHA, a free service that protects websites from spam and abuse.

3.6k89.1M221](/packages/google-recaptcha)[mews/captcha

Laravel 5/6/7/8/9/10/11/12 Captcha Package

2.6k5.5M84](/packages/mews-captcha)[gregwar/captcha

Captcha generator

1.8k9.6M137](/packages/gregwar-captcha)[anhskohbo/no-captcha

No CAPTCHA reCAPTCHA For Laravel.

1.8k8.5M33](/packages/anhskohbo-no-captcha)[karser/karser-recaptcha3-bundle

Google ReCAPTCHA v3 for Symfony

1862.4M7](/packages/karser-karser-recaptcha3-bundle)[laminas/laminas-captcha

Generate and validate CAPTCHAs using Figlets, images, ReCaptcha, and more

2318.5M43](/packages/laminas-laminas-captcha)

PHPackages © 2026

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