PHPackages                             pingsrl/laravel-clockify-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. pingsrl/laravel-clockify-api

ActiveLibrary[API Development](/categories/api)

pingsrl/laravel-clockify-api
============================

1.1.0(3y ago)115MITPHPPHP &gt;=7.4

Since Feb 10Pushed 3y agoCompare

[ Source](https://github.com/pingsrl/laravel-clockify-api)[ Packagist](https://packagist.org/packages/pingsrl/laravel-clockify-api)[ Docs](https://github.com/pingsrl/laravel-clockify-api)[ RSS](/packages/pingsrl-laravel-clockify-api/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Laravel Clockify API WIP
========================

[](#laravel-clockify-api-wip)

[![Latest Version on Packagist](https://camo.githubusercontent.com/138df2630a35a688634b7c22b16164922530b864aec5835821f4520b6b2bef72/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f75726365626f61742f6c61726176656c2d636c6f636b6966792d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sourceboat/laravel-clockify-api)[![Build Status](https://camo.githubusercontent.com/ac926265e65ebd8d45a8ca607e96221094308fac101a7fce452e3469aa292f65/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736f75726365626f61742f6c61726176656c2d636c6f636b6966792d6170692f646576656c6f702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sourceboat/laravel-clockify-api)[![Total Downloads](https://camo.githubusercontent.com/281038a13d2f9c6a3edd60377c293a634eb47279d8d335350387afd38536870b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f75726365626f61742f6c61726176656c2d636c6f636b6966792d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sourceboat/laravel-clockify-api)

Laravel repository to fetch reports from the Clockify.me reports API.

Official clockify API:

Installation
------------

[](#installation)

1. You can install the package via composer:

    `composer require pingsrl/laravel-clockify-api`

    Optional: The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:

    ```
    'providers' => [
        // ...
        Ping\LaravelClockifyApi\LaravelClockifyApiServiceProvider::class,
    ];

    ```
2. You should publish the config/clockify.php config file with:

    `php artisan vendor:publish --provider="Ping\LaravelClockifyApi\LaravelClockifyApiServiceProvider"`
3. Configure `.env`

    Add your clockify attributes to your `.env`

    ```
    CLOCKIFY_API_KEY=1234567890
    CLOCKIFY_WORKSPACE_ID=1234567890

    ```

Usage
-----

[](#usage)

### Basically

[](#basically)

You can get a report by creating a report and calling the `get()` function.

```
$summaryResponseBody = ClockifyRepository::makeSummaryReport()->get();
$detailedResponseBody = ClockifyRepository::makeDetailedReport()->get();

```

### Specialized usage

[](#specialized-usage)

You can further specify the request data by calling the corresponding functions.

The order of the function calls does not matter, except the `get()`-function call. This function has to be the last function which gets called. It represents the executer function and executes the request itself.

#### Example

[](#example)

The following example requests an summary report for user USER\_ID\_1 and USER\_ID\_2, from two days ago until today. The results will be sorted ascending.

```
$summaryResponseBody = ClockifyRepository::makeSummaryReport()
    ->users([USER_ID_1, USER_ID_2])
    ->from(now()->subDays(2))
    ->to(now())
    ->sortOrder('ASCENDING')
    ->get();

```

### Attributes to specify a request

[](#attributes-to-specify-a-request)

| Attribute | function | default behaviour or `value`
(when not set) | possible for reports | | -------------------- | ----------------------------------- | ----------------------------------------------- | ---------------------- | --- | ------- | ----------------------- | --- | --- | | `users` | `users(array $userIds)` | all | ALL | | `tasks` | `tasks(array $taskIds)` | all | ALL | | `containsTags` | `containsTags(array $tagIds)` | `CONTAINS` | ALL | | `containsOnlyTags` | `containsOnlyTags(array $tagIds)` | `CONTAINS` | ALL | | `doesNotContainTags` | `doesNotContainTags(array $tagIds)` | `CONTAINS` | ALL | | `tasks` | `tasks(array $taskIds)` | all | ALL | | `from` | `from(Carbon $fromDate)` | start of current year | ALL | | `to` | `to(Carbon $endDate)` | end of current year | ALL | | `sortOrder` | `sortOrder(string $sortOrder)` | `DESCENDING` | ALL | | `filterGroups` | `filterGroups(array $filterGroups)` | `['USER', 'PROJECT', 'TIMEENTRY']` | ClockifySummaryReport | | `page` | `page(int $page)` | 1 | ClockifyDetailedReport | | `pageSize` | `pageSize(int $pageSize)` | 50 | ClockifyDetailedReport |

Changelog
---------

[](#changelog)

Check [releases](https://github.com/sourceboat/laravel-clockify-api/releases) for all notable changes.

Credits
-------

[](#credits)

- [Sebastian Müller](https://github.com/SebastianMueller87)
- [Simon Hansen](https://github.com/krns)
- [All Contributors](https://github.com/sourceboat/laravel-clockify-api/graphs/contributors)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

2

Last Release

1176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/246996328ac6684070161cbf7705d45f385e97424c93d98207ae0e763410eff5?d=identicon)[G3z](/maintainers/G3z)

---

Top Contributors

[![SebastianMueller87](https://avatars.githubusercontent.com/u/7387298?v=4)](https://github.com/SebastianMueller87 "SebastianMueller87 (30 commits)")[![G3z](https://avatars.githubusercontent.com/u/875086?v=4)](https://github.com/G3z "G3z (21 commits)")[![krns](https://avatars.githubusercontent.com/u/7387295?v=4)](https://github.com/krns "krns (13 commits)")[![pehbehbeh](https://avatars.githubusercontent.com/u/133831?v=4)](https://github.com/pehbehbeh "pehbehbeh (1 commits)")

---

Tags

apilaravelreportsclockifypingsrl

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pingsrl-laravel-clockify-api/health.svg)

```
[![Health](https://phpackages.com/badges/pingsrl-laravel-clockify-api/health.svg)](https://phpackages.com/packages/pingsrl-laravel-clockify-api)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M110](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
