2017 © Pedro Peláez
 

library basecamp-api

PHP wrapper for new Basecamp API

image

arturf/basecamp-api

PHP wrapper for new Basecamp API

  • Saturday, August 20, 2016
  • by arturf
  • Repository
  • 5 Watchers
  • 7 Stars
  • 10,213 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 3 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

A PHP Wrapper for use with the new Basecamp API.

Simple PHP library to communicate with Basecamp. Works only with new Basecamp., (*1)

This library use HTTP caching ETag according this recommendation., (*2)

TODO: Pagination., (*3)

Installation

Install Composer, (*4)

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

Add the following to your require block in composer.json config., (*5)

"arturf/basecamp-api": "dev-master"

Include Composer's autoloader:, (*6)

require_once dirname(__DIR__).'/vendor/autoload.php';

API Usage

Get client, (*7)

$client = new \Basecamp\Client([
    'accountId' => '', // Basecamp account ID
    'appName' => '', // Application name (used as User-Agent header)

    // OAuth token
    'token' => '',
    // or
    'login' => '', // 37Signal's account login
    'password' => '', // 37Signal's account password
]);

List of all active projects, (*8)

$projects = $client->projects()->active();

Create new project, (*9)

$newProject = $client->projects()->create(
    [
        'name' => 'Name of project',
        'description' => 'Some description',
    ]
);

Update existing project, (*10)

$updateProject = $client->projects()->update(
    $projectId,
    [
        'name' => 'New name of project',
        'description' => 'Some description',
    ]
);

Contributing

Welcome :), (*11)

The Versions

20/08 2016

dev-master

9999999-dev

PHP wrapper for new Basecamp API

  Sources   Download

MIT

The Requires

 

api php basecamp 37signals

25/09 2015

dev-analysis-XNxeyz

dev-analysis-XNxeyz

PHP wrapper for new Basecamp API

  Sources   Download

MIT

The Requires

 

api php basecamp 37signals