PHPackages                             blomstra/linear - 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. blomstra/linear

ActiveLibrary[API Development](/categories/api)

blomstra/linear
===============

An API client for Linear

0.1.6(2y ago)375↓100%3[1 issues](https://github.com/blomstra/linear/issues)1MITPHP

Since Jan 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/blomstra/linear)[ Packagist](https://packagist.org/packages/blomstra/linear)[ Docs](https://blomstra.net)[ RSS](/packages/blomstra-linear/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (8)Used By (1)

A PHP SDK for Linear
====================

[](#a-php-sdk-for-linear)

This is a typed PHP SDK for the [Linear](https://linear.app) API. It contains functionality that would be most commonly needed when integrating with Linear, but does not expose every GraphQL endpoint.

Capabilities
------------

[](#capabilities)

Using this SDK you can:

- Create, retrieve, update, and delete issues
- Retrieve Teams
- Retrieve Projects
- Retrieve an organisation

Requirements
------------

[](#requirements)

- PHP 8.2+
- An token from Linear (the SDK does not support OAuth 2 authentication yet)

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

[](#installation)

Like all PHP packages, you can install this package using composer:

```
composer require blomstra/linear

```

Usage
-----

[](#usage)

### Retrieve Current Organisation

[](#retrieve-current-organisation)

```
use Linear\Sdk\Organization;

$o = new Organization('your-token-here');
$organization = $o->get();

// $organization is now an instance of Linear\Dto\Organization
$organization->name;
$organization->id;
$organization->urlKey
```

### Retrieve Teams

[](#retrieve-teams)

A single team can be retrieved by ID:

```
use Linear\Sdk\Teams;

$t = new Teams('your-token-here');
$team = $t->getOne('team-id-here');

// $team is now an instance of Linear\Dto\Team
```

Or all teams can be retrieved:

```
use Linear\Sdk\Teams;

$t = new Teams('your-token-here');
$teams = $t->getAll();
// $teams is now an instance of Linear\Dto\Teams
```

### Retrieve Projects

[](#retrieve-projects)

A single project can be retrieved by ID:

```
use Linear\Sdk\Projects;

$p = new Projects('your-token-here');
$project = $p->getOne('project-id-here');
// $project is now an instance of Linear\Dto\Project
```

Or all projects can be retrieved:

```
use Linear\Sdk\Projects;

$p = new Projects('your-token-here');
$projects = $p->getAll();
// $projects is now an instance of Linear\Dto\Projects
```

### Issues

[](#issues)

#### Retrieve an Issue

[](#retrieve-an-issue)

A single issue can be retrieved by ID:

```
use Linear\Sdk\Issues;

$i = new Issues('your-token-here');
$issue = $i->getOne('issue-id-here');
// $issue is now an instance of Linear\Dto\Issue
```

Or all issues can be retrieved:

```
use Linear\Sdk\Issues;

$i = new Issues('your-token-here');
$issues = $i->getAll();
// $issues is now an instance of Linear\Dto\Issues
```

#### Create an Issue

[](#create-an-issue)

```
use Linear\Sdk\Issues;
use Linear\Dto\Issue;
use Linear\Sdk\Teams;

$t = new Teams('your-token-here');
$team = $t->getAll()->nodes[0];

$i = new Issues('your-token-here');
$title = 'My new issue';
$description = 'This is a description';

$createdIssue = $i->create($title, $description, $team);

// $createdIssue is now an instance of Linear\Dto\Issue
```

#### Update an Issue

[](#update-an-issue)

```
use Linear\Sdk\Issues;
use Linear\Dto\Issue;

$i = new Issues('your-token-here');
$issue = $i->getOne('issue-id-here');

$updatedIssueDto = new Issue($issue->id, 'updated title', 'updated description');
$updatedIssue = $i->update($updatedIssue);

// $updatedIssue is now an instance of Linear\Dto\Issue
```

#### Delete an Issue

[](#delete-an-issue)

```
use Linear\Sdk\Issues;

$i = new Issues('your-token-here');
$issue = $i->getOne('issue-id-here');
$i->delete($issue); // returns true or false
```

Testing
-------

[](#testing)

Every method in this SDK is unit tested. Please see the `tests/Api` folder for more details.

Sponsor
-------

[](#sponsor)

This extension was sponsored by [Kagi Search](https://kagi.com/), an ad free search engine

License
-------

[](#license)

MIT

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 84% 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 ~9 days

Total

7

Last Release

793d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/519132d7c489d4df1d31b0e2ded301a1c4052543653a35ac17a0a090dc4ae564?d=identicon)[meezaan](/maintainers/meezaan)

---

Top Contributors

[![meezaan](https://avatars.githubusercontent.com/u/1839282?v=4)](https://github.com/meezaan "meezaan (21 commits)")[![jaggy](https://avatars.githubusercontent.com/u/1993075?v=4)](https://github.com/jaggy "jaggy (3 commits)")[![luceos](https://avatars.githubusercontent.com/u/504687?v=4)](https://github.com/luceos "luceos (1 commits)")

---

Tags

sdkapislinear

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/blomstra-linear/health.svg)

```
[![Health](https://phpackages.com/badges/blomstra-linear/health.svg)](https://phpackages.com/packages/blomstra-linear)
```

###  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)[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[crowdin/crowdin-api-client

PHP client library for Crowdin API v2

611.5M5](/packages/crowdin-crowdin-api-client)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)

PHPackages © 2026

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