PHPackages                             kilte/silex-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kilte/silex-captcha

Abandoned → [amstaffix/silex-captcha](/?search=amstaffix%2Fsilex-captcha)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

kilte/silex-captcha
===================

Gregwar/Captcha service provider for Silex.

1.0.2(9y ago)12.6k2MITPHPPHP &gt;=5.3.3

Since Jan 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/vermillion-php/silex-captcha)[ Packagist](https://packagist.org/packages/kilte/silex-captcha)[ RSS](/packages/kilte-silex-captcha/feed)WikiDiscussions master Synced yesterday

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

CaptchaServiceProvider
======================

[](#captchaserviceprovider)

[Gregwar/Captcha](https://github.com/Gregwar/Captcha/) service provider for [Silex](http://silex.sensiolabs.org)

[![Downloads](https://camo.githubusercontent.com/f4997163292cb4aa4dca3c8ec6d04f4215bdb6aafef3deca4316403ce5ebc062/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616d737461666669782f73696c65782d636170746368612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amstaffix/silex-captcha)[![License](https://camo.githubusercontent.com/b8b434a144e5109976b9448167ef6a240cf251dbcc737599d20a446cc0896e8f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616d737461666669782f73696c65782d636170746368612e7376673f7374796c653d666c61742d737175617265)](http://opensource.org/licenses/MIT)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.3.3
- [`SessionServiceProvider`](http://silex.sensiolabs.org/doc/providers/session.html)
- [`UrlGeneratorServiceProvider`](http://silex.sensiolabs.org/doc/providers/url_generator.html) (Optional)

Usage
-----

[](#usage)

```
use Kilte\Silex\Captcha\CaptchaServiceProvider;
use Silex\Provider\SessionServiceProvider;
use Silex\Provider\UrlGeneratorServiceProvider;

$app = new Silex\Application();
$captcha = new CaptchaServiceProvider();
$app->register(new SessionServiceProvider)
    ->register(new UrlGeneratorServiceProvider)
    ->register($captcha)
    ->mount('/', $captcha);
$app->run();
```

### Options

[](#options)

KeyDefaultTypeDescriptionsession\_keygw\_captchastringName of the session keyroute\_namegregwar.captchastringName of the routephrase\_buildernullnull or Gregwar\\Captcha\\CaptchaBuilderInterfacePhrase builder (will be used if phrase is null)phrasenullstring or nullOverrides the phrasewidth150intImage width in the pixelsheight40intImage height in the pixelsfontnullstring or nullPath to the fontfingerprintnullboolean*I don't know what it does, see sources*quality90intImage qualitydistortiontruebooleanEnable or disable the distortionbackgroundnullnull or array(r, g, b)Force background color (this will disable many effects and is not recommended)interpolationtruebooleanEnable or disable the interpolation, disabling it will be quicker but the images will look uglier- `captcha.builder` - Instance of `Gregwar\Captcha\CaptchaBuilder`.
- `captcha.test` - Performs check user input. (Instance of the `\Closure`)
- `captcha.image_url` - Returns absolute URL to the image. (Instance of the `\Closure`)

Tests
-----

[](#tests)

```
$ composer install
$ vendor/bin/phpunit
```

Changelog
---------

[](#changelog)

### 1.0.1 \[31.08.2014\]

[](#101-31082014)

- Added unit tests
- PSR-4 autoloading
- Other small changes

### 1.0.0 \[02.01.2014\]

[](#100-02012014)

- First release

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

[](#contributing)

- Fork it
- Create your feature branch (git checkout -b awesome-feature)
- Make your changes
- Write/update tests, if necessary
- Update README.md, if necessary
- Push your branch to origin (git push origin awesome-feature)
- Send pull request
- ???
- PROFIT!!!

Do not forget merge upstream changes:

```
git remote add upstream https://github.com/AmsTaFFix/silex-captcha
git checkout master
git pull upstream
git push origin master

```

Now you can to remove your branch:

```
git branch -d awesome-feature
git push origin :awesome-feature

```

LICENSE
=======

[](#license)

The MIT LICENSE (MIT)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3598d ago

### Community

Maintainers

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

---

Top Contributors

[![AmsTaFFix](https://avatars.githubusercontent.com/u/3091599?v=4)](https://github.com/AmsTaFFix "AmsTaFFix (3 commits)")

---

Tags

captchasilexCaptchaServiceProvider

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kilte-silex-captcha/health.svg)

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

###  Alternatives

[igorw/config-service-provider

A config ServiceProvider for Silex with support for php, json and yaml.

215636.5k13](/packages/igorw-config-service-provider)[bonecms/laravel-captcha

Captcha integration for Laravel

76138.4k](/packages/bonecms-laravel-captcha)[pixelopen/cloudflare-turnstile-bundle

A simple package to help integrate Cloudflare Turnstile on Symfony.

31205.8k3](/packages/pixelopen-cloudflare-turnstile-bundle)[webman/captcha

Captcha generator

1484.2k25](/packages/webman-captcha)[haruncpi/laravel-simple-captcha

A laravel simple captcha package

1128.3k](/packages/haruncpi-laravel-simple-captcha)[lubosdz/yii2-captcha-extended

Extended captcha code generator for Yii2 framework with configurable obfuscation level

1117.4k](/packages/lubosdz-yii2-captcha-extended)

PHPackages © 2026

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