PHPackages                             minasm/trading212api - 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. minasm/trading212api

ActiveLibrary[API Development](/categories/api)

minasm/trading212api
====================

Wrapper for official trading212.com api

v1.0.1(2y ago)09MITPHPPHP ^8.1

Since May 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/minasm/Trading212API)[ Packagist](https://packagist.org/packages/minasm/trading212api)[ RSS](/packages/minasm-trading212api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (8)Versions (3)Used By (0)

T212 Official API Client Wrapper for Laravel/PHP
================================================

[](#t212-official-api-client-wrapper-for-laravelphp)

This is a simple wrapper for Public Beta Trading212 Official API. The API currently works in Practice Mode.

You can check the documentation here

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

[](#installation)

To install this package via the `composer require` command:

```
$ composer require minasm/trading212api
```

Or add it to `composer.json` manually:

Laravel
-------

[](#laravel)

No configuration required for Laravel &gt;= 5.5+, It will use the auto-discovery function.

In Laravel &lt;= 5.4 (or if you are not using auto-discovery) register the service provider by adding it to the `providers` key in `config/app.php`. Also register the facade by adding it to the `aliases` key in `config/app.php`.

```
'providers' => [
    ...
    MinasM\T212\T212ServiceProvider::class,
],

'aliases' => [
    ...
    'T212' => MinasM\T212\Facades\T212::class,
]
```

Configuration
-------------

[](#configuration)

To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish --provider="MinasM\T212\T212ServiceProvider"
```

This will create a `config/T212.php` file in your app that you can modify to set your configuration.

Set your T212 data API token in the file:

```
return [
    'api_token' => 'put your token here'
];
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~5 days

Total

2

Last Release

1094d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01f0b53d2f1f697cab1b530538889eccbd880320c4d4bb9c3fe7008339d0a583?d=identicon)[minasm](/maintainers/minasm)

---

Top Contributors

[![minasm](https://avatars.githubusercontent.com/u/2103447?v=4)](https://github.com/minasm "minasm (5 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/minasm-trading212api/health.svg)

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[netflie/whatsapp-cloud-api

The first PHP SDK to send and receive messages using a cloud-hosted version of the WhatsApp Business Platform

640431.7k4](/packages/netflie-whatsapp-cloud-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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