PHPackages                             daraz/easydaraz - 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. daraz/easydaraz

Abandoned → [shamran/easydaraz](/?search=shamran%2Feasydaraz)Library[API Development](/categories/api)

daraz/easydaraz
===============

A package to make api endpoint calls to daraz e-commerce site for sellers

4153[1 issues](https://github.com/jmshamran/easydaraz/issues)PHP

Since Jul 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jmshamran/easydaraz)[ Packagist](https://packagist.org/packages/daraz/easydaraz)[ RSS](/packages/daraz-easydaraz/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

EasyDaraz
---------

[](#easydaraz)

***This is a package created to make api endpoint calls to Daraz e-commerce site for sellers.***

### How to initiate?

[](#how-to-initiate)

1. Git Clone the repository
2. Update the Composer
3. Use these in your file ```
     require_once(dirname(__FILE__) . '/vendor/autoload.php');
     require_once(dirname(__FILE__) . '/src/Daraz.php');
     use daraz\easydaraz\Daraz;
    ```
4. Define following variables in your code. ```
    $apiKey = 'Your Daraz API-Key';
    $userId = 'Your E-mail';
    $url = 'Your Daraz API URL';
    ```

    > ###### ex:  - for Sri Lanka
    >
    > [](#ex-httpsapisellercenterdarazlk-----for-sri-lanka)
5. Instantiate the class
    - `$daraz = new Daraz($userId, $apiKey, $url);`

### Available API Endpoints

[](#available-api-endpoints)

***Use these calls to get required results. Get complete information on Daraz API [here.](https://www.daraz.com/sellerapi-docs)***

1. `getSeller()` - To get seller information by the current user ID.
2. `getCategoryTree()` - Retrieve the list of all product categories in the system.
3. `getCategoryAttributes()` - Get a list of attributes with options for a given category.
4. `getBrands()` - Retrieve all product brands in the system.
5. `createProduct()` - Create a product (use an array of attributes).
6. `updateProduct()` - Update attributes or SKUs of an existing product. One request can update only 1 product.
7. `uploadImage()` - To upload a single image file and accept binary stream with file content.
8. `migrateImage()` - To migrate a single image from an external site to Daraz site (Response provides migrated Image URLs).
9. `migrateImages()` - To migrate multiple images from an external site to Daraz site (This call's response doesn't provide migrated image URLs).
10. `getResponse()` - To get the returned information from the system for the UploadImages and MigrateImages API
11. `getAllProducts()` - Get all or a range of products.
12. `getProducts()` - To get all or a range of products.
13. `setImages()` - To set the images for an existing product by associating one or more image URLs with it.
14. `updatePriceQuantity()` - To update the price and quantity of one or more existing products.
15. `getOrder()` - To get the order details for a single order.
16. `getOrders()` - To get the customer details for a range of orders.
17. `getOrderItems()` - To get the item information of one or more orders.
18. `getMultipleOrderItems()` - To get the item information of one or more orders.
19. `setInvoiceNumber()` - To set the invoice access key.
20. `setStatusToPackedByMarketplace()` - To mark order items as being packed.
21. `setStatusToReadyToShip()` - To mark an order item as being ready to ship.
22. `getDocument()` - To retrieve order-related documents, including invoices, shipping labels, and shipping parcels.
23. `getFailureReasons()` - To get additional error context for SetStatusToCanceled.
24. `setStatusToCanceled()` - To cancel a single item.
25. `getQCStatus()` - To get the quality control status of items being listed.
26. `getPayoutStatus()` - To get the payout status for a specified period.
27. `getTransactionDetails()` - To get transaction or fee details for a specified period.

**Example Array**

```
$addProductArray = [
    'Product' => [
                'PrimaryCategory' => '9098',
                'SPUId' => '',
                'AssociatedSku' => '',
                'Attributes' => [
                    'name' => 'T-800 Terminator',
                    'short_description' => 'Premium Skynet Product',
                    'brand' => 'Skynet',
                    'model' => '',
                ],
                'Skus' => [
                    'Sku' => [
                        'SellerSku' => 'sudo_T800_init',
                        'color_family' => 'Black',
                        'quantity' => '1000',
                        'price' => '20000',
                        'package_length' => '10',
                        'package_height' => '10',
                        'package_width' => '10',
                        'package_weight' => '1',
                        'package_content' => '',
                        'Images' => [
                            'Image' => [
                                "https://static-01.daraz.lk/p/8ef1381b408720516321407d91bd2a8f.jpg",
                            ]
                        ],
                    ],
                ],
            ],
];
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![jmshamran](https://avatars.githubusercontent.com/u/47205435?v=4)](https://github.com/jmshamran "jmshamran (22 commits)")

### Embed Badge

![Health badge](/badges/daraz-easydaraz/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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