Download the PHP package arkonsoft/ps-module-core without Composer

On this page you can find all versions of the php package arkonsoft/ps-module-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ps-module-core

PS Module Core

Introduction

Creating modules for Presta is a real horror story. This package contains basic tools to make development a little less masochistic.

Requirements

Installation

Install package with composer:

Basic usage

AbstractModule

Inherit the AbstractModule class from your module class. Now you have access to the $this->canBeUpgraded() method, which can be used to display a warning about module updates or anything else.

You can also use the ModuleCategory dictionary to set $this->tab, which contains the module category (it has meaning on the module list page).

AbstractAdminSettingsController

Inherit from the AbstractAdminSettingsController class on your module AdminController class. Now all you need to do is define the fields of the settings form in HelperForm format and you're done!

Data writing and reading operations happen in the abstract class so you can focus only on defining the fields.


Definitions

AbstractModule Class

The AbstractModule class extends the PrestaShop Module class and provides common functionalities for PrestaShop modules.

getDatabaseVersion Method

This method retrieves the database version of the module from the PrestaShop database.

canBeUpgraded Method

This method checks if the database version of the module is lower than the specified version, indicating a potential need for upgrade.

Example usage:


ModuleCategory Interface

The ModuleCategory interface defines constants representing different categories of PrestaShop modules.

Constants

Example usage:

TabDictionary Interface

The TabDictionary interface contains constants that represent various tabs in the PrestaShop admin panel. Each constant is a string that corresponds to an admin section.

Constants

Example Constants

Example usage:


AbstractAdminSettingsController Class

The AbstractAdminSettingsController class extends the PrestaShop ModuleAdminController class and provides functionalities for managing module settings in the admin panel better than native OptionsAPI.

Constructor

The constructor method initializes the AbstractAdminSettingsController class by setting up the context, bootstrapping, and calling the prepareOptions method.

prepareOptions Method

This abstract method is used to prepare options for the settings controller. Subclasses must implement this method.

initContent Method

This method initializes the content of the settings controller by rendering the form.

postProcess Method

This method handles post-processing tasks after form submission, such as saving form data.

dispatchAction Method

This method dispatches actions based on form submissions.

renderForm Method

This method renders the form using the HelperForm class.

loadFormValues Method

This method loads form values from the database.

saveForm Method

This method saves form data to the database.

Other Helper Methods



All versions of ps-module-core with dependencies

PHP Build Version
Package Version
Requires php Version >= 7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package arkonsoft/ps-module-core contains the following files

Loading the files please wait ....