New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

keepsuit/laravel-zoho-campaigns

Manage Zoho Campaigns from Laravel
13,185 2

Larablocks Analysis

keepsuit/laravel-zoho-campaigns works with Laravel 11, 12 and 13 (latest release 2.1.0, Mar 18, 2026).

Laravel 9 and 10 in earlier releases.

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Mar 18, 2026)
  • 504 downloads a month (needs 10,000)
  • 2 GitHub stars (needs 100)

State

Maintained
  • Last stable release: Mar 18, 2026.
  • 2 releases in the last 12 months.
  • First released: Oct 14, 2022.
  • Monthly downloads: 504.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require keepsuit/laravel-zoho-campaigns
Latest Version:2.1.0
PHP:^8.2
Laravel:11 · 12 · 13
Older releases:9 · 10
License:MIT
Last Updated:Jun 22, 2026
Links: GitHub  ·  Packagist
Maintainer: cappuc

Manage Zoho Campaigns from Laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package provides an easy way to interact with the Zoho Campaigns API.

Right now only the following features are supported:

  • Subscribe a contact to a list
  • Unsubscribe a contact from a list
  • Get subscribers from a list
  • Get subscribers count of a list

Installation

You can install the package via composer:

composer require keepsuit/laravel-zoho-campaigns

You can publish and run the migrations with:

php artisan vendor:publish --tag="campaigns-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="campaigns-config"

This is the contents of the published config file:

return [
    /**
     * The driver to use to interact with Zoho Campaigns API.
     * You may use "log" or "null" to prevent calling the
     * API directly from your environment.
     */
    'driver' => env('CAMPAIGNS_DRIVER', 'api'),

    /**
     * Zoho datacenter region to use.
     * Available regions: us, eu, in, au, jp, cn
     */
    'region' => env('CAMPAIGNS_REGION'),

    /**
     * Zoho api client.
     * Run php artisan campaigns:setup and follow the instructions to generate an api client.
     */
    'client_id' => env('CAMPAIGNS_CLIENT_ID'),
    'client_secret' => env('CAMPAIGNS_CLIENT_SECRET'),

    /**
     * The listName to use when no listName has been specified in a method.
     */
    'defaultListName' => 'subscribers',

    /**
     * Here you can define properties of the lists.
     */
    'lists' => [

        /**
         * This key is used to identify this list. It can be used
         * as the listName parameter provided in the various methods.
         *
         * You can set it to any string you want and you can add
         * as many lists as you want.
         */
        'subscribers' => [

            /**
             * A Zoho campaigns list key.
             * https://www.zoho.com/campaigns/help/developers/list-management.html
             * You can find this value from Zoho campaigns dashboard under:
             * Contacts > Manage Lists > "Your list" > Setup
             */
            'listKey' => env('CAMPAIGNS_LIST_KEY'),

        ],
    ],
];

First time setup:

This should be done also on production because tokens are saved in the database. Run the following command and follow the instructions:

php artisan campaigns:setup

Usage

Subscribe a contact to a list

use Keepsuit\Campaigns\Facades\Campaigns;

Campaigns::subscribe('user_a@example.com');

// with additional details: 
Campaigns::subscribe('user_a@example.com', contactInfo: [
    'First Name' => 'John',
    'Last Name' => 'Doe',
]);

// on a specific list:
Campaigns::subscribe('user_a@example.com', contactInfo: [], list: 'listName');

// on a specific list via list key
Campaigns::subscribe('user_a@example.com', contactInfo: [], list: '3z9d17e6b4f3a2c5d8a1bc9478df32561e3ab4d2c4fc7a5e9c0db8e34176ca92a0');

// if user previously unsubscribed from the list, you can resubscribe them (it support the same parameters as subscribe):
Campaigns::resubscribe('user_a@example.com');

Unsubscribe a contact from a list

use Keepsuit\Campaigns\Facades\Campaigns;

Campaigns::unsubscribe('user_a@example.com');

// from a specific list:
Campaigns::unsubscribe('user_a@example.com', list: 'listName');

// on a specific list via list key
Campaigns::unsubscribe('user_a@example.com', list: '3z9d17e6b4f3a2c5d8a1bc9478df32561e3ab4d2c4fc7a5e9c0db8e34176ca92a0');

Get subscribers from a list

use Keepsuit\Campaigns\Facades\Campaigns;

// This method returns a LazyCollection and will fetch additional pages when needed.
// You can filter by status and sort the results.
Campaigns::subscribers(status: 'active', sort: 'desc');

// from a specific list:
Campaigns::subscribers(list: 'listName');

// on a specific list via list key
Campaigns::subscribers(list: '3z9d17e6b4f3a2c5d8a1bc9478df32561e3ab4d2c4fc7a5e9c0db8e34176ca92a0');

Get subscribers count of a list

use Keepsuit\Campaigns\Facades\Campaigns;

// You can filter by status.
Campaigns::subscribersCount(status: 'active');

// from a specific list:
Campaigns::subscribersCount(list: 'listName');

// on a specific list via list key
Campaigns::subscribersCount(list: '3z9d17e6b4f3a2c5d8a1bc9478df32561e3ab4d2c4fc7a5e9c0db8e34176ca92a0');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

1,444,909 192
keepsuit/laravel-temporal

Laravel temporal.io

247,246 56
keepsuit/laravel-liquid

Liquid template engine for Laravel

82,844 11
keepsuit/laravel-cookie-solution

Make your site comply with EU cookie law

12,180 4
keepsuit/laravel-threat-blocker

Block threat requests to your Laravel application

2,818 0

Version History

Version Released PHP Laravel License
2.1.0 ^8.2 ^11.0 || ^12.0 || ^13.0 MIT
2.0.0 ^8.2 ^11.0 || ^12.0 MIT
1.1.0 ^8.2 ^11.0 || ^12.0 MIT
1.0.0 ^8.2 ^11.0 || ^12.0 MIT
0.4.0 ^8.1 ^10.0 || ^11.0 || ^12.0 MIT