PHPackages                             aldoanizio/makorecaptcha - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. aldoanizio/makorecaptcha

ActiveMako-package[Authentication &amp; Authorization](/categories/authentication)

aldoanizio/makorecaptcha
========================

Google reCaptcha Package for Mako Framework 4.0

018PHP

Since Jul 29Pushed 11y ago1 watchersCompare

[ Source](https://github.com/aldoanizio/makorecaptcha)[ Packagist](https://packagist.org/packages/aldoanizio/makorecaptcha)[ RSS](/packages/aldoanizio-makorecaptcha/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Mako ReCaptcha
==============

[](#mako-recaptcha)

Google reCaptcha Package for Mako Framework 4.0.

Install
-------

[](#install)

Use composer to install. Simply add package to your project.

```
composer require aldoanizio/makorecaptcha:*
```

So now you can update your project and install package with a single command.

```
composer update
```

### Register Service

[](#register-service)

After installing you'll have to register a new service in your `app/config/application.php` file.

```
    /**
     * Services to register in the dependecy injection container.
     */

    'services' =>
    [
        ....
        'makorecaptcha\service\ReCaptchaService',
    ],
```

### Configuring

[](#configuring)

There are two ways to configure your package. The first is editing config file directly in packages folder: `app/packages/makorecaptcha/config/config.php` and input the necessary information.

If you like you can copy the package's config file `app/packages/makorecaptcha/config/config.php` into `app/config/packages/makorecaptcha` folder and the application will load that file instead of the one located in the package. This makes it possible to update the package while keeping your custom settings.

Assign variable template
------------------------

[](#assign-variable-template)

Before use make use of captcha is needed to assign the makoReCaptcha instance to a new variable in template views.

```
$this->view->assign('makoReCaptcha', $this->makoReCaptcha);
```

Display Captcha Form
--------------------

[](#display-captcha-form)

To make the reCAPTCHA widget appear when your page loads, simply call the `html` method in your

 element.```

```

Validate submited data
----------------------

[](#validate-submited-data)

To verify submited data you'll need to use the `check` method parsing 3 parameters.

The first parameter is the requested address ip.

The second parameter is the auto-generated `recaptcha_challenge_field` field.

The third parameter is the `recaptcha_response_field` wich contains the input data.

```
$captcha = $this->makoReCaptcha->check($this->request->server('REMOTE_ADDR'), $this->request->post('recaptcha_challenge_field'), $this->request->post('recaptcha_response_field'));
```

Now you need to check if the input data is valid using the `isValid` method.

```
if($captcha->isValid())
{
    // Lets Go!!
}
else
{
    // Wow, hang on dude!!
}
```

You can also use the `isInvalid` method.

```
if($captcha->isInvalid())
{
    // Wow, hang on dude!!
}
else
{
    // Lets Go!!
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bbb75946e7d75134253ef101e005e3b645577ef13c754d9ca2264f91377359e?d=identicon)[aldoanizio](/maintainers/aldoanizio)

### Embed Badge

![Health badge](/badges/aldoanizio-makorecaptcha/health.svg)

```
[![Health](https://phpackages.com/badges/aldoanizio-makorecaptcha/health.svg)](https://phpackages.com/packages/aldoanizio-makorecaptcha)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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