Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lucasfidelis/mercadolivre-php-sdk

SDK PHP para integração com as APIs do Mercado Livre
https://github.com/lucasfidelis/mercadolivre-php-sdk

composer composer-library mercadolivre-sdk php-8 php-library rest-client

Last synced: 3 months ago
JSON representation

SDK PHP para integração com as APIs do Mercado Livre

Awesome Lists containing this project

README

        



MercadoLibre logo


Mercado Livre SDK PHP

## How to use
```php
use LucasFidelis\MercadoLivreSdk\Client\Client;
use LucasFidelis\MercadoLivreSdk\Managers\ProductManager;

...

$itemId = 'MLB123456789';

$client = new Client($CLIENT_ID, $CLIENT_SECRET, $ACCESS_TOKEN, $REFRESH_TOKEN);
$productManager = new ProductManager($client);

$product = $productManager->findById($itemId);
$product->setPrice(123.45);
$productManager->updatePrice($product);
```

## How to install

composer require lucasfidelis/mercado-livre-sdk

## Supported features

### Authentication and Authorization
| Feature | Status |
|----------|--------|
| Authorization | ✅ |
| Refresh token | ✅ |
| Create a test user | ✅ |
| Get Profile | ✅ |

### Products
| Feature | Status |
|----------|--------|
| Get Item by ID | ✅ |
| Search items by Seller ID | ✅ |
| Get current sales price | ✅ |
| Change variations | ✅ |
| Update Available Quantity | ✅ |
| Get Item Prices | ✅ |
| Update Price | ✅ |
| Create an Item | 🔜 |

### Orders
| Feature | Status |
|----------|--------|
| Get Order by ID | ✅ |
| Get Billing Info | ✅ |

### Shipment
| Feature | Status |
|----------|--------|
| Get Shipment by ID | ✅ |
| Get Shipment Costs | ✅ |
| Get Shipment Items | ✅ |
| Get Shipment Label as ZPL | ✅ |

## Contribute

Feel free to open pull requests; we welcome contributions! However, for significant changes, it's best to open an issue beforehand. Before creating your own issue or pull request, always check to see if one already exists!

## Disclaimer

This project is not associated, authorized, endorsed by, or in any way with MercadoLibre.

MercadoLibre, as well as related names, marks, emblems and images are registered trademarks of their respective owners.