Download the PHP package aagjalpankaj/logstan without Composer
On this page you can find all versions of the php package aagjalpankaj/logstan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aagjalpankaj/logstan
More information about aagjalpankaj/logstan
Files in aagjalpankaj/logstan
Package logstan
Short Description PHPStan extension for Laravel applications to enforce consistent logging practices.
License MIT
Informations about the package logstan
Logstan
About
LogStan is a PHPStan extension that helps you to enforce structured and consistent logging in Laravel.
Example Output
Installation | Usage | Logging standards enforced
Installation
Usage
Analyzing Logs
This command will scan your application and report any inconsistencies or potential problems with the logs in your application.
Getting Insights
This command provides insights about logs in your application.
Configuration (Optional)
You can override default presets in logstan.neon
Help
For more information about available commands and options:
Logging standards enforced
Logstan ensures your Laravel application follows best practices for logging by enforcing the following standards:
Log Messages
| Standard | Description |
|---|---|
| ✅ Non-empty requirement | All log messages must contain meaningful content |
| ✅ Character limit | Messages are validated against maximum length constraints |
| ✅ Proper capitalization | Messages must begin with uppercase letters for consistency |
Log Context
| Standard | Description |
|---|---|
| ✅ Array structure | Context data must be provided as a properly formatted array |
| ✅ Key limit | Maximum of 10 context keys to maintain readability |
| ✅ Naming convention | Keys must use snake_case format and be non-empty strings |
| ✅ Data types | Values restricted to scalar types or null (arrays/objects prohibited) |
| ✅ Value length | Context values limited to 100 characters maximum |
| ✅ Security compliance | Automatic detection and prevention of sensitive information in keys |
Contributing
Found a bug or have a feature request? We'd love to hear from you!
- 🐛 Report Issues: Create an issue
- 💡 Feature Requests: Create an issue
- 🤝 Pull Requests: Create PR
License
This package is open-sourced software licensed under the MIT license.
All versions of logstan with dependencies
phpstan/phpstan Version ^2.0
symfony/console Version ^7.0
laravel/prompts Version ^0.3
illuminate/support Version ^11.0|^12.0