Download the PHP package mabasic/wakatime-php-api without Composer

On this page you can find all versions of the php package mabasic/wakatime-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wakatime-php-api

WakaTime PHP API

WakaTime API for PHP

Become a Patron

Overview

This is a PHP package for WakaTime API. It supports resource endpoints from WakaTime API with additional helper methods for hours logged.

If you are using Laravel check out WakaTime Reports and Laravel.

If you find that some resource endpoints are missing feel free to send me a PR. (Be sure to include tests for your code)

Installation

Type this from command line:

Usage

You can get your Api Key from your settings page.

Resource Endpoints

Users

See: https://wakatime.com/developers/#users for details.

Summaries

See: https://wakatime.com/developers/#summaries for details.

Stats

See: https://wakatime.com/developers/#stats for details.

Heartbeats

See: https://wakatime.com/developers#heartbeats for details.

Helper methods aka Reports aka Shortcuts

getHoursLoggedFor

Calculates hours logged for a specific period. You can optionally specify a project.

$startDate must be lower than $endDate

Example:

getHoursLoggedForLast

Calculates hours logged in last xy days, months. You can optionally specify a project.

Example:

getHoursLoggedForToday

Returns hours logged today. You can optionally specify a project.

getHoursLoggedForYesterday

Returns hours logged yesterday. You can optionally specify a project.

getHoursLoggedForLast7Days

Basic users can only see data for maximum 7 days. Become a Premium user to preserve all data history. You can still use any method as long as it is under 7 days.

getHoursLoggedForLast30Days

Calculates hours logged for last 30 days in history. You can optionally specify a project.

getHoursLoggedForThisMonth

Calculates hours logged for this month. You can optionally specify a project.

getHoursLoggedForLastMonth

Calculates hours logged for last month. You can optionally specify a project.


For developers only

Copy .env.example file to .env and set your api key and project name before running tests with:

Laravelista Sponsors & Backers

I would like to extend my thanks to the following sponsors & backers for funding my open-source journey. If you are interested in becoming a sponsor or backer, please visit the Laravelista Backers page.

Contributing

Thank you for considering contributing to WakaTime PHP API! The contribution guide can be found on the Laravelista website.

Code of Conduct

In order to ensure that the Laravelista community is welcoming to all, please review and abide by the Code of Conduct.

License

WakaTime PHP API is open-source software licensed under the MIT license.


All versions of wakatime-php-api with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
guzzlehttp/guzzle Version ~6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mabasic/wakatime-php-api contains the following files

Loading the files please wait ....