PHPackages                             prestashop/prestashop-accounts-installer - 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. prestashop/prestashop-accounts-installer

ActiveLibrary

prestashop/prestashop-accounts-installer
========================================

Utility package to install `ps\_accounts` module or present data to trigger manual install from psx configuration page.

v1.0.4(3y ago)3138.3k—5.8%33MITPHPPHP &gt;=5.6

Since Jan 19Pushed 1y ago8 watchersCompare

[ Source](https://github.com/PrestaShopCorp/prestashop-accounts-installer)[ Packagist](https://packagist.org/packages/prestashop/prestashop-accounts-installer)[ RSS](/packages/prestashop-prestashop-accounts-installer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (14)Used By (3)

prestashop-accounts-installer
=============================

[](#prestashop-accounts-installer)

Utility package to install `ps_accounts` module or present data to trigger manual install from psx configuration page.

This module also give you access to `ps_accounts` services through its module service container dealing with the installation status of the module.

### Compatibility Matrix

[](#compatibility-matrix)

We aims to follow partially the Prestashop compatibility charts

- [Compatibility Chart Prestashop 1.6 &amp; 1.7](https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/#php-compatibility-chart)
- [Compatibility Chart Prestashop 8](https://devdocs.prestashop.com/8/basics/installation/system-requirements/#php-compatibility-chart)

ps\_account versionPrestashop VersionPHP VersionEvent Bus installation6.x&gt;=8.0.0≥7.2 || ≤8.1Yes5.x&gt;=1.7.0 || &lt;8.0.0≥5.6 || ≤7.4Yes5.x&gt;=1.6.1 || &lt;1.7.0≥5.6 || ≤7.4NoInstallation
------------

[](#installation)

This package is available on [Packagist](https://packagist.org/packages/prestashop/prestashop-accounts-installer), you can install it via [Composer](https://getcomposer.org).

```
composer require prestashop/prestashop-accounts-installer
```

Register as a service in your PSx container (recommended)
---------------------------------------------------------

[](#register-as-a-service-in-your-psx-container-recommended)

Example :

```
services:
  .ps_accounts_installer:
    class: 'PrestaShop\PsAccountsInstaller\Installer\Installer'
    arguments:
      - '5.0.0'

  .ps_accounts_facade:
    class: 'PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts'
    arguments:
      - '@.ps_accounts_installer'
```

The name under which you register both services in your service container must be unique to avoid collision with other modules including it.

The `5.0.0` specified argument is the minimum required `ps_account` module version. You should modify it if you need another version.

How to use it
-------------

[](#how-to-use-it)

### Installer

[](#installer)

In your module main class `install` method. (Will only do something on PrestaShop 1.7 and above)

```
    $this->getService('ps_accounts.installer')->install();
```

### Presenter

[](#presenter)

For example in your main module's class `getContent` method.

```
    Media::addJsDef([
        'contextPsAccounts' => $this->getService('ps_accounts.facade')
            ->getPsAccountsPresenter()
            ->present($this->name),
    ]);
```

This presenter will serve as default minimal presenter and switch to PsAccountsPresenter data when `ps_accounts` module is installed.

### Accessing PsAccounts Services

[](#accessing-psaccounts-services)

Installer class includes accessors to get instances of services from PsAccounts Module :

- getPsAccountsService
- getPsBillingService

The methods above will throw an exception in case `ps_accounts` module is not installed or not in the required version.

Example :

```
use PrestaShop\PsAccountsInstaller\Installer\Exception\ModuleVersionException;
use PrestaShop\PsAccountsInstaller\Installer\Exception\ModuleNotInstalledException;

try {
    $psAccountsService = $this->getService('ps_accounts.facade')->getPsAccountsService();

    $shopJwt = $psAccountsService->getOrRefreshToken();

    $shopUuid = $psAccountsService->getShopUuid();

    $apiUrl = $psAccountsService->getAdminAjaxUrl();

    // Your code here

} catch (ModuleNotInstalledException $e) {

    // You handle exception here

} catch (ModuleVersionException $e) {

    // You handle exception here
}
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.1% 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 ~185 days

Total

5

Last Release

1111d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15106407?v=4)[Jarvis](/maintainers/ps-jarvis)[@ps-jarvis](https://github.com/ps-jarvis)

---

Top Contributors

[![hschoenenberger](https://avatars.githubusercontent.com/u/54308193?v=4)](https://github.com/hschoenenberger "hschoenenberger (54 commits)")[![emmanuelgautier](https://avatars.githubusercontent.com/u/2765366?v=4)](https://github.com/emmanuelgautier "emmanuelgautier (11 commits)")[![hfLoiseau](https://avatars.githubusercontent.com/u/57891638?v=4)](https://github.com/hfLoiseau "hfLoiseau (10 commits)")[![Nakahiru](https://avatars.githubusercontent.com/u/16980315?v=4)](https://github.com/Nakahiru "Nakahiru (3 commits)")[![GautierBoudeweel](https://avatars.githubusercontent.com/u/89020546?v=4)](https://github.com/GautierBoudeweel "GautierBoudeweel (2 commits)")[![joemugen](https://avatars.githubusercontent.com/u/14120614?v=4)](https://github.com/joemugen "joemugen (2 commits)")[![Quetzacoalt91](https://avatars.githubusercontent.com/u/6768917?v=4)](https://github.com/Quetzacoalt91 "Quetzacoalt91 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/prestashop-prestashop-accounts-installer/health.svg)

```
[![Health](https://phpackages.com/badges/prestashop-prestashop-accounts-installer/health.svg)](https://phpackages.com/packages/prestashop-prestashop-accounts-installer)
```

PHPackages © 2026

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