PHPackages                             stacey/patricia-client-package - 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. stacey/patricia-client-package

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

stacey/patricia-client-package
==============================

This package enables easy setup for a client structure on patricia

v1.0.0(5y ago)1231MITPHP

Since Nov 25Pushed 5y ago2 watchersCompare

[ Source](https://github.com/PinkCode15/Patricia-Client-Package)[ Packagist](https://packagist.org/packages/stacey/patricia-client-package)[ RSS](/packages/stacey-patricia-client-package/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (15)Used By (0)

Patricia-Client-Package
=======================

[](#patricia-client-package)

PHP library for Patricia Technologies for management of client and client key

Installation
============

[](#installation)

```
composer require stacey/patricia-client-package
```

```
require_once 'vendor/autoload.php';

```

```
use PatriciaClient\Patricia;
$patricia = new Patricia();

```

```
Run Patricia::migrate();
to migrate your tables and default seeders

```

### `Run Migration`

[](#run-migration)

```
Run migration
Patricia::migrate();
or
$patricia->migrate();

```

### `Drop Table`

[](#drop-table)

```
Patricia::rollbackMigrate();
 or
$patricia->rollbackMigrate();

```

### `Rollback Seeder`

[](#rollback-seeder)

```
Patricia::rollbackSeeders();
 or
$patricia->rollbackSeeders();

```

### `Create Client`

[](#create-client)

```
  Patricia::createClient(string $clientName, string $clientRole)
  or
  $patricia->createClient(string $clientName, string $clientRole)

  clientRole is either `admin` or `user`

```

### `Create Client Key`

[](#create-client-key)

```
Patricia::createClientKey(int $clientId, string $clientKeyName);
$patricia->createClientKey(int $clientId, string $clientKeyName);

```

### `Update Client`

[](#update-client)

```
Patricia::updateClient(string $ClientUuid, array $array);
$patricia->updateClient(string $ClientUuid, array $array);

$array should contain the columns and respective values;
example $array = [
    'name' => 'Patricia King',
    'is_blocked' => 1
];

```

### `Update Client Keys`

[](#update-client-keys)

```
Patricia::updateClientKeys(int $clientKeyId, array $array);
$patricia->updateClientKeys(int $clientKeyId, array $array);

$array should contain the columns and respective values;
example $array = [
    'name' => 'Patricia King Key',
    'is_blocked' => 1
];

```

### `Get Client Detail`

[](#get-client-detail)

```
get a client details based on column attribute

Patricia::getClient(string $columnName, string $columnValue);
$patricia->getClient(string $columnName, string $columnValue);

$array should contain the columns and respective values;
example $array = [
    'name' => 'Patricia King Key',
    'is_blocked' => 1
];

```

### `Get Client Keys Detail`

[](#get-client-keys-detail)

```
returns all instances of a client key

Patricia::getClientKeys(int $clientKeyId);
$patricia->getClientKeys(int $clientKeyId);

```

### `Get Client key Detail`

[](#get-client-key-detail)

```
returns the first instance of a client key

Patricia::getClientKey(int $clientKeyId);
$patricia->getClientKey(int $clientKeyId);

```

### `Delete client`

[](#delete-client)

```
Patricia::deleteClient(string $clientUuid);
$patricia->deleteClient(string $clientUuid);

```

### `Delete client key`

[](#delete-client-key)

```
Patricia::deleteClientKey(int $clientKeyId);
$patricia->deleteClientKey(int $clientKeyId);

```

`Helper functions`
------------------

[](#helper-functions)

### `Check if user is admin`

[](#check-if-user-is-admin)

```
isAdmin(string $apiKey)

```

### `Check if user is authenticated`

[](#check-if-user-is-authenticated)

```
isAuthenticated(string $apiKey)

```

### `Get a client details`

[](#get-a-client-details)

```
getClient(string $prop, string $value)
`prop represents a column`
`value represents the value for query`

```

License
-------

[](#license)

```
Released under the MIT License. See the bundled LICENSE file for details.

```

Contributions
-------------

[](#contributions)

Open to contributions from anyone, PR's can be made and would be accepted. Thanks and good luck

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 72.3% 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 ~24 days

Total

3

Last Release

1938d ago

Major Versions

0.1 → v1.0.02021-01-21

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40143466?v=4)[Harrys Jil](/maintainers/OctaconDeveloper)[@OctaconDeveloper](https://github.com/OctaconDeveloper)

![](https://avatars.githubusercontent.com/u/31920666?v=4)[Onuora Stacey](/maintainers/PinkCode15)[@PinkCode15](https://github.com/PinkCode15)

---

Top Contributors

[![OctaconDeveloper](https://avatars.githubusercontent.com/u/40143466?v=4)](https://github.com/OctaconDeveloper "OctaconDeveloper (47 commits)")[![PinkCode15](https://avatars.githubusercontent.com/u/31920666?v=4)](https://github.com/PinkCode15 "PinkCode15 (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stacey-patricia-client-package/health.svg)

```
[![Health](https://phpackages.com/badges/stacey-patricia-client-package/health.svg)](https://phpackages.com/packages/stacey-patricia-client-package)
```

###  Alternatives

[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

38244.6k16](/packages/ec-europa-toolkit)[flarum/extension-manager

An extension manager to install, update and remove extension packages from the interface (Wrapper around composer).

12211.5k](/packages/flarum-extension-manager)

PHPackages © 2026

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