Library: maatify/bootstrap
Maintainer: Mohamed Abdulalim (@megyptm)
Organization: Maatify.dev
License: MIT
Version: 1.0.2
Last Updated: 2025-11-13
| Version | Supported | Notes |
|---|---|---|
| 1.0.x | โ | Security patches + environment safety fixes |
| <1.0.0 | โ | Unsupported |
maatify/bootstrap is a foundational package โ only the latest version receives updates.
If you discover a security vulnerability, please do NOT open a public GitHub issue. Instead, report it privately through:
- Email: security@maatify.dev
- GitHub Security Advisory: https://github.com/Maatify/bootstrap/security/advisories/new
Provide:
- Description + severity
- Steps to reproduce
- PHP version + OS
- Affected versions
- Suggested mitigation (optional)
| Step | Action | Target Time |
|---|---|---|
| 1๏ธโฃ | Acknowledge report | โค 24 hours |
| 2๏ธโฃ | Verify & reproduce | 2โ5 business days |
| 3๏ธโฃ | Patch + internal review | 5โ7 days |
| 4๏ธโฃ | Coordinate disclosure & release patch | After fix is deployed |
Because this package handles environment loading, startup logic, and safe mode, its security demands are strict:
- No
.envfile may override pre-existing system variables. .env.localand.env.testingmust never load in production.- Test environments must load via immutable snapshots only.
- Sensitive environment values are never logged.
Bootstrap::init()must never cause side effects outside its scope.- Timezone auto-setup must use safe, validated values.
- Safe Mode protects production environments from accidental misconfiguration.
- Exception traces sanitized before logging.
- No leaking of sensitive environment paths.
- Consistent behavior across CLI, web, and CI environments.
- Overwriting CI credentials
- Overwriting PHPUnit test variables
- Loading
.env.testingin production - Logging actual
.envsecrets
-
Protect
.env.local,.env.testing,.envfiles from public access. -
On production servers:
- Disable file browsing
- Ensure
.envis outside document root if possible - Use environment variables from systemd, Docker, or CI
-
Do not store credentials inside repository
-
Review Safe Mode warnings in your CI pipeline
For questions regarding security:
๐ง security@maatify.dev
๐ https://www.maatify.dev/security
ยฉ 2025 Maatify.dev โ Maintained by @megyptm
Unified Bootstrap & Environment Loader for all Maatify PHP Libraries