2017 © Pedro Peláez
 

library basecamp-api

PHP wrapper for new Basecamp API

image

itm2018/basecamp-api

PHP wrapper for new Basecamp API

  • Friday, May 25, 2018
  • by itm2018
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 4 Versions
  • 25 % 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)

"itm2018/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

25/05 2018

dev-master

9999999-dev

PHP wrapper for new Basecamp API

  Sources   Download

MIT

The Requires

 

api php basecamp 37signals

23/05 2018

1.0.2

1.0.2.0

PHP wrapper for new Basecamp API

  Sources   Download

MIT

The Requires

 

api php basecamp 37signals

14/05 2018

1.0.1

1.0.1.0

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