PHPackages                             dezworksdk/dezwork-php-sdk - 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. dezworksdk/dezwork-php-sdk

ActiveLibrary

dezworksdk/dezwork-php-sdk
==========================

Sdk para integração com a API E-Branvo.

0.0.7(5y ago)08021MITPHPPHP ^7.0CI failing

Since Aug 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dezworksdk/dezwork-php-sdk)[ Packagist](https://packagist.org/packages/dezworksdk/dezwork-php-sdk)[ Docs](https://github.com/branvo/ebranvo-php-sdk)[ RSS](/packages/dezworksdk-dezwork-php-sdk/feed)WikiDiscussions develop Synced today

READMEChangelog (7)Dependencies (4)Versions (9)Used By (0)

dezwork-php-sdk
===============

[](#dezwork-php-sdk)

SDK para integração com a API E-Branvo Lojas Virtuais na linguagem PHP.

Sumário
-------

[](#sumário)

1. [Primeiros Passos](#primeiros-passos)
2. [Cliente](#cliente)
    1. [Inserir](#inserir)
    2. [Atualizar](#atualizar)
    3. [Consultar](#consultar)
    4. [Remover](#remover)
3. [Endereço](#endere%C3%A7o)
    1. [Inserir](#inserir-1)
    2. [Atualizar](#atualizar-1)
    3. [Consultar](#consultar-1)
    4. [Remover](#remover-1)

Primeiros Passos
----------------

[](#primeiros-passos)

Esse sdk foi criado para ser de fácil manipulação.

Comece instanciando um objeto EbranvoSdk, como no exemplo abaixo:

```
$ebranvo = new \Ebranvo\EbranvoSdk(
    new \Ebranvo\Store('TOKEN AQUI'),
    new \Ebranvo\Environment('live ou sandbox')
);
```

Pronto, você já tem acesso às informações dessa loja.

Para isso, basta realizar uma chamada à um dos métodos: **get, all, add ou del.**

Cliente
-------

[](#cliente)

### Inserir

[](#inserir)

```
$response = $ebranvo->addCustomer([
    'type'=> 'PF',
    'name'=> 'Nome do Cliente',
    'document'=> '000.000.000-00',
    'phone'=> '(00) 0000-0000',
    'mail'=> 'email@exemplo.com',
    'birthDate'=> '0000-00-00',
    'gender'=> 1,
    'active'=> true,
    'addresses'=> [
        [
            'street'=> 'Rua exemplo',
            'number'=> '0',
            'complement'=> 'Sala 00',
            'district'=> 'Centro',
            'city'=> 'São Paulo',
            'state'=> 'SP',
            'postcode'=> '00000-000',
            'responsibleName'=> 'Nome do Responsável',
            'type'=> 1,
            'active'=> true
        ]
    ]
]);

if ($response['success']) {
    echo $response['data'];
} else {
    echo $response['errorMessage'];
}
```

### Atualizar

[](#atualizar)

```
// A presença do id indica que é uma operação de atualização
$response = $ebranvo->addCustomer([
    'id' => 123
    'active' => false
]);

if ($response['success']) {
    echo $response['data'];
} else {
    echo $response['errorMessage'];
}
```

### Consultar

[](#consultar)

#### Consultar um registro

[](#consultar-um-registro)

```
$response = $ebranvo->getCustomer($id = 123);

if ($response['success']) {
    echo $response['data'];
} else {
    echo $response['errorMessage'];
}
```

#### Consultar vários registros

[](#consultar-vários-registros)

```
$response = $ebranvo->allCustomers($page = 1);

if ($response['success']) {
    echo $response['data'];
} else {
    echo $response['errorMessage'];
}
```

### Remover

[](#remover)

```
$response = $ebranvo->delCustomer($id = 123);

if ($response['success']) {
    echo $response['data'];
} else {
    echo $response['errorMessage'];
}
```

Endereço
--------

[](#endereço)

### Inserir

[](#inserir-1)

```
$response = $ebranvo->addAddress([
    'idClient' => 123,
    'street'=> 'Rua exemplo',
    'number'=> '0',
    'complement'=> 'Sala 00',
    'district'=> 'Centro',
    'city'=> 'São Paulo',
    'state'=> 'SP',
    'postcode'=> '00000-000',
    'responsibleName'=> 'Nome do Responsável',
    'type'=> 1,
    'active'=> true
]);

if ($response['success']) {
    echo $response['data'];
} else {
    echo $response['errorMessage'];
}
```

### Atualizar

[](#atualizar-1)

```
// A presença do id indica que é uma operação de atualização
$response = $ebranvo->addAddress([
    'id' => 321
    'active' => false
]);

if ($response['success']) {
    echo $response['data'];
} else {
    echo $response['errorMessage'];
}
```

### Consultar

[](#consultar-1)

#### Consultar um registro

[](#consultar-um-registro-1)

```
$response = $ebranvo->getAddress($id = 321);

if ($response['success']) {
    echo $response['data'];
} else {
    echo $response['errorMessage'];
}
```

#### Consultar vários registros

[](#consultar-vários-registros-1)

```
$response = $ebranvo->allAddresses($idCustomer = 123);

if ($response['success']) {
    echo $response['data'];
} else {
    echo $response['errorMessage'];
}
```

### Remover

[](#remover-1)

```
$response = $ebranvo->delAddress($id = 321);

if ($response['success']) {
    echo $response['data'];
} else {
    echo $response['errorMessage'];
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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

Every ~69 days

Recently: every ~103 days

Total

7

Last Release

2043d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/71788199?v=4)[Dezwork Digital SDK](/maintainers/dezworksdk)[@dezworksdk](https://github.com/dezworksdk)

---

Top Contributors

[![dezworksdk](https://avatars.githubusercontent.com/u/71788199?v=4)](https://github.com/dezworksdk "dezworksdk (6 commits)")[![HMachiavelli](https://avatars.githubusercontent.com/u/12431251?v=4)](https://github.com/HMachiavelli "HMachiavelli (4 commits)")

---

Tags

sdkIntegraçãobranvoebranvoe-branvo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dezworksdk-dezwork-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/dezworksdk-dezwork-php-sdk/health.svg)](https://phpackages.com/packages/dezworksdk-dezwork-php-sdk)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k511.3M2.2k](/packages/aws-aws-sdk-php)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[azure-oss/storage

Azure Blob Storage PHP SDK

37985.0k5](/packages/azure-oss-storage)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)

PHPackages © 2026

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