Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ecircle Bundle Laravel Package

bigfoot/ecircle-bundle

View on GitHub
Deep Wiki
Context7

EcircleBundle

EcircleBundle is part of the framework BigFoot created by C2IS.

Installation

Add 'bigfoot/ecircle-bundle' into your composer.json file in the 'require' section:

// composer.json
"require": {
    ...
    ...
    "bigfoot/ecircle-bundle": "dev-master",
}

Update your project:

php composer.phar update

Enter your credentials in the config file:

# app/config.yml
...
...
parameters:
    bigfoot_ecircle:
        client:
            wsdl_url: 'http://webservices.ecircle-ag.com/soap/ecm.wsdl'
            request:
                account_1:
                    realm: 'http://your-ecircle-url.com'
                    user: 'User'
                    passwd: 'Password'

Create a class file into the directory Options with the name of the E-circle method followed by 'Options':

// src/Bigfoot/Bundle/EcircleBundle/Options/SubscribeMemberByEmailOptions.php

namespace Bigfoot\Bundle\EcircleBundle\Options;

class subscribeMemberByEmailOptions
{
    public $email;
    public $groupId;
    public $session;
    public $sendMessage = false;


}

The parameters must be the same as the Ecircle method.

Create a new method in the service 'bigfoot_ecircle.client':

// src/Bigfoot/Bundle/EcircleBundle/Services/BigfootEcircleClient.php
public function subscribeMemberByEmail($email,$groupId)
{

    if (!$this->sessionId) {
        throw new Exception('Client no connected');
    }

    $subscribeMemberByEmailOptions = $this->options('SubscribeMemberByEmail');

    $subscribeMemberByEmailOptions->email   = $email;
    $subscribeMemberByEmailOptions->session = $this->sessionId;
    $subscribeMemberByEmailOptions->groupId = $groupId;

    $result = $this->client->subscribeMemberByEmail($subscribeMemberByEmailOptions);

    return $result;
}

Usage

Into an action method:

// Controller/DefaultController.php
$client = $this->get('bigfoot_ecircle.client')->connect('account_1');
$retour = $client->subscribeMemberByEmail('[email protected]','99');
$client->disconnect();
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table