PHP code example of label84 / laravel-active-campaign
1. Go to this page and download the library: Download label84/laravel-active-campaign library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
label84 / laravel-active-campaign example snippets
use Label84\ActiveCampaign\Facades\ActiveCampaign;
// Usage
$contact = ActiveCampaign::contacts()->get(1);
use Label84\ActiveCampaign\ActiveCampaign;
// Usage
$contact = resolve(ActiveCampaign::class)->contacts()->get(1);
use Label84\ActiveCampaign\ActiveCampaign;
class ContactController extends Controller
{
public function __construct(private readonly ActiveCampaign $activeCampaign) { }
// Usage
$this->activeCampaign->contacts()->get(1);
}