webopstechnologies/laravel-autopsy 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

webopstechnologies/laravel-autopsy

最新稳定版本:v1.0.0

Composer 安装命令:

composer require webopstechnologies/laravel-autopsy

包简介

Forensic audit tool for Laravel applications - security, code quality, architecture, and performance.

README 文档

README

Laravel Autopsy is an audit tool that scans your Laravel project and shows security risks, code quality issues, architecture gaps, and performance bottlenecks in one clear report.

It is designed for founders, CTOs, project managers, and developers who want to quickly understand technical risk and fix high-impact issues first.

Why This Is Useful for Business

  • Reduce security risk before it becomes a costly incident.
  • Catch performance and architecture problems early, before scale-related outages.
  • Prioritize technical debt with severity and estimated fix time.
  • Get developer-friendly output and client-friendly reports (JSON/PDF).
  • Use in CI to prevent critical issues from reaching production.

What You Get

  • A single command: autopsy:run
  • Four analysis modules:
    • Security
    • Code Quality
    • Architecture
    • Performance
  • Report formats:
    • Terminal output
    • JSON export
    • PDF report for stakeholders

Installation

Install from Packagist

composer require webopstechnologies/laravel-autopsy

Install from local path (for localhost development)

Add this to your app's composer.json:

"repositories": [
  {
    "type": "path",
    "url": "../laravel-autopsy",
    "options": {
      "symlink": true
    }
  }
]

Then run:

composer require webopstechnologies/laravel-autopsy:*

Quick Start

Run a full audit:

php artisan autopsy:run

Generate PDF report:

php artisan autopsy:run --report

Default PDF location:

storage/app/reports/autopsy-report.pdf

Usage Examples

Run only one module:

php artisan autopsy:run --module=security
php artisan autopsy:run --module=quality
php artisan autopsy:run --module=architecture
php artisan autopsy:run --module=performance

Export machine-readable JSON:

php artisan autopsy:run --format=json --output=storage/app/reports/autopsy-report.json

Generate branded PDF:

php artisan autopsy:run --report --brand="Your Agency Name" --output=storage/app/reports/autopsy-report.pdf

Use in CI (fail build if critical issues exist):

php artisan autopsy:run --ci

Sample Result Screenshot

Add your screenshot file at docs/autopsy-result-sample.png, then this image will render:

Laravel Autopsy Result

What Each Module Checks

Security

  • .env exposure and backup files
  • Debug mode in production
  • Rate limiting on sensitive routes
  • Mass assignment risks
  • CORS misconfiguration
  • Telescope exposure
  • Vulnerable dependencies via Composer audit

Code Quality

  • Fat controllers
  • Missing service layer
  • N+1 query patterns
  • DB queries inside Blade views
  • Inline validation in controllers
  • Synchronous operations that should be queued

Architecture

  • Directory structure standards
  • Route file organization
  • Hardcoded secrets/values
  • Presence of automated tests
  • God model detection

Performance

  • Missing DB indexes in migrations
  • Risky Model::all() usage
  • Session driver recommendations
  • Queue driver checks

Real-World Improvement Example

One project scored 38/100 before fixes.
After acting on priority findings, it improved to 91/100.

This creates direct business value:

  • Better uptime
  • Faster pages
  • Lower incident risk
  • More predictable delivery

Contact

Built by WebOps Technologies - we rescue and modernize Laravel applications.
Book a free audit ->

License

MIT

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固