PHPackages                             deegitalbe/trustup-pro-app-common - 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. deegitalbe/trustup-pro-app-common

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

deegitalbe/trustup-pro-app-common
=================================

This package contains pieces of code that are shared between our applications.

v2.6.0(3y ago)11.2k[1 PRs](https://github.com/deegitalbe/trustup-pro-app-common/pulls)MITPHP

Since Sep 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/deegitalbe/trustup-pro-app-common)[ Packagist](https://packagist.org/packages/deegitalbe/trustup-pro-app-common)[ RSS](/packages/deegitalbe-trustup-pro-app-common/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (14)Versions (139)Used By (0)

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

[](#installation)

Via composer
------------

[](#via-composer)

```
composer require deegitalbe/trustup-pro-app-common

```

Configuration
=============

[](#configuration)

Environment
-----------

[](#environment)

Package expects you to have those lines in your .env

```
TRUSTUP_ADMIN_URL=
TRUSTUP_APP_KEY=

```

- `TRUSTUP_APP_KEY` key should be unique identifier for current app. (e.g: "tasks" for application taches.trustup.pro)
- `TRUSTUP_ADMIN_URL` should be defined in development mode only. (since package already has correct value for production)

Install command
---------------

[](#install-command)

Execute this command to install package and publish configuration.

```
php artisan trustup_pro_app_common:install

```

You will then have access to `config/trustup_pro_app_common.php` that you have to configure properly.

Preparing your model
====================

[](#preparing-your-model)

Your model should be in charge of application professionals accounts. Typically it is `App\Models\System\Account.php`

Default configuration
---------------------

[](#default-configuration)

### Implements interface

[](#implements-interface)

Your model should implements this interface

```
Deegitalbe\TrustupProAppCommon\Contracts\AccountContract

```

### Use default trait

[](#use-default-trait)

You can use this trait in your model to synchronize automatically

```
Deegitalbe\TrustupProAppCommon\Models\Synchronizable

```

Custom configuration
--------------------

[](#custom-configuration)

### Implements interface

[](#implements-interface-1)

Same step as default configuration step

### Define interface methods yourself

[](#define-interface-methods-yourself)

```
/**
 * Account database id.
 *
 * @return int
 */
public function getId(): int;

/**
 * Account uuid that should be used to retrieve account details.
 *
 * @return string
 */
public function getUuid(): string;

/**
 * Application key linked to account.
 *
 * @return string
 */
public function getAppKey(): string;

/**
 * Professional authorization_key linked to account.
 *
 * @return string
 */
public function getAuthorizationKey(): string;

/**
 * Subscription id linked to account.
 *
 * @return string|null
 */
public function getSubscriptionId(): ?string;

/**
 * Subscription status linked to account.
 *
 * @return string|null
 */
public function getSubscriptionStatus(): ?string;

/**
 * Account creation date.
 *
 * @return Carbon
 */
public function getCreatedAt(): Carbon;

```

### Watch model events using package trait

[](#watch-model-events-using-package-trait)

You can use this trait in your model to watch its event and react to it when needed

```
Deegitalbe\TrustupProAppCommon\Models\SynchronizeWhenSaved

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~69 days

Total

125

Last Release

1177d ago

Major Versions

v0.0.4 → v1.0.02021-09-22

v0.0.5 → v1.0.12021-09-23

v1.6.0 → v2.0.02021-11-17

v0.2.4 → v2.5.42022-05-13

v0.5.4 → v2.5.5-alpha.02022-05-17

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24230736?v=4)[Mathieu Henrotay](/maintainers/henrotaym)[@henrotaym](https://github.com/henrotaym)

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/deegitalbe-trustup-pro-app-common/health.svg)

```
[![Health](https://phpackages.com/badges/deegitalbe-trustup-pro-app-common/health.svg)](https://phpackages.com/packages/deegitalbe-trustup-pro-app-common)
```

###  Alternatives

[psr7-sessions/storageless

Storageless PSR-7 Session support

652373.0k8](/packages/psr7-sessions-storageless)[mvanduijker/laravel-mercure-broadcaster

Mercure broadcaster

16866.5k](/packages/mvanduijker-laravel-mercure-broadcaster)[oat-sa/lib-lti1p3-core

OAT LTI 1.3 Core Library

36341.9k10](/packages/oat-sa-lib-lti1p3-core)[rapidez/core

Rapidez Core

1820.7k53](/packages/rapidez-core)[shopware/app-php-sdk

Shopware App SDK for PHP

1577.8k1](/packages/shopware-app-php-sdk)[opendialogai/core

The OpenDialog Core package

3215.9k1](/packages/opendialogai-core)

PHPackages © 2026

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