goldenplanetdk/gpp-app-installer

Installed app for GPP

5.0.0 2024-04-30 16:33 UTC

This package is not auto-updated.

Last update: 2024-05-14 16:46:47 UTC


README

Install

composer require "goldenplanetdk/gp-app-installer:dev-master"
use GP\App\Provider\Service\AuthorizeServiceProvider;

$app->register(new AuthorizeServiceProvider(), $parameters);

Events:

app.installation.success app.uninstalled

Create DB table

CREATE TABLE `installations` (
  id                 INT UNSIGNED AUTO_INCREMENT NOT NULL,
  shop               VARCHAR(256)                NOT NULL
  COLLATE utf8_unicode_ci,
  token              VARCHAR(255)                NOT NULL
  COLLATE utf8_unicode_ci,
  is_secure_protocol TINYINT(1)                  NOT NULL,
  created_at         DATETIME                    NOT NULL,
  PRIMARY KEY (id)
)
  DEFAULT CHARACTER SET utf8
  COLLATE utf8_unicode_ci
  ENGINE = InnoDB;

License

MIT