PHPackages                             brunopazz/zoop-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. brunopazz/zoop-sdk

ActiveLibrary

brunopazz/zoop-sdk
==================

SDK da plataforma digital da ZOOP

v1.2.2(4y ago)24171MITPHPPHP &gt;=7

Since Jun 8Pushed 4y agoCompare

[ Source](https://github.com/brunopazz/Zoop)[ Packagist](https://packagist.org/packages/brunopazz/zoop-sdk)[ RSS](/packages/brunopazz-zoop-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (20)Used By (0)

#### Composer

[](#composer)

```
$ composer require "brunopazz/zoop-sdk"

```

credit card + Split
-------------------

[](#credit-card--split)

```
$credentials = new Credentials("xxx","zpk_test_xxxx", "xxxxxx","PRODUCTION");
$transaction = new Transactions();
$transaction->setAmount(704);
$transaction->setCurrency("BRL");
$transaction->setDescription("MinhaLoja");
$transaction->setPaymentType("credit");
$transaction->setCapture(true);
$transaction->setOnBehalfOf("f90083c033c24bae834a41077e03ba31");
$transaction->setReferenceId("ref1234".rand(1,100000));
$transaction->setUsage("single_use");
$transaction->setType("card");
$transaction->setCardNumber("4916521617351812");
$transaction->setHolderName("Teste card");
$transaction->setExpirationMonth("10");
$transaction->setExpirationYear("22");
$transaction->setSecurityCode("123");
$transaction->setStatementDescriptor("MinhaLoja");
$transaction->setInstallmentPlan("with_interest", "12");

$zoop = new Zoop($credentials);

$authorize = $zoop->Authorize($transaction);
//$capture = $zoop->Capture($authorize->getOnBehalfOf(),$authorize->getId(),$authorize->getAmount()*100);
//$cancel = $zoop->Cancel($capture->getOnBehalfOf(),$capture->getId(),$capture->getAmount()*100);

$split = new Split();
$split->setLiable(true)
    ->setAmount(100)
    ->setChargeProcessingFee(true)
    //->setPercentage(50)
    ->setRecipient("0a4775ddea084632973fca5b384847fd");
$splitResponse = $zoop->Split($split,$authorize->getId());

if($splitResponse->hasSplitted()){
    print "OK";
}else
    print $splitResponse->toJSON();
```

Boleto Bancário + Split
-----------------------

[](#boleto-bancário--split)

```
$credentials = new Credentials("xxx","zpk_test_xxxx", "xxxxxx","PRODUCTION");

$transaction = new Boleto();
$transaction->setAmount(704);
$transaction->setCurrency("BRL");
$transaction->setDescription("minhaloja");
$transaction->setPaymentType("boleto");
$transaction->setOnBehalfOf("f90083c033c24bae834a41077e03ba31");
$transaction->setExpirationDate("2019-11-20");
$transaction->setPaymentLimitDate("2019-11-20");
$transaction->setBodyInstructions("teste de instrucao");

$customer = new Customer();
$customer->setFirstName("Bruno Teste");
$customer->setTaxpayerId("30628284812");
$customer->setEmail("minhaloja@gmail.com");
$customer->setAddressLine1("ruas de testes");
$customer->setAddressLine2("bairro teste");
$customer->setAddressNeighborhood("centro");
$customer->setAddressCity("Sao paulo");
$customer->setAddressState("SP");
$customer->setAddressPostalCode("04742350");
$customer->setAddressCountryCode("BR");

$zoop = new Zoop($credentials);

$authorize = $zoop->Boleto($transaction,$customer);

$split = new Split();
$split->setLiable(true)
    ->setAmount(100)
    ->setChargeProcessingFee(true)
    //->setPercentage(50)
    ->setRecipient("0a4775ddea084632973fca5b384847fd");

$splitResponse = $zoop->Split($split,$authorize->getId());

if($splitResponse->hasSplitted()){
    print "OK";
}else
    print $splitResponse->toJSON();
```

### Seller (IN DEVELOPMENT)

[](#seller-in-development)

```
$credentials = new Credentials("xxx","zpk_test_xxxx", "xxxxxx","PRODUCTION");
$seller = new Seller($credentials);
print_r($seller->getById("0c2fb87678664ce694c3ace391923f9d"));
```

### Zero Dolar Auth

[](#zero-dolar-auth)

```
$credentials = new Credentials("xxx","zpk_test_xxxx", "xxxxxx","PRODUCTION");

$card = new Card();
$card->setCardNumber("4916521617351812");
$card->setHolderName("Teste card");
$card->setExpirationMonth("12");
$card->setExpirationYear("28");
$card->setSecurityCode("188");

$customer = new Customer();
$customer->setFirstName("Bruno");
$customer->setLastName("Paz");
$customer->setTaxpayerId("23628284802");
$customer->setEmail("minhaloja@gmail.com");
//$customer->setAddressLine1("ruas de testes");
//$customer->setAddressLine2("bairro teste");
//$customer->setAddressNeighborhood("centro");
//$customer->setAddressCity("Sao paulo");
//$customer->setAddressState("SP");
//$customer->setAddressPostalCode("08742350");
//$customer->setAddressCountryCode("BR");

$zoop = new Zoop($credentials);

$ZeroAuth = $zoop->ZeroDolarAuth($card,$customer);

if($ZeroAuth->isValidCard()){

    $transaction = new Transactions();
    $transaction->setAmount(704);
    $transaction->setCurrency("BRL");
    $transaction->setDescription("minhaloja");
    $transaction->setPaymentType("credit");
    $transaction->setCapture(true);
    $transaction->setOnBehalfOf("f90083c033c24bae834a41077e03ba31");
    $transaction->setReferenceId("ref1234".rand(1,100000));
    $transaction->setCustomer($ZeroAuth->getCustomer());
    $transaction->setStatementDescriptor("minhaloja");
    $transaction->setInstallmentPlan("with_interest", "12");

    $zoop = new Zoop($credentials);

    $authorize = $zoop->Authorize($transaction);

    if($authorize->isAuthorized()){

        $split = new Split();
        $split->setLiable(true)
            //->setAmount(100)
            ->setChargeProcessingFee(true)
            ->setPercentage(50)
            ->setRecipient("0a4775ddea084632973fca5b384847fd");

        $splitResponse = $zoop->Split($split,$authorize->getId());
        print $splitResponse->toJSON();
    }else{
        print $authorize->toJSON();
    }
}
```

Split
-----

[](#split)

```
...

$split = new Split();
$split->setLiable(true)
    ->setAmount(100)
    ->setChargeProcessingFee(true)
    //->setPercentage(50)
    ->setRecipient("0a4775ddea084632973fca5b384847fd");
$splitResponse = $zoop->Split( $split, "{TRANSACTION_ID}");

if($splitResponse->hasSplitted()){
    print "OK";
}else
    print $splitResponse->toJSON();
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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

Every ~42 days

Recently: every ~168 days

Total

19

Last Release

1760d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98f44987da36152da47230559d56edc4c601bea48fb17bce1977a657b389bda0?d=identicon)[brunopaz](/maintainers/brunopaz)

---

Top Contributors

[![brunopazz](https://avatars.githubusercontent.com/u/982034?v=4)](https://github.com/brunopazz "brunopazz (12 commits)")

### Embed Badge

![Health badge](/badges/brunopazz-zoop-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/brunopazz-zoop-sdk/health.svg)](https://phpackages.com/packages/brunopazz-zoop-sdk)
```

PHPackages © 2026

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