PHPackages                             dibmartins/locaweb - 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. [API Development](/categories/api)
4. /
5. dibmartins/locaweb

ActiveLibrary[API Development](/categories/api)

dibmartins/locaweb
==================

Wrapper php para comunicação com a api locaweb

v1.0(7y ago)09ApachePHP

Since May 28Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

Locaweb SMTP
============

[](#locaweb-smtp)

Wrapper php para comunicação com a api SMTP da locaweb

Install
=======

[](#install)

$ composer require dibmartins/locaweb

Get Started
===========

[](#get-started)

Examples
========

[](#examples)

Para enviar um e-mail:

```
try{

    require_once('../../vendor/autoload.php');

    $api = new \Locaweb\Api('https://api.smtplw.com.br/v1/', 'your_auth_token');

    $message = new \Locaweb\Message($api);

    $response = $message->post([
        'headers' => ['Content-Type': 'text/plain'], // 'text/html' para body em html
        'subject' => "qualquer titulo",
        'body'    => "qualquer corpo",
        'from'    => "remetente@dominio.com",
        'to'      => "destinatario@dominio2.com",
        'cc'      => ['cc1@dominio2.com', 'cc2@dominio2.com'],
        'bcc'     => ['bcc1@dominio2.com', 'bcc2@dominio2.com']
    ]);

    var_dump($response);
}
catch(\Locaweb\Exception $e){

    var_dump($e);
}
```

Consulta utilizando filtros

```
try{

    require_once('../../vendor/autoload.php');

    $api = new \Locaweb\Api('https://api.smtplw.com.br/v1/', 'your_auth_token');

    $message = new \Locaweb\Message($api);

    $hoje = new \DateTime();

    $response = $message->get([
        'status'     => 'all',
        'start_date' => $hoje->format('Y-m-d'),
        'end_date'   => $hoje->format('Y-m-d'),
        'page'       => 1,
        'per'        => 100
    ]);

    var_dump($response);
}
catch(\Locaweb\Exception $e){

    var_dump($e);
}
```

Consulta utilizando id

```
try{

    require_once('../../vendor/autoload.php');

    $api = new \Locaweb\Api('https://api.smtplw.com.br/v1/', 'your_auth_token');

    $message = new \Locaweb\Message($api);

    $response = $message->getById(37764);

    var_dump($response);
}
catch(\Locaweb\Exception $e){

    var_dump($e);
}
```

### Contribute

[](#contribute)

1. Check for open issues or open a new issue to start a discussion around a bug or feature.
2. Fork the repository on GitHub to start making your changes.
3. Write one or more tests for the new feature or that expose the bug.
4. Make code changes to implement the feature or fix the bug.
5. Send a pull request to get your changes merged and published.

\#License Copyright (c) 2018 Diego Botelho

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Unknown

Total

1

Last Release

2903d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7526b2e691d76cfc774d149a0c9e0c25ef156f1795ef11e949cc0b3a1b891b3b?d=identicon)[dibmartins](/maintainers/dibmartins)

---

Top Contributors

[![dibmartins](https://avatars.githubusercontent.com/u/1511273?v=4)](https://github.com/dibmartins "dibmartins (10 commits)")

### Embed Badge

![Health badge](/badges/dibmartins-locaweb/health.svg)

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

###  Alternatives

[allyans3/steam-market-api-v2

Steam Market API v2

1937.3k](/packages/allyans3-steam-market-api-v2)[chapter-three/apple-news-api

Push content to Apple News.

38307.5k2](/packages/chapter-three-apple-news-api)[saleh7/proxmox-ve_php_api

ProxmoxVE PHP API

11718.7k](/packages/saleh7-proxmox-ve-php-api)[yunchuang/appstore-connect-api

sdk for appstore connect api

3865.3k](/packages/yunchuang-appstore-connect-api)[infifni/fan-courier-api-client

Fan Courier API Client

1332.6k](/packages/infifni-fan-courier-api-client)

PHPackages © 2026

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