PHPackages                             dotit/sarbacane-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. dotit/sarbacane-bundle

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

dotit/sarbacane-bundle
======================

SarbacaneBundle is a Symfony 3.4 bundle for sarbacane

V1.0(5y ago)16MITPHPPHP &gt;=5.5.9

Since Jun 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wa7chiX07/sarbacane-bundle)[ Packagist](https://packagist.org/packages/dotit/sarbacane-bundle)[ Docs](https://github.com/wa7chiX07/sarbacane-bundle)[ RSS](/packages/dotit-sarbacane-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

sarbacaneBundle
===============

[](#sarbacanebundle)

sarbacaneBundle is a Symfony 3.4 bundle for sarbacane .

config.yml
----------

[](#configyml)

Use this line in config.yml file.

```
sarbacane:
    apiKey: '%apiKey%'
    accountId: '%accountId%'
```

parameters.yml
--------------

[](#parametersyml)

```
apiKey: [YOUR_APIKEY]
accountId: [YOUR_ACCOUNTID]
```

composer.json
-------------

[](#composerjson)

```
"autoload": {
        "psr-4": {
            "DotIt\\SarbacaneBundle\\": "[bundle source]",
            ......
        },

```

AppKernel.php
-------------

[](#appkernelphp)

```
$bundles = [
           .. ,
           .. ,
           new DotIt\SarbacaneBundle\SarbacaneBundle(),
        ];

```

Command
-------

[](#command)

```
in terminal execute these command

$ composer dump-autoload

**** For update database table and add bundle new table *****
$ ./bin/console doctrine:schema:update --force

```

Usage
-----

[](#usage)

```
/**** Create email new campaign *******/

$campaign = new Campaign();
$campaign->name='New Campaign';
$campaign->aliasFrom='Sender';
$campaign->subject='Object';
$campaign->emailFrom='examole@example.com';
$campaign->aliasReplyTo='sender';
$campaign->emailReplyTo='example@example.com';
$campaignID = CampaignManager::createCampaign($campaign);

/******ADD RECIPIENTS TO A CAMPAIGN*****/
$recipients =array(
            array('email' => 'recipient1.@example.com','phone' => '216xxxxxxxx'),
            array('email' => 'recipient2@example.com','phone' => '2162xxxxxxx')
        );
CampaignManager::campaignSetRecipients($campaignID,$recipients);

/******* SEND CAMPAIGN ********************/
CampaignManager::sendCampaign($campaignID);

/***** GET CAMPAIGNS *********************/

//$ limit and offset can be null
$campaigns = CampaignManager::getCampaigns($limit, $offset);

/********* SET A LIST TO CAMPAIGN ********/

CampaignManager::campaignSetList($campaignID,$listID);

/********* SET A MODEL TO CAMPAIGN ********/

CampaignManager::campaignSetModel($campagnID,$modelID);

/*****  CREATE NEW LIST ********/

$listID = ListManager::createList($name);

/****** ADD CONTACTS TO LIST *******/
$contacts= array(
            array('email' => 'contact1.@example.com','phone' => '216xxxxxxxx'),
            array('email' => 'contact2@example.com','phone' => '2162xxxxxxx')
        );
ListManager::addContacts($listID,$contacts);

/****** GET LIST ******************/

//$ limit and offset can be null
$lists = ListManager::getList($limit,$offset);

```

### License

[](#license)

SarbacaneBundle is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

company
-------

[](#company)

[DOTIT](http://www.dotit-corp.com/)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2159d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b8dc24fb9815b530e9b268f4e3cb5b58c7f0fba5025366b718954ce80811a05d?d=identicon)[wa7chiX07](/maintainers/wa7chiX07)

---

Top Contributors

[![wa7chiX07](https://avatars.githubusercontent.com/u/20270512?v=4)](https://github.com/wa7chiX07 "wa7chiX07 (23 commits)")

---

Tags

mailingsarbacane

### Embed Badge

![Health badge](/badges/dotit-sarbacane-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dotit-sarbacane-bundle/health.svg)](https://phpackages.com/packages/dotit-sarbacane-bundle)
```

###  Alternatives

[contributte/mailing

Sending emails with pleasure and prepared templates.

16961.0k2](/packages/contributte-mailing)[putyourlightson/craft-campaign

Send and manage email campaigns, contacts and mailing lists.

6435.0k1](/packages/putyourlightson-craft-campaign)[mediaessenz/mail

Powerful newsletter system for TYPO3

119.1k2](/packages/mediaessenz-mail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
