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

ActiveLibrary[API Development](/categories/api)

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

Tesla API library for PHP

0.1.0(6y ago)1221MITPHP

Since Dec 25Pushed 6y ago2 watchersCompare

[ Source](https://github.com/slacker775/tesla-api)[ Packagist](https://packagist.org/packages/slacker775/tesla-api)[ RSS](/packages/slacker775-tesla-api/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (7)Versions (4)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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

2324d ago

### Community

Maintainers

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

---

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/slacker775-tesla-api/health.svg)

```
[![Health](https://phpackages.com/badges/slacker775-tesla-api/health.svg)](https://phpackages.com/packages/slacker775-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)
