Package Data | |
---|---|
Maintainer Username: | Rkallenkoot |
Maintainer Contact: | roelof@kallencode.nl (Roelof Kallenkoot) |
Package Create Date: | 2017-01-21 |
Package Last Update: | 2017-07-14 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:02:20 |
Package Statistics | |
---|---|
Total Downloads: | 263 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 2 |
Total Forks: | 2 |
Total Open Issues: | 1 |
Simple package for interacting the the Wakatime API
You can install the package via composer:
composer require kallencode/laravel-wakatime
Install the ServiceProvider.
// config/app.php
'providers' => [
...
Kallencode\Wakatime\WakatimeServiceProvider::class,
...
];
This package also comes with a facade:
// config/app.php
'aliases' => [
...
'Wakatime' => Kallencode\Wakatime\WakatimeFacade::class,
...
];
You can publish the config file of this package with this command:
php artisan vendor:publish --provider="Kallencode\Wakatime\WakatimeServiceProvider"
The following config file will be published in config/laravel-wakatime.php
return [
'apiKey' => env('WAKATIME_API_KEY'),
'baseURl' => env('WAKATIME_BASE_URL','https://wakatime.com/api/v1/')
];
$userDurations = Wakatime::fetchUserDuration(\Carbon\Carbon::now());
or use any not-yet-implemented wakatime API resource:
$result = Wakatime::performRequest("new/resource", [
'date' => \Carbon\Carbon::now()->format('Y-m-d'),
'project' => 'project'], []);
Go to https://wakatime.com/account/settings
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email info@kallencode.nl instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.