Download the PHP package coyshdigital/craft-formie-beacon without Composer

On this page you can find all versions of the php package coyshdigital/craft-formie-beacon. 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 craft-formie-beacon

Formie Beacon CRM Integration

A Craft CMS plugin that adds Beacon CRM as a CRM integration for Formie, letting form submissions create or update records in your Beacon database.

📖 Read the documentation

Features

Requirements

The Beacon API work (reading your account schema, shaping values, unpacking Beacon's errors) is done by coyshdigital/beaconcrm-php, which Composer installs alongside the plugin. Use that library directly if you need to talk to Beacon from elsewhere in your project.

Installation

Setup

  1. In Beacon, go to Settings > API keys and create a key. It is shown once, so copy it immediately. Only an administrator can create one.
  2. Add the key to your .env:

  3. In Craft, go to Formie > Settings > CRM and add a Beacon integration.
  4. Set Account ID to $BEACON_ACCOUNT_ID and API Key to $BEACON_API_KEY. Your account ID is the number in your Beacon API URL: https://api.beaconcrm.org/v1/account/12345.
  5. Save, then hit Refresh to verify the connection.

Storing credentials as environment variables keeps the API key out of your project config and out of version control.

Per-form configuration

On a form, go to Integrations > Beacon and enable it. Then:

Use Opt-In Field if you only want to send data when a user consents, typically an Agree field.

How values are converted

Beacon expects specific shapes per field type, which the plugin handles for you via the shared beaconcrm-php library:

Beacon field type What gets sent
Person name An object. Each name part is a separate mapping row, and Full is derived if you only map the parts
Email [{ "email": "...", "is_primary": true }]
Phone [{ "number": "...", "is_primary": true }]
Drop-down An array, even for single-select fields
Record link An array of integer Beacon record IDs
Checkbox A JSON boolean
Currency { "value": 25.5 } in major units, using your account's default currency. Beacon silently discards bare numbers here
Number, percent, rating A JSON number

Empty values are skipped rather than sent, so a blank optional field on your form will not overwrite data already held in Beacon. 0 and false are real values and are sent.

Known limitations

Troubleshooting

Failed sends are logged with Beacon's own error message. Check Formie > Submissions > (a submission) > Integrations, or storage/logs/formie.log.

Documentation

Full documentation is at coysh.digital/plugins/craft-formie-beacon/docs.

License

MIT


All versions of craft-formie-beacon with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
coyshdigital/beaconcrm-php Version ^1.1
craftcms/cms Version ^5.0.0
verbb/formie Version ^3.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 coyshdigital/craft-formie-beacon contains the following files

Loading the files please wait ...