mymediamagnet / followupboss-api-php
PHP Interface for FollowUpBoss.
Requires
- php: >=7.1.0
- guzzlehttp/guzzle: *
- nesbot/carbon: ^1.22
- vlucas/phpdotenv: ^2.4
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is auto-updated.
Last update: 2025-03-09 16:34:53 UTC
README
PHP Interface for working with the Follow Up Boss API
How To Use
First, download the package
composer require homeup/followupboss-php-api
Then, add a couple lines to your .env file. If you don't have one, create and gitignore it
FUB_KEY=my_fub_key
FUB_SOURCE=website_url_or_name
Then you can simply use any of the following commands to send data to FollowUp Boss.
To get lead data from FUB:
$people = new HomeUp\FollowUpBoss\People(); $person = $people->find("test@example.com");
To send in lead data:
$events = new HomeUp\FollowUpBoss\Events(); $events->saveLead([ 'firstName', 'John', 'lastName' => 'Smith', 'emails' => [['value' => 'johnsmith@example.com']], 'phones' => [['value' => '555-555-5555']], 'tags' => ['Free Market Report'] ]);
You can also send in the inquiry event (example data: https://docs.followupboss.com/reference#events-post)
$events->inquiry( ['emails' => [['value' => 'johnsmith@example.com']]], // Lead data "The main body of the inquiry goes here", // Body of inquiry "Enter Type of Inquiry", // Example: "Property Inquiry" or "Registration" [optional_property_data], [optional_property_search_data], [optional_campaign_data] ]);
You can also send in page and listing views like so (example data: https://docs.followupboss.com/reference#events-post)
$events->listingView( ['emails' => [['value' => 'johnsmith@example.com']]], // Lead data [property_data], ]); $events->pageView( ['emails' => [['value' => 'johnsmith@example.com']]], // Lead data "Title of the Page", "http://example.com/about", // URL of the page );
You can add notes to leads
$notes = new HomeUp\FollowUpBoss\Notes(); $notes->add(id_of_person, "This is the subject of the note", "This is the body of the note");
You can assign an action plan to a lead and retrieve a list of all action plans
$ap = new HomeUp\FollowUpBoss\ActionPlans(); $plans = $ap->get()->actionPlans; $ap->assign(id_of_person, $plans[0]->id);