Download the PHP package laraditz/shopee without Composer
On this page you can find all versions of the php package laraditz/shopee. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laraditz/shopee
More information about laraditz/shopee
Files in laraditz/shopee
Package shopee
Short Description A simple laravel package for Shopee
License MIT
Homepage https://github.com/laraditz/shopee
Informations about the package shopee
Laravel Shopee
Laravel package for interacting with Shopee API.
Installation
You can install the package via composer:
Before Start
Configure your variables in your .env
(recommended) or you can publish the config file and change it there.
(Optional) You can publish the config file via this command:
Run the migration command to create the necessary database table.
Available Methods
Below are all methods available under this package.
Service name | Method name | Description |
---|---|---|
auth() | 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
You may call the method by chaining the service name before calling the method name.
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.
Event | Description |
---|---|
Laraditz\Shopee\Events\WebhookReceived | Receive a push content from Shopee. |
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Raditz Farhan
- All Contributors
License
The MIT License (MIT). Please see License File for more information.