PHPackages                             simon-wessel/teamcity-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. simon-wessel/teamcity-api

AbandonedArchivedLibrary[API Development](/categories/api)

simon-wessel/teamcity-api
=========================

TeamCity API wrapper for PHP - usable with or without Laravel 5

1.0.0(8y ago)2601PHPPHP &gt;=7.0.0

Since Sep 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/simon-wessel/teamcity-api)[ Packagist](https://packagist.org/packages/simon-wessel/teamcity-api)[ RSS](/packages/simon-wessel-teamcity-api/feed)WikiDiscussions master Synced 2w ago

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

TeamCity API
============

[](#teamcity-api)

[![Latest Stable Version](https://camo.githubusercontent.com/8a190d2daee59254ee971d76138c7e970aa916da0f8b897800c2254040c788af/68747470733a2f2f706f7365722e707567782e6f72672f73696d6f6e2d77657373656c2f7465616d636974792d6170692f762f737461626c65)](https://packagist.org/packages/simon-wessel/teamcity-api)[![Total Downloads](https://camo.githubusercontent.com/d08a9c76ccc9e55f682a72c34e654d1bbd4e3f0139cd3327d82d0ba5069e8b24/68747470733a2f2f706f7365722e707567782e6f72672f73696d6f6e2d77657373656c2f7465616d636974792d6170692f646f776e6c6f616473)](https://packagist.org/packages/simon-wessel/teamcity-api)[![Monthly Downloads](https://camo.githubusercontent.com/4e6acf0ac3b8db11ebb7cabc6fef35e4c8cffe1841a733357970287662202106/68747470733a2f2f706f7365722e707567782e6f72672f73696d6f6e2d77657373656c2f7465616d636974792d6170692f642f6d6f6e74686c79)](https://packagist.org/packages/simon-wessel/teamcity-api)[![License](https://camo.githubusercontent.com/596929479c8bf0c8fac6fbb7ae92a0bbf97fe9ff3cb18fedb4997b143c7d1059/68747470733a2f2f706f7365722e707567782e6f72672f73696d6f6e2d77657373656c2f7465616d636974792d6170692f6c6963656e7365)](https://packagist.org/packages/simon-wessel/teamcity-api)[![Latest Unstable Version](https://camo.githubusercontent.com/2547391fe0b98130f2a76308f3870a0de3e0676b92f657a8730e006a9d53cad3/68747470733a2f2f706f7365722e707567782e6f72672f73696d6f6e2d77657373656c2f7465616d636974792d6170692f762f756e737461626c65)](https://packagist.org/packages/simon-wessel/teamcity-api)

A simple PHP wrapper for the API of your TeamCity instance which may or may not be used as a Laravel package.

This package lacks most API functions provided by TeamCity due to the sheer amount of endpoints. If you need any of the missing functions, just add it to the API class and create a pull request.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Standalone usage](#standalone-usage)
- [Usage with Laravel](#usage-with-laravel)

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

[](#installation)

The package can be installed via composer by running

```
composer require simon-wessel/teamcity-api
```

Standalone usage
----------------

[](#standalone-usage)

```
$url = "https://yoururltoteamcity.com/";
$username = "myusername";
$password = "mypassword";

$teamCityApi = new SimonWessel\TeamCityApi\TeamCityApi($url, $username, $password);

$builds = $teamCityApi->getBuilds();
```

Usage with Laravel
------------------

[](#usage-with-laravel)

### 1. Setup

[](#1-setup)

The package supports package auto-discovery which has been introduced in Laravel 5.5. If you are using 5.5 or above, you can skip this step.

Otherwise you have to add the Service Provider to the `providers` array in your `config/app.php` file:

```
SimonWessel\TeamcityApi\ServiceProvider::class,
```

And if you want to use the Facade, you have to add it to the `aliases` array in the same file:

```
'TeamCity' => \SimonWessel\TeamCityApi\Facade::class,
```

### 2. Configuration

[](#2-configuration)

You will need to configure a TeamCity user account with all permissions for the data and actions you want to access. You can either set the following environment variables in your `.env` file:

```
TEAMCITY_URL=https://yoururltoteamcity.com/
TEAMCITY_USERNAME=myusername
TEAMCITY_PASSWORD=mypassword
```

Or alternatively you can publish the package config file and adjust the settings in there. To do this run this command:

```
php artisan vendor:publish --provider="SimonWessel\TeamCityApi\ServiceProvider"
```

You will get a new config file `config/teamcity.php` with the available settings.

### 3. Usage

[](#3-usage)

You can access the API with the Facade:

```
TeamCity::getBuilds()
```

Or calling the Service Provider singleton directly:

```
app('teamcity')->getBuilds()
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

3211d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9195792?v=4)[Simon Wessel](/maintainers/simon-wessel)[@simon-wessel](https://github.com/simon-wessel)

---

Top Contributors

[![simon-wessel](https://avatars.githubusercontent.com/u/9195792?v=4)](https://github.com/simon-wessel "simon-wessel (3 commits)")

### Embed Badge

![Health badge](/badges/simon-wessel-teamcity-api/health.svg)

```
[![Health](https://phpackages.com/badges/simon-wessel-teamcity-api/health.svg)](https://phpackages.com/packages/simon-wessel-teamcity-api)
```

###  Alternatives

[asana/asana

A PHP client for the Asana API

1381.6M4](/packages/asana-asana)[balanced/balanced

Client for Balanced API

72373.2k](/packages/balanced-balanced)[fab1en/rocket-chat-rest-client

Rocket Chat REST API client in PHP.

4984.7k](/packages/fab1en-rocket-chat-rest-client)[kontent-ai/delivery-sdk-php

Kontent.ai Delivery SDK for PHP

4631.1k1](/packages/kontent-ai-delivery-sdk-php)[maksekeskus/maksekeskus-php

Maksekeskus PHP SDK

13191.7k](/packages/maksekeskus-maksekeskus-php)[nlpcloud/nlpcloud-client

NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, grammar and spelling correction, keywords and keyphrases extraction, chatbot, product description and ad generation, intent classification, text generation, image generation, code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, semantic similarity, tokenization, POS tagging, speech synthesis, embeddings, and dependency parsing. It is ready for production, served through a REST API. This is the PHP client for the API. More details here: https://nlpcloud.com. Documentation: https://docs.nlpcloud.com. Github: https://github.com/nlpcloud/nlpcloud-php

2425.5k1](/packages/nlpcloud-nlpcloud-client)

PHPackages © 2026

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