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

ActiveLibrary

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 today

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

1935d ago

Major Versions

0.1 → v1.0.02021-01-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/a383627fa7fd43acaa056890984a59958f1d4116a266e7697feacd6033f9cb95?d=identicon)[OctaconDeveloper](/maintainers/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

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[wsdltophp/packagegenerator

Generate hierarchical PHP classes based on a WSDL

4351.9M19](/packages/wsdltophp-packagegenerator)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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