LaravelPackages.net
Acme Inc.
Toggle sidebar
kallencode/laravel-wakatime

A laravel 5 package to interact with the Wakatime API.

264
4
1.0.0
About kallencode/laravel-wakatime

kallencode/laravel-wakatime is a Laravel package for a laravel 5 package to interact with the wakatime api.. It currently has 4 GitHub stars and 264 downloads on Packagist (latest version 1.0.0). Install it with composer require kallencode/laravel-wakatime. Discover more Laravel packages by kallencode or browse all Laravel packages to compare alternatives.

Last updated

Wakatime API for laravel

Latest Version on Packagist Software License Build Status Quality Score Total Downloads

Simple package for interacting the the Wakatime API

Installation

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/')

];

Usage

$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'], []);

Finding your API key

Go to https://wakatime.com/account/settings

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

About Kallencode

Kallencode

License

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

Comments