digitalleapagency / active-campaign
Laravel Package to manage your contacts in Active Campaign account, add/remove tags to contacts and manage events
dev-master
2021-07-06 17:42 UTC
This package is auto-updated.
Last update: 2025-07-07 01:39:41 UTC
README
Laravel integration for the Active Campaign package.
An open source package by Digital Leap Agency, code well, rock on!
Documentation
Follow below steps to install and implement active campaign package in your laravel project:
- Open Command-Prompt/terminal from your laravel project root folder.
- Run following command to install the package:
composer require digitalleapagency/active-campaign
- Once the package is installed completely, you need to copy the configuration file inside your config folder and register the ActiveCampaignServerProvider. To do so, run the following command:
php artisan activecampaign:install
- Once the dependencies are installed and the facades, migrations are registered via service provider, you need to run the migrations by running the command:
php artisan migrate
This will create all the necessary tables to store the active campaign contacts, tags and events. Make sure your laravel project is connected to a database.
- Voila! You are now ready to use this package's Facades in your project.
Below mentioned are Facades and the method definition:
-
use Contact;
- Contact::addContact(array $contact[firstName,lastName,email,phone])
- Contact::updateContact(array $contact[firstName,lastName,email,phone],$contactID)
- Contact::getContacts(array $query_parameters) - visit Active Campaign for query parameters
-
use Tag;
- Tag::addTag(array $tag[tag,description],$contactID)
- Tag::updateTag(array $tag[tag,description],$tagID,$contactID)
- Tag::removeTag($tagID,$contactID)
-
use Event;
- Event::addEvent(array $event[event_name])
- Event::trackEvent(array $event[event,eventdata,email])