Float API for PHP (https://www.float.com/) Forked from 6by6, implemented v3 API support (was v1)
You can install this library via Composer:
composer require 6by6/float-api
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();
You'll need to grab your API key from Float (find out how here).
use SixBySix\Float;
Float\FloatClient::setApiKey("INSERT_YOUR_API_KEY");
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);
We have covered the following entities:
- API v3 support (not completed yet)
- Tests now failing ;)
- First commit
- Added read-only access to the following entities
- Account
- Client
- Department
- Holiday
- Milestone
- Person (People)
- Project
- Task