Download the PHP package mohamed-elgeady/artisan-architect without Composer

On this page you can find all versions of the php package mohamed-elgeady/artisan-architect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package artisan-architect

🏗️ Artisan Architect

A powerful AST-based Laravel architecture analyzer that detects design violations, calculates health scores, generates visual reports, and integrates seamlessly with your CI/CD pipeline.

Latest Version on Packagist Total Downloads PHP from Packagist License


📖 Table of Contents


🚀 Introduction

Artisan Architect is a zero-runtime, static code analysis package built specifically for the Laravel ecosystem. It leverages PHP's Abstract Syntax Tree (AST) via nikic/php-parser to deeply inspect your application's source code without executing a single line of it.

It scans your Controllers, Models, Form Requests, API Resources, and Routes, evaluates them against a configurable set of architectural rules, assigns a health score (0–100) to each class, and aggregates a project-wide score with a full breakdown of violations.

Think of it as a code reviewer that never sleeps — integrated directly into your Artisan command suite.


✨ Features

Feature Description
🧠 AST-Powered Analysis Deep, accurate inspection of PHP source files — no runtime needed
📊 Health Scoring Every class gets a score (0–100). The overall project score is always visible
❌ Violation Detection Detects Fat Controllers, Direct DB Calls, Missing $fillable, Bloated Models, Closure Routes, and more
🎨 Beautiful Console Output Rich, color-coded, icon-decorated terminal output with detailed summaries
🌐 HTML Reports Stunning dark-mode HTML reports with Tailwind CSS glassmorphism design
🗃️ JSON Reports Machine-readable JSON reports for use with custom dashboards or APIs
🔗 Dependency Graphs Auto-generates interactive Mermaid.js class diagrams showing class relationships
🧩 Module Support Native wildcard (*) glob support for nwidart/laravel-modules and DDD structures
🤖 CI/CD Ready --min-score and --fail-on flags for enforcing quality gates in pipelines
🎯 Targeted Analysis Analyze the entire project, a specific directory, or a single file
🔧 Fully Configurable Tune every rule threshold (max methods, max lines, penalties, etc.) in the config
🗂️ Safe Storage All generated reports are safely stored in storage/artisan-architect/ (not in public/)

🔧 Requirements

Dependency Version
PHP ^8.2 or ^8.3
Laravel ^10.0 / ^11.0 / ^12.0 / ^13.0
nikic/php-parser ^5.0

The package should be installed as a dev dependency (--dev), as it is a developer tool and should not run in production.


📦 Installation

Step 1 — Install via Composer:

Step 2 — Publish the configuration file:

This will create config/artisan-architect.php in your application where you can configure paths, rules, scoring weights, and output settings.


🛠️ Available Commands

architect:analyze — Project Architecture Analysis


architect:graph — Interactive Architecture Graph


📸 Example Output

Console Analysis (architect:analyze)


HTML Report (--format=html)

The HTML report is a beautiful dark-mode, interactive dashboard with glassmorphism UI. It displays:

Saved automatically to storage/artisan-architect/reports/architecture.html.


Architecture Graph (architect:graph)

Open the file in your browser to see an interactive Mermaid.js class diagram showing all class dependencies in your project. The graph is rendered client-side in dark mode with full SVG quality.


🤖 CI/CD Integration

Add Artisan Architect to your GitHub Actions workflow to enforce architectural quality on every pull request:

If the overall project score drops below 80 or any critical errors are found, the workflow will fail and block the merge. 🚫


🧩 Laravel Modules & DDD Support

Working with nwidart/laravel-modules or a Domain-Driven Design structure? Artisan Architect has native wildcard support.

Open config/artisan-architect.php and add your module paths alongside the standard paths:

The * wildcard will automatically expand to match every module directory under Modules/, giving you a single unified report for your entire application. ✅


⚙️ Configuration Reference

The published config file gives you full control over the analyzer's behavior:


🤝 Contributing

Contributions are welcome and appreciated! If you have an idea for a new architectural rule or a feature:

  1. Fork the repository.
  2. Create your feature branch: git checkout -b feature/my-new-rule.
  3. Implement your rule inside src/Rules/.
  4. Add a test inside tests/.
  5. Submit a Pull Request.

🛡️ Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.


📄 License

The MIT License (MIT). Please see License File for more information.


Built with ❤️ for the Laravel Community by Mohamed Elgeady


All versions of artisan-architect with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2 || ^8.3
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
nikic/php-parser Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mohamed-elgeady/artisan-architect contains the following files

Loading the files please wait ...