PHPackages                             coercive/ghostfield - 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. [Security](/categories/security)
4. /
5. coercive/ghostfield

ActiveLibrary[Security](/categories/security)

coercive/ghostfield
===================

Coercive Security GhostField - Provides a multi-layered anti-bot protection system for HTML forms

0.0.1(5mo ago)02MITPHPPHP &gt;=7.4

Since Sep 3Pushed 5mo agoCompare

[ Source](https://github.com/Coercive/GhostField)[ Packagist](https://packagist.org/packages/coercive/ghostfield)[ RSS](/packages/coercive-ghostfield/feed)WikiDiscussions main Synced 1mo ago

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

GhostField
==========

[](#ghostfield)

Provides a multi-layered anti-bot protection system for HTML forms

Get
---

[](#get)

```
composer require coercive/ghostfield

```

Basics
------

[](#basics)

Common part (send/receipt)

```
use  Coercive\Security\GhostField\GhostField;

# Load class, set key
$GhostField = new GhostField('123456abcdef');

# Activate handshake JS (optional)
$GhostField->setSigil();

# Create honeypot fields (empty = automatic)
$GhostField->createFields();

# Add your regular fields
$GhostField->createFields([
    'email',
    'password',
]);
```

Send part

```
?>

        Email :
