artisan-build/agent-os-installer

Laravel package for installing Agent OS and related code quality tools

Installs: 1

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/artisan-build/agent-os-installer

dev-main 2025-10-14 13:14 UTC

This package is auto-updated.

Last update: 2025-10-14 13:15:14 UTC


README

A Laravel package for installing Agent OS and related code quality tools into Laravel applications.

Installation

This package is designed to be used during the initial setup of Agent OS in Laravel projects.

Requirements

Minimum Requirements (for target projects)

  • PHP 8.2+
  • Laravel 11.0+
  • Composer 2.0+

Recommended

  • PHP 8.4+
  • Laravel 12.0+

What Gets Installed

The installer will set up the following tools and configurations:

Code Quality Tools

  • PestPHP - Modern testing framework (minimum: Pest 3.0)
  • Laravel Pint - Code formatting and style fixing
  • PHPStan/Larastan - Static analysis (minimum: level 5, recommended: level 6)
  • Rector - Automated code refactoring with Laravel rules
  • Tighten Duster - Unified code quality command (runs Pint, TLINT, and more)

Development Tools

  • Laravel Debugbar - Development debugging tool
  • Laravel IDE Helper - IDE autocompletion for Laravel

Composer Scripts

The installer adds standardized Composer scripts to your composer.json:

  • composer test - Run tests with config clearing
  • composer test-parallel - Run tests in parallel
  • composer lint - Fix code style with Duster
  • composer rector - Run Rector refactoring
  • composer stan - Run PHPStan static analysis
  • composer ready - Run full quality check (rector, lint, stan, test)
  • composer report - Run quality check with non-blocking failures
  • composer coverage - Generate test coverage report
  • composer coverage-html - Generate HTML coverage report
  • composer types - Check type coverage

Note: If existing scripts conflict with these definitions, you'll be prompted to confirm overwriting them. These scripts are required for Agent OS commands to function properly.

Agent OS Framework

We install our own opinionated fork of Agent OS, which includes a Laravel profile. This fork is available on GitHub. If you already have Agent OS installed, we will simply copy our Laravel profile into your existing Agent OS installation. If you already have a profile called Laravel, we will assume you have things set up the way you want them and completely skip the Agent OS installation portion of this.

The reason that we install all of those code quality tools is that in our Laravel profile, the instructions mention things like composer report and composer ready, which are scripts that run all this tooling to ensure that everything is truly up to our specifications.

License

MIT