PHPackages                             trstd/cot-integration-library - 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. trstd/cot-integration-library

ActiveLibrary[API Development](/categories/api)

trstd/cot-integration-library
=============================

A PHP integration library for connecting to Community of Trust platform.

1.6.2(5mo ago)0116[1 issues](https://github.com/trustedshops-public/cot-php-integration-library/issues)MITPHPPHP &gt;=7.4

Since Jul 16Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/trustedshops-public/cot-php-integration-library)[ Packagist](https://packagist.org/packages/trstd/cot-integration-library)[ Docs](https://github.com/trustedshops-public/cot-php-integration-library)[ RSS](/packages/trstd-cot-integration-library/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (15)Used By (0)

Community of Trust PHP Integration Library
==========================================

[](#community-of-trust-php-integration-library)

[![License](https://camo.githubusercontent.com/427db396b2fa3314b9b8ef6694bc0023a3ccba3b1f23950267ccfee67e60aba0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7472757374656473686f70732d7075626c69632f636f742d7068702d696e746567726174696f6e2d6c696272617279)](https://camo.githubusercontent.com/427db396b2fa3314b9b8ef6694bc0023a3ccba3b1f23950267ccfee67e60aba0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7472757374656473686f70732d7075626c69632f636f742d7068702d696e746567726174696f6e2d6c696272617279)[![CircleCI](https://camo.githubusercontent.com/c95c06166805ea8a7672eb5dc68abe2c40bb499abbb1456e94c69eae010a41ac/68747470733a2f2f646c2e636972636c6563692e636f6d2f7374617475732d62616467652f696d672f67682f7472757374656473686f70732d7075626c69632f636f742d7068702d696e746567726174696f6e2d6c6962726172792f747265652f6d61696e2e7376673f7374796c653d736869656c64)](https://dl.circleci.com/status-badge/redirect/gh/trustedshops-public/cot-php-integration-library/tree/main)

This library provides a comprehensive PHP interface for integrating with the Community of Trust (COT) platform, facilitating seamless interactions with its services.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- Composer for managing dependencies

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

[](#installation)

To install the library, run the following command in your project directory:

```
composer require trstd/cot-integration-library
```

Usage
-----

[](#usage)

Here is a basic example of how to use the library:

On the backend side:

```

    ```

### Development Commands

[](#development-commands)

The project includes a comprehensive Makefile with the following commands:

#### 🐳 Docker Environment

[](#-docker-environment)

- `make dev` - Start Docker with live file watching
- `make docker-stop` - Stop Docker environment

#### 🔐 Certificates

[](#-certificates)

- `make certs` - Generate self-signed localhost TLS certs for HTTPS (8443)

### Testing

[](#testing)

The project includes a test environment for development and testing:

1. **Start the test environment:**

    ```
    make dev
    ```
2. **Access the test page:**

    - **HTTPS (recommended)**:
    - **HTTP (dev only)**:
3. **Run automated tests:**

    ```
    make test
    ```

### Debugging

[](#debugging)

For debugging with Xdebug:

1. **Start Xdebug in your IDE first** (Cursor, VS Code, PhpStorm)
2. **Run development environment:**

    ```
    make dev
    ```
3. **Set breakpoints** in your PHP code
4. **Visit test page**:
5. **Code will pause** at breakpoints for inspection

**Important:** Always start Xdebug in IDE before running `make dev`. The environment will attach to your IDE's debugger on `host.docker.internal:9003`.

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

[](#contributing)

Contributions are welcome! Please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) file for guidelines.

License
-------

[](#license)

This library is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

Acknowledgments
---------------

[](#acknowledgments)

- [firebase/php-jwt](https://github.com/firebase/php-jwt) for JWT handling
- [phpseclib/phpseclib](https://github.com/phpseclib/phpseclib) for security features
- [monolog/monolog](https://github.com/Seldaek/monolog) for logging
- [symfony/http-client](https://github.com/symfony/http-client) for HTTP client features

Versioning
----------

[](#versioning)

This project adheres to [Semantic Versioning](https://semver.org/). For the versions available, see the [tags on this repository](https://github.com/trustedshops-public/cot-php-integration-library/tags).

PHP Package Repository
----------------------

[](#php-package-repository)

This library is available on [Packagist](https://packagist.org/packages/trstd/cot-integration-library).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance81

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

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

Every ~42 days

Recently: every ~23 days

Total

13

Last Release

156d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21cf29cb6b1c3facc789c1af72842f7ed4322a3c0f9e633305e75fd5a7672cf2?d=identicon)[trustedshops](/maintainers/trustedshops)

---

Top Contributors

[![saygiselimts](https://avatars.githubusercontent.com/u/95354280?v=4)](https://github.com/saygiselimts "saygiselimts (113 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (17 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (13 commits)")[![AnatoliiTretiakov](https://avatars.githubusercontent.com/u/18593028?v=4)](https://github.com/AnatoliiTretiakov "AnatoliiTretiakov (4 commits)")[![NikTLS](https://avatars.githubusercontent.com/u/93604570?v=4)](https://github.com/NikTLS "NikTLS (3 commits)")[![bf-ts](https://avatars.githubusercontent.com/u/211781400?v=4)](https://github.com/bf-ts "bf-ts (1 commits)")[![bennycleff](https://avatars.githubusercontent.com/u/211788964?v=4)](https://github.com/bennycleff "bennycleff (1 commits)")

---

Tags

integrationtrustedshopstslibrarieslibraryintegrationtrustedshopscottrstd

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/trstd-cot-integration-library/health.svg)

```
[![Health](https://phpackages.com/badges/trstd-cot-integration-library/health.svg)](https://phpackages.com/packages/trstd-cot-integration-library)
```

###  Alternatives

[sylius/sylius

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

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

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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