Download the PHP package xavicabot/filament-activecampaign without Composer

On this page you can find all versions of the php package xavicabot/filament-activecampaign. 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 filament-activecampaign

Filament ActiveCampaign

Advanced ActiveCampaign integration for Laravel and FilamentPHP 3, focused on developer productivity.

This package allows you to:


πŸ”§ Installation

Install via Composer:

Publish config and migrations:


βš™οΈ Configuration

Add your ActiveCampaign credentials to .env:

Published config file:


πŸ”„ Syncing Metadata (Lists, Tags, Fields)

This package stores ActiveCampaign metadata locally:

Sync everything

Or individually:

From Filament

The Automations resource includes a "Sync metadata" button to refresh lists/tags/fields without CLI access.


🏷️ Creating Tags

You can create new tags either from the Filament UI or programmatically from your code.

From Filament UI

  1. Navigate to ActiveCampaign Tags in Filament
  2. Click the "Create Tag" button in the header
  3. Fill in the form:
    • Tag Name (required) - The name as it will appear in ActiveCampaign
    • Description (optional) - Internal reference note (only used when creating new tags)
  4. Submit

Smart behavior: If the tag name already exists (locally or in ActiveCampaign), it will be retrieved instead of creating a duplicate. No errors, just works!

From Code

Use the ActiveCampaign facade to create or retrieve tags programmatically:

Recommended: getOrCreateTag() (Safe, no duplicates)

What happens with getOrCreateTag():

  1. Searches local database first (case-insensitive)
  2. If not found locally, searches ActiveCampaign API
  3. If found in AC but not locally, syncs it to local database
  4. If not found anywhere, creates it in ActiveCampaign and stores locally
  5. Cache automatically updated for instant use

Benefits:

Alternative: createTag() (Always creates new)

Warning: This method will fail if the tag already exists in ActiveCampaign.

Note: All tags are created with type contact (the standard type for 99% of use cases).


🧷 Managing Contact Tags & Lookup

Use the ActiveCampaign facade to manage tags on a contact and to look up existing contacts.

Tag names are resolved to ActiveCampaign IDs using the same cached lookup as addTagToContact β€” make sure the tag has been synced (php artisan activecampaign:sync-metadata --tags) or created beforehand.


⚑ Single-Call Field Sync

When an automation has multiple fields and/or system_fields, the package now sends them in a single POST /contact/sync request (plus the initial contact resolution call) instead of one HTTP call per field. No code change is required on the consumer side β€” existing automations benefit automatically.

Behavioural note: a custom field whose template references {user.*} or {ctx.*} and resolves to an empty value is now omitted from the payload (it used to be sent as an empty string). This mirrors how system_fields already behaved and prevents accidental overwrites with blank values.


πŸ“¦ Filament Resources Included

Resource Purpose
Automations Create automations triggered by custom events
Automation Logs Inspect execution results, payloads, warnings, errors
Lists Read-only view of AC lists
Tags View and create AC tags
Fields Read-only view of AC custom fields

⚑ Creating Automations

An Automation links:

Actions available:

Example automation:

Setting Value
Event user.registered
List β€œMain List”
Tags Customer
Custom Fields LANGUAGE = {user.profile.language}
System Fields firstName = {user.name}

🧠 Triggering Automations from Your Laravel App

Use the facade:

With context:

With another model:

Trigger without a registered user (by email)

You can also trigger automations for contacts that are not users in your system by providing an email and optional contact data. The contact will be created/synced in ActiveCampaign if it does not exist.

Basic usage:

With optional contact data and context:

Notes:


πŸ”€ Async (Queue) Support

By default, automations run synchronously. You can enable async execution to dispatch triggers to a Laravel queue.

Configuration

In your published config/activecampaign.php:

Or use environment variables:

Usage

Option 1: Global async via config

Set async => true in config. All trigger() and triggerWithEmail() calls will automatically dispatch to the queue:

Option 2: Explicit async methods

Use triggerAsync() or triggerWithEmailAsync() to always dispatch to the queue, regardless of the async config value:

How it works

Retrocompatibility

With async => false (default), the package behaves exactly as before β€” all triggers execute synchronously. No changes needed in existing code.


🧩 Template Engine

Templates support:

Global

User data (supports relations)

Context data

If a value is missing β†’ placeholder is preserved.
Objects/arrays β†’ JSON encoded.


πŸ” Preview Mode (For Testing Automations)

From Filament, you can preview an automation:

Perfect for debugging before going live.


πŸ“ Execution Logs

Every execution is stored in:

Includes:

Filament UI offers:


πŸš€ Examples β€” Automation on User Registration

1. Create automation in Filament:

2. Trigger from your application:


❀️ Contributing

PRs are welcome, especially for:


πŸ“„ License

MIT License.


All versions of filament-activecampaign with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.28|^12.0
filament/filament Version ^4.0|^5.0
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 xavicabot/filament-activecampaign contains the following files

Loading the files please wait ...