Download the PHP package bentonow/bento-statamic-sdk without Composer
On this page you can find all versions of the php package bentonow/bento-statamic-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bentonow/bento-statamic-sdk
More information about bentonow/bento-statamic-sdk
Files in bentonow/bento-statamic-sdk
Package bento-statamic-sdk
Short Description Bento addon for Statamic, enabling you to easily integrate Bento with your Statamic site
License MIT
Homepage https://github.com/bentonow/bento-statamic-sdk
Informations about the package bento-statamic-sdk
Bento Statamic Addon

[!TIP] Need help? Join our Discord or email [email protected] for personalized support.
The Bento Statamic Addon makes it quick and easy to send emails and track events in your Statamic applications. We provide powerful and customizable APIs that can be used out-of-the-box to manage subscribers, track events, and send transactional emails through your Statamic Control Panel.
Get started with our 📚 integration guides, or 📘 browse the SDK reference.
Features
- Statamic Control Panel Integration: Configure Bento directly from your Statamic CP
- Laravel Mail Integration: Seamlessly integrate with Laravel's mail system to send transactional emails via Bento
- Event Tracking: Create and manage custom events directly from the CP
- Form Integration: Associate Bento events with Statamic forms for automated tracking
- Subscriber Management: Import and manage subscribers directly from your Statamic site
- Author Management: Easily configure email senders through the CP interface
- Test Email Functionality: Send test emails to verify your configuration
- Frontend Tracking: Optional automatic injection of Bento's tracking script
- User Sync: Automatic subscriber creation when new users register
Requirements
- PHP 8.0+
- Statamic 5.0+
- Laravel 10.0+
- Bento API Keys
Installation
-
Install the package via Composer:
- Publish the configuration file and assets:
Configuration
-
Access the Bento configuration page in your Statamic Control Panel under Tools > Bento
-
Enter your Bento credentials:
- Site UUID
- Publishable Key
- Secret Key
You can find these at app.bentonow.com/account/teams
-
Configure your email settings:
- Select an author from your Bento account
- Send a test email to verify your configuration
- Alternatively, you can configure Bento through your
.env
file:
Advanced Features
User Registration Tracking
Control automatic user registration tracking in Bento:
- Enable/disable automatic subscriber creation when new users register
- Automatically splits full names into first and last names
- Syncs email and basic user information
- Configure through Advanced Settings in the CP
User Synchronization Tags
When automatic user synchronization is enabled, you can configure default tags that will be automatically applied to new users when they are synchronized with Bento:
- Choose from your existing Bento tags in the Advanced Settings
- Add multiple tags that will be applied to all new users
- Tags are stored consistently whether using database or file-based storage
- Easily manage tags through the Control Panel interface
- Remove tags with a single click
- Changes take effect immediately for new user registrations
Configuration Steps:
- Navigate to Tools > Bento > Advanced Settings
- Enable "Automatic User Sync"
- Under the sync settings, use the tag selector to add default tags
- Selected tags will automatically be applied to all new user registrations
Example Usage:
If you've selected tags like "new-user" and "needs-onboarding", when a new user registers:
- A subscriber is created in Bento
- The user's name is split into first and last name
- Email and basic user information is synced
- Both "new-user" and "needs-onboarding" tags are automatically applied
This feature allows you to automatically segment new users without any additional configuration.
Frontend Tracking Script
Manage Bento's JavaScript tracking integration:
- Toggle automatic injection of Bento's tracking script
- Tracks visitor behavior and custom events
- Automatically adds tracking code to all frontend pages
- No manual code insertion required
Custom Events Management
Create and manage custom events for Bento automation:
- Define custom event names through the CP interface
- Use events in Bento's advanced flows and email automations
- Track events across your Statamic site
- Manage events with an intuitive UI
Form Event Integration
Connect Statamic forms with Bento events:
- Associate any Statamic form with a Bento event
- Automatically triggers Bento events on form submission
- Sends form data as event properties
- Perfect for triggering automated workflows
- Configure through the Form Events Manager in Advanced Settings
Example form event workflow:
- Create a custom event in the CP (e.g., "Newsletter Signup")
- Associate the event with a Statamic form
- When the form is submitted:
- Event is automatically triggered in Bento
- Form data is sent as event properties
- Triggers any associated Bento automations
Automatic Features
User Registration Tracking
The addon automatically tracks new user registrations in Bento:
- Creates a subscriber when a new user registers
- Splits full names into first and last names
- Syncs email and basic user information
Email Integration
Once configured, the addon:
- Handles transactional emails through Bento
- Uses your configured Bento authors as email senders
Things to Know
-
Email Limitations:
- Bento does not support email attachments
- No-reply sender addresses are not supported
-
Rate Limits:
- The Bento Transactional Email API is designed for low-volume emails
- Use for password resets, form notifications, etc.
- Not suitable for newsletter or bulk email sending
-
Author Configuration:
- You must use an authorized Bento author as your sender address
- Authors can be configured through the CP interface
- Environment Handling:
- Configuration changes update your
.env
file - Cache is automatically cleared after configuration updates
- Runtime configuration is updated immediately
- Configuration changes update your
Contributing
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch
- Make your changes
- Run the tests
- Submit a pull request
For major changes, please open an issue first to discuss what you would like to change.
License
The Bento Statamic Addon is open-sourced software licensed under the MIT license.