PHPackages                             onesky/api-library-php5 - 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. onesky/api-library-php5

ActiveLibrary[API Development](/categories/api)

onesky/api-library-php5
=======================

PHP interface for OneSky Platform API

v1.0.5(10y ago)191.2M—6.3%11[8 issues](https://github.com/onesky/api-library-php5/issues)9MITPHPPHP &gt;=5.1.0

Since Dec 11Pushed 2y ago14 watchersCompare

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

READMEChangelogDependencies (1)Versions (6)Used By (9)

[![Build Status](https://camo.githubusercontent.com/8ee0b58031f50100fa79f133b98cedfef8157573009fd7e72b4ad033ed78e0df/68747470733a2f2f7472617669732d63692e6f72672f6f6e65736b792f6170692d6c6962726172792d706870352e737667)](https://travis-ci.org/onesky/api-library-php5)[![Code Coverage](https://camo.githubusercontent.com/9708d71a9abccb0e6bcf2b927e69680c9af5e5a487c0050675a15995d380faad/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f6e65736b792f6170692d6c6962726172792d706870352f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/onesky/api-library-php5/?branch=master)

Onesky PHP5 API Library
=======================

[](#onesky-php5-api-library)

PHP5 library for OneSky API

Requirements
------------

[](#requirements)

- PHP 5.1 or higher
- CURL extension

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

[](#installation)

Install the latest version with `composer require onesky/api-library-php5`

How to use
----------

[](#how-to-use)

**Create instance**

```
use Onesky\Api\Client;

$client = new Client();
```

**Set API key and secret**

```
$client->setApiKey('')->setSecret('');
```

**Way to make request**

```
// resource   => name of resource in camelcase with 's' tailing such as 'projectTypes', 'quotations', 'importTasks'
// action     => action to take such as 'list', 'show', 'upload', 'export'
// parameters => parameters passed in the request including URL param such as 'project_id', 'files', 'locale'
$client->{resource}('{action}', array({parameters}));
```

**Sample request and get response in array**

```
// list project groups
$response = $client->projectTypes('list');
$response = json_decode($response, true);

// show a project
$response = $client->projects('show', array('project_id' => 999));
$response = json_decode($response, true);

// upload file
$response = $client->files('upload', array(
    'project_id'  => 999,
    'file'        => 'path/to/string.yml',
    'file_format' => 'YAML',
    'locale'      => 'fr'
));
$response = json_decode($response, true);

// export translation
$response = $client->translations('export', array(
    'project_id' => 999,
    'locale'     => 'ja',
    'source_file_name' => 'string.yml'
));
file_put_contents('path/to/file', $response);

// create order
$response = $client->orders('create', array(
    'project_id' => 999,
    'files'      => 'string.yml',
    'to_locale'  => 'de'
));
$response = json_decode($response, true);
```

How to contribute
-----------------

[](#how-to-contribute)

- [Raise issues or questions](https://github.com/onesky/api-library-php5/issues)
- [Create Pull Requests](https://github.com/onesky/api-library-php5/pulls)

Or pick one of [the issues](https://github.com/onesky/api-library-php5/issues) and create a PR to solve it.

How to run tests
----------------

[](#how-to-run-tests)

Note: need to install dependencies using [composer](https://getcomposer.org/) to have phpunit.

```
vendor/bin/phpunit
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

5

Last Release

3997d ago

### Community

Maintainers

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

---

Top Contributors

[![BernardoSilva](https://avatars.githubusercontent.com/u/1537510?v=4)](https://github.com/BernardoSilva "BernardoSilva (10 commits)")[![peterjaap](https://avatars.githubusercontent.com/u/431360?v=4)](https://github.com/peterjaap "peterjaap (3 commits)")[![k3nn7](https://avatars.githubusercontent.com/u/2681989?v=4)](https://github.com/k3nn7 "k3nn7 (2 commits)")[![brandesign](https://avatars.githubusercontent.com/u/1769570?v=4)](https://github.com/brandesign "brandesign (2 commits)")[![VLMH](https://avatars.githubusercontent.com/u/1217345?v=4)](https://github.com/VLMH "VLMH (2 commits)")[![skolodyazhnyy](https://avatars.githubusercontent.com/u/576301?v=4)](https://github.com/skolodyazhnyy "skolodyazhnyy (1 commits)")[![valorin](https://avatars.githubusercontent.com/u/897369?v=4)](https://github.com/valorin "valorin (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/onesky-api-library-php5/health.svg)

```
[![Health](https://phpackages.com/badges/onesky-api-library-php5/health.svg)](https://phpackages.com/packages/onesky-api-library-php5)
```

###  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)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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