PHPackages                             brew/intelipost - 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. brew/intelipost

ActiveLibrary

brew/intelipost
===============

Laravel package for Intelipost shipping quote integration

1.0.3(10mo ago)11.2kMITPHPPHP ^8.2CI passing

Since Jan 27Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/brew-apps/intelipost)[ Packagist](https://packagist.org/packages/brew/intelipost)[ RSS](/packages/brew-intelipost/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Intelipost Package
==========================

[](#laravel-intelipost-package)

Esta é uma package Laravel para integração com a API de cotação de fretes da Intelipost.

Instalação
----------

[](#instalação)

1. Instale via Composer:

```
composer require brew/intelipost
```

2. Publique os arquivos de configuração e migrations:

```
php artisan vendor:publish --provider="Brew\Intelipost\Providers\IntelipostServiceProvider"
```

3. Execute as migrations:

```
php artisan migrate
```

4. Configure suas credenciais no arquivo `.env`:

```
INTELIPOST_API_KEY=sua-chave-api
INTELIPOST_DEFAULT_ORIGIN_ZIP_CODE=seu-cep-padrao
```

Uso
---

[](#uso)

### Exemplo Básico

[](#exemplo-básico)

```
use Brew\Intelipost\Facades\Intelipost;
use Brew\Intelipost\DTO\{
    QuoteRequestData,
    VolumeData,
    AdditionalInformationData,
    IdentificationData
};

// Crie o volume
$volume = new VolumeData(
    weight: 0.5,
    volume_type: 'BOX',
    cost_of_goods: 100,
    width: 10,
    height: 10,
    length: 25
);

// Informações adicionais
$additionalInfo = new AdditionalInformationData(
    free_shipping: false,
    extra_cost_absolute: 0,
    extra_cost_percentage: 0,
    lead_time_business_days: 0,
    sales_channel: 'hotsite',
    tax_id: '22337462000127',
    client_type: 'gold',
    payment_type: 'CIF',
    is_state_tax_payer: false
);

// Informações de identificação
$identification = new IdentificationData(
    session: uniqid(),
    page_name: 'carrinho',
    url: 'http://seu-site.com.br/checkout/cart/'
);

// Crie a requisição de cotação
$quoteRequest = new QuoteRequestData(
    destination_zip_code: '04037-003',
    volumes: [$volume],
    additional_information: $additionalInfo,
    identification: $identification
);

// Faça a cotação
try {
    $quote = Intelipost::quote($quoteRequest);

    // Acesse os resultados
    foreach ($quote['content']['delivery_options'] as $option) {
        echo "Método: {$option['delivery_method_name']}\n";
        echo "Prazo: {$option['delivery_estimate_business_days']} dias úteis\n";
        echo "Custo: R$ {$option['final_shipping_cost']}\n";
    }
} catch (\Brew\Intelipost\Exceptions\IntelipostException $e) {
    echo "Erro: " . $e->getMessage();
}
```

### Logs

[](#logs)

A package automaticamente registra todas as requisições e respostas na tabela `intelipost_logs`. Você pode acessá-las através do modelo `IntelipostLog`:

```
use Brew\Intelipost\Models\IntelipostLog;

// Buscar todos os logs
$logs = IntelipostLog::all();

// Buscar logs específicos
$logs = IntelipostLog::where('endpoint', 'quote')
    ->where('status_code', 200)
    ->get();
```

### Personalização

[](#personalização)

Você pode substituir o CEP de origem padrão durante a requisição:

```
$quoteRequest = new QuoteRequestData(
    destination_zip_code: '04037-003',
    origin_zip_code: '01153-000', // Sobrescreve o CEP padrão
    volumes: [$volume]
);
```

Testes
------

[](#testes)

A package inclui testes usando o framework Pest. Para executar os testes:

```
vendor/bin/pest
```

Requisitos
----------

[](#requisitos)

- PHP 8.2 ou superior
- Laravel &gt;=11.0

Contribuindo
------------

[](#contribuindo)

Contribuições são bem-vindas! Por favor, sinta-se à vontade para submeter um Pull Request.

Licença
-------

[](#licença)

Esta package é um software open-source licenciado sob a [licença MIT](LICENSE.md).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance54

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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 ~56 days

Total

4

Last Release

308d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/454523ff84b0d7c8fbfda7b2023148b644b5e5d1e98eb50c12ecf220db218070?d=identicon)[douglasmaiabr](/maintainers/douglasmaiabr)

---

Top Contributors

[![douglasmaiabr](https://avatars.githubusercontent.com/u/8321388?v=4)](https://github.com/douglasmaiabr "douglasmaiabr (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/brew-intelipost/health.svg)

```
[![Health](https://phpackages.com/badges/brew-intelipost/health.svg)](https://phpackages.com/packages/brew-intelipost)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1225.0k10](/packages/fleetbase-core-api)

PHPackages © 2026

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