2017 © Pedro Peláez
 

library laravel-workfront

Provides Workfront API Operations to Laravel 5.x

image

willvincent/laravel-workfront

Provides Workfront API Operations to Laravel 5.x

  • Wednesday, April 6, 2016
  • by willvincent
  • Repository
  • 0 Watchers
  • 1 Stars
  • 167 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

WorkFront API client for Laravel 5.x

Perform all Operations of WorkFront APIs with Laravel 5.x, (*1)

Installation

To get the latest version of laravel-workfront, simply add the following line to the require block of your composer.json file:, (*2)

"willvincent/laravel-workfront": "dev-master"

You'll then need to run composer install or composer update to download it and have the autoloader updated., (*3)

Once added to your laravel project, you will want to add the service provider. Find the providers key in your config/app.php file and register the service provider:, (*4)

'providers' => [
    // ...

    willvincent\Workfront\WorkfrontServiceProvider::class,
],

Also locate the Aliases key in your config/app.php file and register the Facade:, (*5)

'aliases' => [
    // ...

    'Workfront' => willvincent\Workfront\Facades\WorkfrontFacade::class,
],

Finally, run php artisan vendor:publish to copy the default config into your app's config directory. Update the config with your proper credentials., (*6)

Usage

$client = Workfront::client();
$client->login();  // You can optionally pass username/email and password here, otherwise the values from the config file will be used.

// Fetch all fields for all projects with a status of CUR or PLN, that are less than 100% complete.
$results = $client->search(
  'project',                          // workfront object code
  array(                              // query
    'status' => array('CUR', 'PLN'),
    'status_Mod' => 'in',
    'percentComplete' => 100,
    'percentComplete_Mod' => 'lt'
  ),
  '*'                                 // fields (can also be an array of specific fields)
);

$client->logout();

You can find other Operations and API informattion here., (*7)

License

Laravel Workfront is licensed under The MIT License (MIT)., (*8)

Credits

This is based on example code provided by Workfront, as part of their API Documentation., (*9)

The Versions

06/04 2016

dev-master

9999999-dev

Provides Workfront API Operations to Laravel 5.x

  Sources   Download

MIT

The Requires

 

by Will Vincent

laravel framework attask attaskapi workfront workfrontapi

06/04 2016

1.0.0

1.0.0.0

Provides Workfront API Operations to Laravel 5.x

  Sources   Download

MIT

The Requires

 

by Will Vincent

laravel framework attask attaskapi workfront workfrontapi