PHPackages                             mordisacks/priority-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. mordisacks/priority-api

ActiveLibrary[API Development](/categories/api)

mordisacks/priority-api
=======================

A PHP client for priority software API

0.2.2(5y ago)0249[2 PRs](https://github.com/MordiSacks/priority-api/pulls)MITPHP

Since Jan 30Pushed 3y agoCompare

[ Source](https://github.com/MordiSacks/priority-api)[ Packagist](https://packagist.org/packages/mordisacks/priority-api)[ Docs](https://github.com/MordiSacks/priority-api)[ RSS](/packages/mordisacks-priority-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

priority-api
============

[](#priority-api)

A PHP client for priority software API based on this documentation

### Instellation

[](#instellation)

`composer require mordisacks/priority-api`

### Usage

[](#usage)

#### Setup

[](#setup)

```
$client = new PriorityClient($serviceRootUrl);
```

#### Authentication

[](#authentication)

```
// Basic auth
$client->withBasicAuth('username', 'password');

// App auth
$client->withAppAuth('app_id', 'app_key');
```

```
$query = new Builder();
$query->setClient($client);
```

#### Getting a collection

[](#getting-a-collection)

```
$query->from('ORDER')
      ->select('A', 'B', 'C')
      ->filter('FOO', 'bar')
      ->orFilter('FOO', '!=', 'BAZ')
      ->expand('ITEMS_SUBFORM')
      ->top(3);

// Outputs the raw query: ORDER?$select=A,B,C&$filter=FOO eq 'bar' or FOO ne 'BAZ'&$expand=ITEMS_SUBFORM&$top=3
$query->toQuery();

// Returns a collection of ORDERS
$query->get();
```

#### Gettign a single Entity

[](#gettign-a-single-entity)

```
// Returns a single ORDER with the id of AA123456
$query->from('ORDERS')->find('AA123456');
```

#### Filter Group

[](#filter-group)

```
$query->filter(function (Filter $filter) {
            $filter->filter('B', 'something');
            $filter->filter('C', 'something');
         });
```

#### Expand sub query

[](#expand-sub-query)

```
$query->expand('ITEMS', function (Builder $q) {
      $q->select('FIELD1', 'FIELD2', 'FIELD3')
        ->filter('FIELD1', 'Y')
        ->filter(function (Filter $filter) {
            $filter->filter('FIELD2', 'Y')
                   ->orFilter('FIELD3', 'Y');
        });
  });
```

---

Inspired by Laravel Eloquant builder

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

3

Last Release

1980d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f843e1ac6ca3aabf914bae50226984d02b8def3482c8e826a7fcdc023c363fcd?d=identicon)[MordiSacks](/maintainers/MordiSacks)

---

Top Contributors

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

---

Tags

apiprioritypriority software

### Embed Badge

![Health badge](/badges/mordisacks-priority-api/health.svg)

```
[![Health](https://phpackages.com/badges/mordisacks-priority-api/health.svg)](https://phpackages.com/packages/mordisacks-priority-api)
```

###  Alternatives

[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)

PHPackages © 2026

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