PHPackages                             jaggy/work-scripts - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jaggy/work-scripts

ActiveScript[Utility &amp; Helpers](/categories/utility)

jaggy/work-scripts
==================

My scripts for work.

0.4.4(9y ago)012MITPHP

Since Jul 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jaggy/work-scripts)[ Packagist](https://packagist.org/packages/jaggy/work-scripts)[ RSS](/packages/jaggy-work-scripts/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (13)Used By (0)

Work Scripts
============

[](#work-scripts)

This is a small library to make everything a tad bit easier at work.

The company I work at heavily depends on Basecamp in logging our work hours. So I came up with a small cli script to just use the git commits to log the hours.

Dependencies
------------

[](#dependencies)

- `sleepwatcher`
- `php >= 5.5`

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

[](#installation)

You can install the scripts with composer

```
composer global require jaggy/work-scripts

```

Usage
-----

[](#usage)

Before I get into the nitty gritty parts, let's just show it off to see how it works.

```
$ work time:log

Yow! (￣^￣)ゞ
Which project would you like to add an entry to? [It might take a while to fetch the project list]
1: xxxxxxxxxxxxxxxxxxxxxxx
2: xxxxxxxxxxxxxxxxxxxxxxx
3: xxxxxxxxxxxxxxxxxxxxxxx
4: xxxxxxxxxxxxxxxxxxxxxxx
Enter the id of the project: [Leave blank to cancel]: 2
Log description []: Update the project readme.
How many hours did this task take? [2.25 hours remaining]]: 2
Project ID: xxxxxxxxxxx
Log Description: Update the project readme
Rendered Hours: 0.2
Is the provided data correct? [n] y
Sending the data to basecamp...
Time is now logged! You're good to go! (╯°□°）╯︵ ┻━┻
```

Also, you can just force the parameters. This is how the git hook makes everything much easier.

```
work time:log --project= --description="Log Entry" --hours=1.0

```

More or less, that's basically how it works.

Configuration
-------------

[](#configuration)

### Setting up Basecamp

[](#setting-up-basecamp)

`~/.workrc`

To make the work scripts work, you need to register your environment in your home directory `~/.workrc`.

```
BASECAMP_URL=null
BASECAMP_USERNAME=null
BASECAMP_PASSWORD=null

```

### Initializing a project

[](#initializing-a-project)

To initialize your project, you just need to run `work init`. From there, it'll do the following:

- Register `.work` in your `.gitignore`
- Create a `.work` file in your project root.
- Ask which basecamp project you want to assiciate with that project and register it to your work config.
- Ask if you want to write a prefix for your logs.
- Register a `post-commit` git hook to your project.

Commands
--------

[](#commands)

CommandDescription`init`Initialize the current directory as a work project.`scrum`Start a SCRUM session and log to basecamp.`time:log`Log a time entry to basecamp.`time:remaining`Fetch the remaining hours to render from basecamp.`time:in`Sends a message to the skype channel that you're in.`time:out`Say your goodbyes!Notes
-----

[](#notes)

**Fetch the current SSID**

```
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}'

```

Todo
----

[](#todo)

- Add caching to avoid repeated requests to basecamp.
- Add an offline handler to send the basecamp log once an internet connection is detected.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~1 days

Total

12

Last Release

3612d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1993075?v=4)[Jaggy](/maintainers/jaggy)[@jaggy](https://github.com/jaggy)

---

Top Contributors

[![jaggy](https://avatars.githubusercontent.com/u/1993075?v=4)](https://github.com/jaggy "jaggy (64 commits)")

### Embed Badge

![Health badge](/badges/jaggy-work-scripts/health.svg)

```
[![Health](https://phpackages.com/badges/jaggy-work-scripts/health.svg)](https://phpackages.com/packages/jaggy-work-scripts)
```

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)

PHPackages © 2026

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