PHPackages                             ontimetools/api-sdk - 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. ontimetools/api-sdk

ActiveLibrary[API Development](/categories/api)

ontimetools/api-sdk
===================

Axosoft's OnTime API SDK

146PHP

Since Feb 23Pushed 11y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

\#OnTimeTools Api SDK

[![Build Status](https://camo.githubusercontent.com/b0f04ba423350a9ad930fd322a3cd596f53e52ec2418ee6001865c34c20fd043/68747470733a2f2f7472617669732d63692e6f72672f6f6e74696d65746f6f6c732f6170692d73646b2e737667)](https://travis-ci.org/ontimetools/api-sdk)

OTTAS is a simple PHP lib that allows you to request Axosoft's OnTime API in an easy way.

```
"require": {
    "ontimetools/api-sdk": "v1.0.*"
}
```

To use it, you only have to follow those easy steps ####1- Create a 'ConnectionRequest' object

```
use OTT\Api\Connection\ConnectionRequest;
$request = new ConnectionRequest();
$request->setOntimeUrl('https://mysubdomain.axosoft.com');
$request->setClientId('my-client_id');
$request->setClientSecret('my-client-secret');
$request->setUsername('username');
$request->setPassword('password');
```

An OnTime() object needs a Request object with all you account information. You can choose the connection type simply by setting the right parameters ([here is the official documentation](http://developer.axosoft.com/authentication.html)). In that example, I'm using the [Username/Password](http://developer.axosoft.com/authentication/username-password.html) way (it's a way easier to use). ####2- Instanciate an 'OnTime' object with you 'ConnectionRequest' object

```
use OTT\Api\OnTime;
$ontime = new OnTime($request);
```

You also can give a valid token as a parameter to the object so it won't automatically request a new one to the API.

```
$token = $request->setSavedToken($_SESSION['access_token']);
$ontime = new OnTime($request);
```

\####3- Get some data from OnTime If you want to get some data from OnTime (here projects datas) by giving arguments, you have 2 possible ways to do so :

```
// No arguments
$projects = $ontime->projects();

// 1° - I want the project #42
$project = $ontime->projects(42);

// 2° - I still want the same project but with more info
use OTT\Api\Filter\Projects as ProjectsFilter;
$filter = new ProjectsFilter();
$filter->setId(42);
$filter->setExtend('all');
$filter->setAttachments(true);
$project = $ontime->projects($filter);
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d9150374222ec4d3d6ceee92bb01a8db3b937a780f60eb8b1577103ce33a85e?d=identicon)[UbikZ](/maintainers/UbikZ)

![](https://www.gravatar.com/avatar/8fd0e16125f33f962d87446cc592c306f32f3b5bdcf7079c946f95434e0253f8?d=identicon)[aroybase](/maintainers/aroybase)

### Embed Badge

![Health badge](/badges/ontimetools-api-sdk/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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