PHPackages                             desync/tesla-api - 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. desync/tesla-api

ActiveLibrary[API Development](/categories/api)

desync/tesla-api
================

Tesla API library for PHP

1.0.0(6y ago)010MITPHP

Since Dec 25Pushed 6y agoCompare

[ Source](https://github.com/thijsdejong/tesla-api)[ Packagist](https://packagist.org/packages/desync/tesla-api)[ RSS](/packages/desync-tesla-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (5)Used By (0)

slacker775/tesla-api
====================

[](#slacker775tesla-api)

Tesla API for PHP

This package provides an easy to use API client for the Tesla (as in the auto/solar manufacturer) API. With this API, you can poll car status, configuration, etc.

Basic Usage
===========

[](#basic-usage)

Get OAuth Token:

```
    $apiClient = Client::create();
    $clientId = '81527cff06843c8634fdc09e8ac0abefb46ac849f38fe1e431c2ef2106796384';
    $clientSecret = 'c7257eb71a564034f9419ee651c7d0e5f7aa6bfbd18bafb5c5c033b093bb2fa3';
    $email = 'joe@example.com';
    $password = 'password';

    $auth = new CreateAccessTokenRequest();
    $auth->setClientId($clientId)
        ->setClientSecret($clientSecret)
        ->setEmail($email)
        ->setPassword($password)
        ->setGrantType('password');

    $authResponse = $apiClient->createOauthToken($auth);
    printf("Token = %s\n", $authResponse->getAccessToken());

```

Use API:

```
    $token = 'xxxxxx';

    $httpClient = Client::createHttpClient($token, new HttpJournal());
    $apiClient = Client::create($httpClient);

    $vehicles = $apiClient->getVehicles();
    dump($vehicles);

```

TODO
====

[](#todo)

- Add proper OAuth2 support via league/oauth2-client

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~51 days

Total

3

Last Release

2233d ago

Major Versions

0.1.0 → 1.0.02020-04-06

### Community

Maintainers

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

---

Top Contributors

[![slacker775](https://avatars.githubusercontent.com/u/21985741?v=4)](https://github.com/slacker775 "slacker775 (10 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/desync-tesla-api/health.svg)

```
[![Health](https://phpackages.com/badges/desync-tesla-api/health.svg)](https://phpackages.com/packages/desync-tesla-api)
```

###  Alternatives

[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[jolicode/harvest-php-api

An up to date PHP client for Harvest's API

2259.9k](/packages/jolicode-harvest-php-api)[shipstream/ups-rest-php-sdk

PHP SDK for UPS REST API

2253.7k](/packages/shipstream-ups-rest-php-sdk)[jikan/jikan-php

PHP client for jikan rest

291.1k](/packages/jikan-jikan-php)

PHPackages © 2026

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