PHPackages                             trixpua/shipping - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. trixpua/shipping

ActiveLibrary[HTTP &amp; Networking](/categories/http)

trixpua/shipping
================

Shipping is a set of classes optimized to get shipping quotes and tracking information from some Brazilian shipping companies

2.0.8(4y ago)672[4 PRs](https://github.com/Trixpua/shipping/pulls)MITPHPPHP ^7.2|^8.0

Since Nov 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Trixpua/shipping)[ Packagist](https://packagist.org/packages/trixpua/shipping)[ RSS](/packages/trixpua-shipping/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)DependenciesVersions (16)Used By (0)

Shipping @Trixpua
=================

[](#shipping-trixpua)

[![Source Code](https://camo.githubusercontent.com/f2ed2043857fa00fed8350b280a9f13da4ff5dc275766f7e8cf22c06b641fbbf/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d547269787075612f7368697070696e672d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/Trixpua/shipping)[![PHP from Packagist](https://camo.githubusercontent.com/8e142e91d36e5969cda5703265b4a12f0d6131682fd4b937f48d50f2ca3f32dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f747269787075612f7368697070696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Trixpua/shipping)[![Latest Version](https://camo.githubusercontent.com/a01d7d7cce3ea8f60aa4415ef5173de6f9283fc6326caee15ff663b5b2736ae6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f747269787075612f7368697070696e672e7376673f7374796c653d666c61742d737175617265)](https://github.com/Trixpua/shipping/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/170d3199de340c935e640bdc9a71b21e5a58fd424a057838d149ed553bde1985/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f747269787075612f7368697070696e672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Trixpua/shipping)[![Quality Score](https://camo.githubusercontent.com/04a7a3a07796d641e9b2616c6ed31b30de81898cad5fdc9b41ebca449810a413/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f747269787075612f7368697070696e672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Trixpua/shipping)[![Total Downloads](https://camo.githubusercontent.com/e685dfa305565a51b02e63ebd5a049adaaf2a30b37b650dc593a664f452cde4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747269787075612f7368697070696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Trixpua/shipping)

###### Shipping is a set of classes optimized to get shipping quotes and tracking information from some Brazilian shipping companies.

[](#shipping-is-a-set-of-classes-optimized-to-get-shipping-quotes-and-tracking-information-from-some-brazilian-shipping-companies)

Shipping é um conjunto de classes otimizadas para obter cotações de envio e informações de rastreamento de algumas empresas de transporte brasileiras.

### Shipping Companies (Empresas de transporte)

[](#shipping-companies-empresas-de-transporte)

- TNT Mercúrio (Quote and Tracking - last occurrence)
- Jamef Encomendas Urgentes (Quote and Tracking)
- Correios (Quote and Tracking)
- Tam Cargo (Quote) - Tam Cargo don't provide a official webservice to quote, so this class is unstable and not recommended to production implementation (Tam Cargo não fornece um webservice oficial para cotação, portanto essa classe é instável e não é recomendada para implementação em produção)
- Expresso São Miguel (Quote) - Expresso São Miguel don't provide a official webservice to quote, so this class is unstable and not recommended to production implementation (Expresso São Miguel não fornece um webservice oficial para cotação, portanto essa classe é instável e não é recomendada para implementação em produção)

Installation
------------

[](#installation)

Shipping is available via Composer:

```
"Trixpua/shipping": "^2.0"
```

or run

```
composer require Trixpua/shipping
```

Documentation
-------------

[](#documentation)

###### For details on how to use the shipping, see a example folder in the component directory. In it you will have an example of use for each class. Shipping with minimum parameters works like this:

[](#for-details-on-how-to-use-the-shipping-see-a-example-folder-in-the-component-directory-in-it-you-will-have-an-example-of-use-for-each-class-shipping-with-minimum-parameters-works-like-this)

Para mais detalhes sobre como usar o shipping, veja a pasta de exemplo no diretório do componente. Nela terá um exemplo de uso para cada classe. Shipping com o mínimo de parâmetros funciona assim:

#### Quote with TNT

[](#quote-with-tnt)

```
