2017 © Pedro Peláez
 

library laravel-wakatime

A laravel 5 package to interact with the Wakatime API.

image

kallencode/laravel-wakatime

A laravel 5 package to interact with the Wakatime API.

  • Friday, July 14, 2017
  • by Rkallenkoot
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Wakatime API for laravel

Latest Version on Packagist Software License Build Status Quality Score Total Downloads, (*1)

Simple package for interacting the the Wakatime API, (*2)

Installation

You can install the package via composer:, (*3)

``` bash composer require kallencode/laravel-wakatime, (*4)


Install the ServiceProvider. ```php // config/app.php 'providers' => [ ... Kallencode\Wakatime\WakatimeServiceProvider::class, ... ];

This package also comes with a facade:, (*5)

// config/app.php
'aliases' => [
    ...
    'Wakatime' => Kallencode\Wakatime\WakatimeFacade::class,
    ...
];

You can publish the config file of this package with this command:, (*6)

php artisan vendor:publish --provider="Kallencode\Wakatime\WakatimeServiceProvider"

The following config file will be published in config/laravel-wakatime.php, (*7)

return [

    'apiKey' => env('WAKATIME_API_KEY'),

    'baseURl' => env('WAKATIME_BASE_URL','https://wakatime.com/api/v1/')

];

Usage

``` php $userDurations = Wakatime::fetchUserDuration(\Carbon\Carbon::now());, (*8)


or use any not-yet-implemented wakatime API resource: ```php $result = Wakatime::performRequest("new/resource", [ 'date' => \Carbon\Carbon::now()->format('Y-m-d'), 'project' => 'project'], []);

Finding your API key

Go to https://wakatime.com/account/settings, (*9)

Changelog

Please see CHANGELOG for more information what has changed recently., (*10)

Testing

bash $ composer test, (*11)

Contributing

Please see CONTRIBUTING for details., (*12)

Security

If you discover any security related issues, please email info@kallencode.nl instead of using the issue tracker., (*13)

Credits

About Kallencode

Kallencode, (*14)

License

The MIT License (MIT). Please see License File for more information., (*15)

The Versions

14/07 2017

dev-develop

dev-develop https://github.com/kallencode/laravel-wakatime

A laravel 5 package to interact with the Wakatime API.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel wakatime kallencode

25/01 2017

dev-master

9999999-dev https://github.com/kallencode/laravel-wakatime

A laravel 5 package to interact with the Wakatime API.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel wakatime kallencode

21/01 2017

1.0.0

1.0.0.0 https://github.com/kallencode/laravel-wakatime

A laravel 5 package to interact with the Wakatime API.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel wakatime kallencode