PrestaSDK
PrestaSDK is a simple and extendable library for developing PrestaShop modules.
Installation
Use Composer to add PrestaSDK to your PrestaShop module:
composer require prestaware/prestasdk
Features
- Base
PrestaSDKModulefor uniform module structure PrestaSDKFactoryfor loading installers, controllers and utilities- Utilities for configuration, asset publishing and admin panels
Usage
Extend PrestaSDKModule in your module and define its settings inside initModule.
<?php
use PrestaSDK\V072\PrestaSDKModule;
class MyModule extends PrestaSDKModule
{
public function initModule()
{
$this->name = 'my_module';
$this->version = '1.0.0';
}
}
Documentation
The module development guide is split into chapters:
- Introduction & Quick Start
- Core Concepts
- Module Installation
- Admin Panel Development
- Data Management
- Advanced Topics
- Conclusion
Persian documentation is available in docs/fa/README.md.
For an example integration, see examples/module_integration.php.