Download the PHP package idoko-emmanuel/ticket-context-cli without Composer

On this page you can find all versions of the php package idoko-emmanuel/ticket-context-cli. 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 ticket-context-cli

ticket-context-cli

PHP Version Laravel Latest Version on Packagist Total Downloads License: MIT Install

A personal CLI tool that pulls your active Jira sprint tickets and generates rich Markdown context files optimised for pasting into Claude Code (or any AI coding assistant).

Run it from any project repo on your machine. It automatically scopes to the right Jira project and git branch.


Why this tool?

Switching to a new ticket used to mean 5 browser tabs open, copy-pasting ticket details into Claude, manually creating a branch, and hoping I hadn't missed any acceptance criteria.

Now one command (tix branch LTN-42) creates the branch, fetches the full ticket, and saves a structured Markdown context file. Claude Code reads it automatically at session start via its skills system — so the AI already knows exactly what I'm building before I type a word.


How it works


Requirements


Installation

One-line install

The install script checks for PHP, installs Composer if it's missing, clones the repo, sets everything up, and adds the tix shell function automatically.

Then reload your shell:

Alternative: Composer global install

If you already have Composer installed and prefer managing tools through it:

Ensure ~/.composer/vendor/bin is in your PATH after installing.

Manual install

If you prefer to run each step yourself:

1. Install Composer (skip if already installed)

2. Clone and install

3. Add the global shell function

Add this to your ~/.zshrc or ~/.bashrc:

Then reload:

You can now run tix <command> from any directory on your machine.


Uninstallation

This will:


Setup

Configure your Jira credentials

You will be prompted for:

Prompt Example Where to find it
Atlassian subdomain your-org Your Jira URL: https://your-org.atlassian.net
Jira account email [email protected] The email you log into Jira with
API token ATATTx... id.atlassian.com/manage-profile/security/api-tokens

Credentials are saved to ~/.config/ticket-context/config.json with chmod 600 — never inside any project repo.

Verify the connection

Shows your credentials status, live connection test, and current project link.


Per-project setup

Run once from the root of each project repo you want to track:

This creates .ticket-context.json in the repo root and adds .claude/skills/ticket-context/*-context.md to .gitignore.

Your project key is the prefix of every ticket — e.g. LTN from LTN-42. You can also find it in your Jira board URL:


Daily workflow

1. See your active sprint tickets

Shows a table of tickets assigned to you in the current sprint, filtered to the linked project. Use --all to see across all projects, --json for raw output.

2. Start a ticket — create a branch and save context

This will:

Also transition the ticket when branching

Link multiple tickets to one branch

All tickets are linked to the branch. A combined context file is saved with each ticket as a separate section.

Skip branch creation (just save context)

3. Generate or refresh context

With no arguments, auto-detects tickets from the current git branch, saves the context to .claude/skills/ticket-context/ and prints a confirmation. Explicit keys work the same way:

Optionally transition at the same time:

4. Move a ticket to a different status

Auto-detects tickets from the current branch and moves all of them. You can also pass explicit keys — no quotes needed for multi-word statuses:

5. Check available statuses

Lists all statuses available in the linked project — useful when you're not sure of the exact name to pass to --transition or tix move.


Claude Code integration

A Claude skill file is automatically written to .claude/skills/ticket-context/SKILL.md the first time any tix command is run in a linked project. Claude Code reads skills from .claude/skills/ at session start, so ticket context is loaded automatically — no manual configuration needed.

Manual use

You can also reference a context file explicitly at any time:


Command reference

Command Description
tix help Show all commands and their options
tix configure Set Jira credentials interactively
tix health Check config status and test connection
tix link <PROJECT-KEY> Link current directory to a Jira project
tix sprint List active sprint tickets (scoped to linked project)
tix sprint --all List active sprint tickets across all projects
tix sprint --json Output raw JSON
tix branch <KEY> [KEY...] Create branch, link ticket(s), save context file(s)
tix branch <KEY> --no-branch Skip branch creation, only save context
tix branch <KEY> --transition=STATUS Also transition ticket(s) to a status
tix context Fetch and save context for current branch's linked tickets
tix context <KEY> [KEY...] Fetch and save context for specific ticket(s)
tix context --transition=STATUS Also transition ticket(s) to a status
tix move [KEY...] <STATUS> Move ticket(s) to a status (auto-detects from branch)
tix statuses [PROJECT] List available statuses for the project

File reference

File Purpose Committed?
~/.config/ticket-context/config.json Global Jira credentials Never
.ticket-context.json Project key + branch→ticket mappings No
.claude/skills/ticket-context/SKILL.md Claude skill definition (auto-generated) No
.claude/skills/ticket-context/*-context.md Generated context Markdown files No (gitignored)

Contributing

  1. Create a feature branch from main:

  2. Make your changes and commit them.

  3. Push your branch and open a pull request against main:

  4. Ensure the CI checks (lint, unit tests, feature tests) pass before requesting a review.

License

MIT


All versions of ticket-context-cli with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^12.0
laravel/tinker Version ^2.10.1
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 idoko-emmanuel/ticket-context-cli contains the following files

Loading the files please wait ...