Download the PHP package isapp/statamic-honeypot without Composer

On this page you can find all versions of the php package isapp/statamic-honeypot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statamic-honeypot

Honeypot Spam Protection

⚠️ Important — Commercial addon
This addon is paid software. You may use it for free during development, but you must purchase a valid license from the Statamic Marketplace before deploying it to a production environment.

📌 Statamic version
This documentation is for Statamic 6.
For Statamic 5, see the 5.x branch.

Introduction

Honeypot Spam Protection is a commercial Statamic addon that provides a native Statamic integration layer for the open-source package spatie/laravel-honeypot.

This addon does not replace or modify Spatie’s package. It connects Statamic’s form system to the existing honeypot and time-based spam protection logic provided by Spatie and exposes it in a way that fits naturally into Statamic projects.


What this addon does

This addon makes it possible to use spatie/laravel-honeypot inside Statamic without having to wire it up manually in Laravel.

It provides:

The spam detection logic itself is entirely provided by Spatie’s package.
This addon is responsible only for the Statamic integration layer.


How it works (high level)

Internally, this addon installs and uses the Composer package:

Spatie’s package provides:

This Statamic addon:

No changes are made to Spatie’s code, and no part of their package is forked or modified.


Upgrade guide (Statamic 5 → 6)

If you are upgrading from Statamic 5 to Statamic 6, note the following changes in this addon:

If you are staying on Statamic 5, use the documentation on the 5.x branch.


Installation

Install the addon via Composer:

After installation, the Spatie Honeypot package will be available to your Statamic application through this addon.


Configuration

This addon uses the standard configuration file provided by spatie/laravel-honeypot.

All enable/disable behavior is controlled by Spatie's configuration. When honeypot protection is enabled in Spatie's config, the Spatie honeypot middleware is active. When it is disabled, no honeypot checks are performed. This addon does not introduce a separate on/off switch.

All configuration options (field names, time limits, enabled/disabled state, etc.) are defined and documented by Spatie and remain unchanged.

You can publish and adjust the configuration file as you would when using spatie/laravel-honeypot directly in Laravel.


Using it in Statamic

This addon integrates the Spatie honeypot system into Statamic’s form system.

You do not need to use Statamic’s built-in honeypot or spam protection features.
This addon provides its own integration layer based on Spatie’s package.

Antlers

To enable honeypot protection on a Statamic form, include the tag inside your form:

There is no automatic injection. You must add the tag to each form you want to protect.

Alpine.js

If you are using Statamic's Alpine-driven form features (via Statamic's js form driver), follow the same approach as in the Statamic documentation, but use js="honeypot" instead of js="alpine" on your form tag.

Example:

Precognition

If you are using Statamic Precognition with Antlers forms, use js="honeypot_precognition" on the form tag:

Blade

Simple Blade forms (Spatie)

For simple Blade forms (outside of Statamic's form tags), you can use the default Blade component or directive provided by spatie/laravel-honeypot (exactly as shown in Spatie's documentation):

Alternatively:

Alpine.js + Statamic forms (Blade templates)

If you are rendering Statamic forms inside Blade templates and you are using Statamic's Alpine-driven form features (via js="honeypot" on the form tag), use the Statamic tag component provided by this addon.

Important: in this Statamic + Alpine scenario, use <s:isapp:honeypot /> (this addon), not Spatie’s Blade component/directive.

Precognition

When using Statamic Precognition in Blade templates, use js="honeypot_precognition" on the form tag:


How spam is detected

All spam detection is handled by spatie/laravel-honeypot.

That includes:

This addon does not implement its own spam logic. It simply ensures that Statamic form submissions pass through Spatie’s honeypot validation.


Compatibility

This addon is designed specifically for Statamic and integrates with its form handling system.

It does not provide honeypot protection for generic Laravel Blade forms or third-party form builders.


Credits & Licensing

This addon uses the open-source package:

spatie/laravel-honeypot
Copyright © Spatie
Licensed under the MIT License

Spatie’s package remains fully open-source and is distributed under its original license.

This Statamic addon is a commercial product that provides a Statamic-specific integration layer on top of Spatie’s open-source package. No part of Spatie’s code is sold, relicensed, or restricted.


Support

Support for this Statamic addon is provided by ISAPP.

For issues related to the underlying honeypot logic, please refer to the Spatie package and its documentation.


All versions of statamic-honeypot with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
statamic/cms Version ^6.0
spatie/laravel-honeypot Version ^4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package isapp/statamic-honeypot contains the following files

Loading the files please wait ...