Lecteur Markdown
PACKAGE_MANAGER_DOCUMENTATION_EN
Feature: Package Manager #
Browser for plugins available on the BeamReactor package server. Allows browsing the remote catalogue and downloading plugins as ZIP archives. Also displays deprecated plugins present locally.
---
Installation and Configuration #
Via FTP: Upload the `package_manager/` directory into `/plugins/`.
Via package manager: Select `package_manager` from the available plugins list.
Paths:
- Main plugin: `/plugins/package_manager/package_manager.php`
- Configuration: `/plugins/package_manager/conf/package_manager.conf.inc.php`
Configuration parameters (`package_manager.conf.inc.php`):
| Variable | Default | Description |
|---|---|---|
| `$basedatadisplay` | `'yes'` | Display in management interface |
| `$basedisplevel` | `BASE_LEVEL_OVERMIND` | Minimum required level |
| `$ftype` | `3` | Plugin type (system) |
| `PACKAGE_SERVER` | `https://devarea.beamreactor.com` | Package server |
Authentication:
- `$site_id` = `$cfg[1]`
- `$auth_token` = `hash('sha256', $cfg[23] . $site_id)`
---
Usage #
Available Filters #
- `filter=all` — All plugins available on the remote server
- `filter=deprecated` — Deprecated plugins present in `/plugins/Z_DEPRECATED/`
Download Process #
1. The plugin contacts `PACKAGE_SERVER` via cURL to retrieve the manifest.
2. Authentication is verified server-side via `site_id` and `auth_token`.
3. Plugin metadata (name, version, description) is displayed.
4. Download is provided as a ZIP archive to be manually placed in `/plugins/`.
---
Hooks and Entry Points #
?obj=package_manager.php — General view
?obj=package_manager.php&filter=all — All packages
?obj=package_manager.php&filter=deprecated — Deprecated plugins
Remote endpoint consulted:
PACKAGE_SERVER/index.php?obj=package_downloader.mod&act=manifest
---
Dependencies #
- `Beamreactor\Sanitizer\Parser`
- PHP cURL extension — required for communication with the package server
- `$cfg[1]` (site_id) and `$cfg[23]` (secret key) — must be configured in the main configuration file