Repository navigation
Module
Viames Marino edited this page Oct 19, 2026
·
3 revisions
Pair\Models\Module represents an installable module package record.
getPackageBaseFolder(): stringgetInstallablePackage(): InstallablePackagestoreFromPackageManifest(SimpleXMLElement $options): bool
Lifecycle hooks:
-
_init()defines schema and validation -
beforeDelete()performs module cleanup
use Pair\Models\Module;
$module = Module::find($id);
if ($module && $module->isCompatibleWithApp()) {
$package = $module->getInstallablePackage();
// use package metadata or download helpers
}- Extends
InstallablePackageRecord, so it inherits compatibility checks. - Integrates with package manifest options when storing.
See also: InstallablePackage, InstallablePackageRecord, Template.
Home · Setup · Configuration
Build with Pair 4
- Generator
- Controllers and responses
- Read models
- ActiveRecord and queries
- Forms and validation
- PairUI.js and HTML fragments
APIs and authentication
- API guide and CRUD
- Middleware and rate limits
- Users, sessions, and ACL
- Passkeys and social login
- Native mobile setup
Integrate and operate
- Integrations
- Runtime extensions and adapter keys
- Cache and cache stores
- Logs and observability
- PWA and push
- Packages and distribution
- Upgrade to v4