Weave Code
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('example@email.com','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.
babenkoivan/elastic-client
innmind/static-analysis
innmind/coding-standard
datacore/hub-sdk
alengo/sulu-http-cache-bundle
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
imbo/imbo-coding-standard
visualbuilder/filament-lottie
servicioslineaonce/starter-kit
atomcoder/laravel-reorderable
irajul/filament-shadcn-theme
agtp/agtp-php
agtp/mod-php
centraldesktop/protobuf-php