Skip to content

PeteMinus/float-api

 
 

Repository files navigation

float-sdk

Float API for PHP (https://www.float.com/) Forked from 6by6, implemented v3 API support (was v1)

Installation

You can install this library via Composer:

composer require 6by6/float-api

Get Started

Step 1

We're using the jms/serializer annotations for this project which need to be registered before they can be used. Depending on your platform there may be an existing solution (for example, Symfony has JMSSerializerBundle). There is further information regarding configuration here.

If you want to get setup quickly though, we've included the following shortcut.

\SixBySix\Float\Package::registerAnnotations();

Step 2

You'll need to grab your API key from Float (find out how here).

use SixBySix\Float;

Float\FloatClient::setApiKey("INSERT_YOUR_API_KEY");

Step 3

You're ready to go.

use SixBySix\Float\Entity\Person;
use SixBySix\Float\Entity\Project;
use SixBySix\Float\Entity\Task;

$people = Person::getAll();

$projects = Project::getAllActive();

$task = Task::getById(123);

Entities

We have covered the following entities:

Changelist

v0.0.2

  • API v3 support (not completed yet)
  • Tests now failing ;)

v0.0.1

  • First commit
  • Added read-only access to the following entities
    • Account
    • Client
    • Department
    • Holiday
    • Milestone
    • Person (People)
    • Project
    • Task

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%