PHPackages                             diamond/shopee - 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. [Framework](/categories/framework)
4. /
5. diamond/shopee

ActiveLibrary[Framework](/categories/framework)

diamond/shopee
==============

A simple laravel package for Shopee

02PHP

Since Aug 19Pushed 1y agoCompare

[ Source](https://github.com/kimcuong2407/shopee)[ Packagist](https://packagist.org/packages/diamond/shopee)[ RSS](/packages/diamond-shopee/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Shopee
==============

[](#laravel-shopee)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e22f65ec2742e328934cfca6b0953f801f50fa7faec96f8cb490eb5bd22f3d07/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172616469747a2f73686f7065652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laraditz/shopee)[![Total Downloads](https://camo.githubusercontent.com/a96719acaa4881bee2ca3ccf23d6b00e7b06ba83ad6f3a25732b8be57a23a497/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6172616469747a2f73686f7065652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laraditz/shopee)[![GitHub Actions](https://github.com/laraditz/shopee/actions/workflows/main.yml/badge.svg)](https://github.com/laraditz/shopee/actions/workflows/main.yml/badge.svg)

Laravel package for interacting with Shopee API.

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

[](#installation)

You can install the package via composer:

```
composer require laraditz/shopee
```

Before Start
------------

[](#before-start)

Configure your variables in your `.env` (recommended) or you can publish the config file and change it there.

```
SHOPEE_SANDBOX_MODE=true # true or false for sandbox mode
SHOPEE_PARTNER_ID=
SHOPEE_PARTNER_KEY=

```

(Optional) You can publish the config file via this command:

```
php artisan vendor:publish --provider="Laraditz\Shopee\ShopeeServiceProvider" --tag="config"
```

Run the migration command to create the necessary database table.

```
php artisan migrate
```

Available Methods
-----------------

[](#available-methods)

Below are all methods available under this package.

Service nameMethod nameDescriptionauth()accessToken()Generate access token.refreshToken()Refresh access token before it expired.order()list()Get an order list from specified date range.detail()Get an order detail by order SN.payment()escrowDetail()Get the accounting detail of an order.shop()generateAuthorizationURL()Get shop authorization URL for shop to authorize.getInfo()Get shop information.Usage
-----

[](#usage)

You may call the method by chaining the service name before calling the method name.

```
// Using service container
app('shopee')->order()->detail('211020BNFYMXXX');

// Using facade
\Shopee::order()->detail('211020BNFYMXXX');
```

Event
-----

[](#event)

This package also provide an event to allow your application to listen for Shopee web push. You can create your listener and register it under event below.

EventDescriptionLaraditz\\Shopee\\Events\\WebhookReceivedReceive a push content from Shopee.### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Raditz Farhan](https://github.com/laraditz)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d9ec8ea89493239ca4956f3503ac9f640ded1996bdf321c046b60480b32f6620?d=identicon)[diamond2020](/maintainers/diamond2020)

---

Top Contributors

[![viet-xynergy](https://avatars.githubusercontent.com/u/102238888?v=4)](https://github.com/viet-xynergy "viet-xynergy (3 commits)")[![raditzfarhan](https://avatars.githubusercontent.com/u/1203676?v=4)](https://github.com/raditzfarhan "raditzfarhan (1 commits)")

### Embed Badge

![Health badge](/badges/diamond-shopee/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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