PHPackages                             ertanusta/trendyol-api-bundle - 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. ertanusta/trendyol-api-bundle

ActiveSymfony-bundle[API Development](/categories/api)

ertanusta/trendyol-api-bundle
=============================

Trendyol API servislerini kullanmayı sağlayan bundle

1.0(4y ago)16MITPHPPHP &gt;=7.1

Since Dec 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ertanusta/TrendyolApiBundle)[ Packagist](https://packagist.org/packages/ertanusta/trendyol-api-bundle)[ RSS](/packages/ertanusta-trendyol-api-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

Trendyol API PHP Symfony Bundle
===============================

[](#trendyol-api-php-symfony-bundle)

This package has been prepared for the use of trendyol API services.

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

[](#installation)

### Step 1: Download TrendyolAPIBundle using composer

[](#step-1-download-trendyolapibundle-using-composer)

Require the `ertanusta/trendyol-api-bundle` with composer [Composer](http://getcomposer.org/).

```
$ composer require ertanusta/trendyol-api-bundle
```

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Trendyol\ApiBundle\TrendyolApiBundle::class => ['all' => true],
];
```

### Step 3: Configure the AcmePhpBundle

[](#step-3-configure-the-acmephpbundle)

Below is a minimal example of the configuration necessary to use the `TrendyolApiBudnle` in your application:

```
# config/packages/trendyol_api.yml

trendyol_api:
  supplier_id: "supplier_id"
  app_key: "app_key"
  app_secret: "app_secret"
  integrator: "self"
```

> At the same time, you can change the parameters according to the environment situation by keeping them under config/packages/dev/ or config/packages/prod directories.

Usage
-----

[](#usage)

After installing the package and entering the necessary configurations. You can access Trendyol API services with the services included in the package.

```
    /**
     * @Route("/", name="index")
     */
    public function method(CargoService $service)
    {
        $result = $service->getSuppliersAddresses();
    }
```

To dynamically change your Trendyol configuration:

```
    /**
     * @Route("/", name="index")
     */
    public function index(CargoService $service)
    {
        $service->setIntegrator("12345");
        $service->setAppSecret("app_key");
        $service->setAppKey("app_secret");
        $service->setSellerId("12345");
        $result = $service->getSuppliersAddresses();
    }
```

Extensions
----------

[](#extensions)

**Trendyol API Url Edit**: Trendyol API Url addresses are available under Resources/config/packages/dev/trendyol\_url. To make changes in api url addresses, you can copy the content of the file and update it according to you.

```
# config/trendyol_api_url.yaml

trendyol_url:
  shipment_providers: "https://api.trendyol.com/sapigw/shipment-providers"
  .
  .
  .
  .
```

It is enough to write the path information of the yaml file containing the api addresses you created.

```
# config/packages/trendyol_api.yaml

trendyol_api:
  supplier_id: "supplier_id"
  app_key: "app_key"
  app_secret: "app_secret"
  integrator: "123456"
  url_file_path: "%kernel.project_dir%/config/trendyol_api_url.yaml"
```

> Some parameters in the URL structure are expected to be exactly the same. Otherwise the service classes will not work properly.

**Trendyol Client:** By creating another Client class implemented with **Trendyol\\ApiBundle\\Client\\ClientInterface**, services can be made to use the object of this class.

```
# services.yaml

Trendyol\ApiBundle\Client\ClientInterface: '@App\Client\AnotherTrendyolClient'
```

**Trendyol Url Factory:** The UrlFactory class created using **Trendyol\\ApiBundle\\Factories\\UrlFactoryInterface** can be used.

```
# services.yaml

Trendyol\ApiBundle\Factories\UrlFactoryInterface: '@App\Factories\AnotherTrendyolUrlFactory'
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

1604d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6479efb1beb8839f282dbe33b88c0782dbbd1d6a4b93c66d8b8a4e07604d20da?d=identicon)[ertanusta](/maintainers/ertanusta)

---

Top Contributors

[![ertanusta](https://avatars.githubusercontent.com/u/15330907?v=4)](https://github.com/ertanusta "ertanusta (18 commits)")

---

Tags

apisymfonybundletrendyol

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ertanusta-trendyol-api-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ertanusta-trendyol-api-bundle/health.svg)](https://phpackages.com/packages/ertanusta-trendyol-api-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[harmbandstra/swagger-ui-bundle

Exposes swagger UI inside your Symfony project through a route (eg. /docs)

42867.3k](/packages/harmbandstra-swagger-ui-bundle)[mtarld/api-platform-ms-bundle

API Platform Microservice Bundle

7124.5k](/packages/mtarld-api-platform-ms-bundle)[stfalcon-studio/api-bundle

Base classes and helper services to build API application via Symfony.

1032.1k](/packages/stfalcon-studio-api-bundle)

PHPackages © 2026

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