PHPackages                             mavenlink/mavenlink\_php\_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. mavenlink/mavenlink\_php\_api

AbandonedArchivedLibrary[API Development](/categories/api)

mavenlink/mavenlink\_php\_api
=============================

Mavenlink PHP API Library

213514[5 issues](https://github.com/mavenlink/mavenlink_php_api/issues)[3 PRs](https://github.com/mavenlink/mavenlink_php_api/pulls)PHP

Since Feb 25Pushed 7y ago66 watchersCompare

[ Source](https://github.com/mavenlink/mavenlink_php_api)[ Packagist](https://packagist.org/packages/mavenlink/mavenlink_php_api)[ RSS](/packages/mavenlink-mavenlink-php-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[Mavenlink PHP API Library](#mavenlink-php-api-library)
=======================================================

[](#mavenlink-php-api-library)

[Mavenlink’s](http://mavenlink.com) project collaboration suite allows you to manage your business relationships, share files, and track project activity online from anywhere in the world. Within a project workspace in Mavenlink, you can agree on budget &amp; schedule, track time, send invoices, get paid via PayPal, and complete work.

The Mavenlink API provides programmatic access to many of Mavenlink’s capabilities, including projects, posts, tasks, and time entries. This library will be a full-featured PHP client for the Mavenlink REST API. Right now we have implemented example usage for creation and listing of Mavenlink objects.

[The REST API](#the-rest-api)
-----------------------------

[](#the-rest-api)

We have full [REST API and Ruby client documentation on the wiki](https://github.com/mavenlink/mavenlink_ruby_api/wiki).

[Example Usage](#example-usage)
-------------------------------

[](#example-usage)

```
require 'lib/mavenlink_api.php'

$mavenlinkApi = new MavenlinkApi('');

// Get workspaces
$workspaces_json = $mavenlinkApi->getWorkspaces();
$workspaces = json_decode($workspaces_json);

// Get a specific workspace
$workspace_json = $mavenlinkApi->getWorkspace();

// Get events
$events_json = $mavenlinkApi->getEvents();

// Create a post in a workspace (Please see the {REST API and Ruby client documentation on the wiki}[https://github.com/mavenlink/mavenlink_ruby_api/wiki] for valid parameters.)
$response = $mavenlinkApi->createPostForWorkspace(, array('post[message]' => 'Test message'))

// Update a post in a workspace
$response = $mavenlinkApi->updateWorkspacePost(8, 20, array("post[message]" => "Updated message"));

// Delete a workspace post
$response = $mavenlinkApi->deleteWorkspacePost(8, 19)

// Create a story in a workspace
$response = $mavenlinkApi->createStoryForWorkspace(8, array('story[title]' => 'Test story', 'story[story_type]' => 'deliverable'));
```

### [Example Scripts](#example-scripts)

[](#example-scripts)

Try running our examples:

```
1: Edit examples/api_example.php to include your Mavenlink OAuth API Token.
2: Run
   php examples/api_example.php

   or

1: Edit examples/test.php to include your Mavenlink OAuth API Token.
2: cd into examples and Run
   php test.php
```

[Credentials](#credentials)
---------------------------

[](#credentials)

### [Finding your OAuth Token](#finding-your-oauth-token)

[](#finding-your-oauth-token)

Your OAuth API Token is available on your Mavenlink user settings page within the API tab. Follow the instructions to register your application and retrieve your OAuth token.

### [Security](#security)

[](#security)

For security, the API is provided over SSL only. Additionally, you should consider your API OAuth token to be much like a password. Someone with your token can make changes to your Mavenlink account and perform actions in your name. If you believe that your token has been compromised, login to Mavenlink and revoke your OAuth token from your account user settings page.

[Contributing to the Mavenlink PHP API Library](#contributing-to-the-mavenlink-php-api-library)
-----------------------------------------------------------------------------------------------

[](#contributing-to-the-mavenlink-php-api-library)

We strive to keep the PHP API up-to-date with our REST API. However, if you find a feature missing, feel free to contribute it.

- Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet
- Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it
- Fork the project
- Start a feature/bugfix branch
- Commit and push until you are happy with your contribution

[Copyright](#copyright)
-----------------------

[](#copyright)

Copyright © 2012 Mavenlink, Inc. See LICENSE.txt for further details.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/777eb5227fd197437e3d9f8f1b99cf49252a07a95b6b8a60e0bb36add37b480d?d=identicon)[racerpeter](/maintainers/racerpeter)

---

Top Contributors

[![cantino](https://avatars.githubusercontent.com/u/83835?v=4)](https://github.com/cantino "cantino (5 commits)")[![sufyanadam](https://avatars.githubusercontent.com/u/1106558?v=4)](https://github.com/sufyanadam "sufyanadam (2 commits)")[![DragosMocrii](https://avatars.githubusercontent.com/u/1543960?v=4)](https://github.com/DragosMocrii "DragosMocrii (1 commits)")[![EpocSquadron](https://avatars.githubusercontent.com/u/414963?v=4)](https://github.com/EpocSquadron "EpocSquadron (1 commits)")[![perspectivezoom](https://avatars.githubusercontent.com/u/1837622?v=4)](https://github.com/perspectivezoom "perspectivezoom (1 commits)")

### Embed Badge

![Health badge](/badges/mavenlink-mavenlink-php-api/health.svg)

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

###  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)
