定制 spatie/boost-spatie-guidelines 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

spatie/boost-spatie-guidelines

Composer 安装命令:

composer require spatie/boost-spatie-guidelines

包简介

Spatie's Laravel & PHP coding guidelines for Laravel Boost

README 文档

README

Latest Version on Packagist Total Downloads

Bring Spatie's battle-tested Laravel & PHP coding guidelines to your AI-assisted development workflow with Laravel Boost.

Installation

Install the package via Composer:

composer require spatie/boost-spatie-guidelines --dev

Then install the guidelines with Boost:

php artisan boost:install

Select the Spatie guidelines from the list and they'll be installed to .ai/guidelines/boost-spatie-guidelines/.

What's Included

This package provides AI-optimized versions of Spatie's Laravel & PHP coding standards, including:

  • PSR compliance (PSR-1, PSR-2, PSR-12)
  • Type declarations and nullable syntax
  • Class structure and property promotion
  • Control flow patterns (happy path, early returns)
  • Laravel conventions (routes, controllers, configuration)
  • Naming conventions (camelCase, kebab-case, snake_case)
  • Blade templates and validation
  • Testing best practices

These guidelines help AI assistants like Claude Code generate code that follows Spatie's proven standards.

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Usage

Once installed, AI assistants using Laravel Boost will automatically reference these guidelines when generating code. No additional configuration needed!

Keeping Guidelines Up to Date

Re-run the Boost installer after updating the package to refresh guidelines:

composer update spatie/boost-spatie-guidelines
php artisan boost:update

Full Guidelines

View the complete, human-readable guidelines at spatie.be/guidelines.

Changelog

Please see CHANGELOG for recent changes.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Postcardware

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.

We publish all received postcards on our company website.

Credits

License

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

统计信息

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

GitHub 信息

  • Stars: 105
  • Watchers: 1
  • Forks: 3
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固