定制 sebs-space/british-artisan 二次开发

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

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

sebs-space/british-artisan

Composer 安装命令:

composer require sebs-space/british-artisan

包简介

British English aliases for Laravel Artisan commands, with suitably dry corrections for American spellings.

README 文档

README

British English command spellings for Laravel Artisan, with suitably dry corrections when the American spelling is used.

What it does

British Artisan lets you use:

php artisan optimise
php artisan optimise:clear

Laravel still receives and runs its native commands:

php artisan optimize
php artisan optimize:clear

The British spelling runs silently. The American spelling still works, but receives a randomly selected reminder that the proper spelling exists.

Requirements

  • PHP 8.2 or newer
  • Laravel 11, 12, or 13

Installation

Install the package with Composer:

composer require sebs-space/british-artisan

Then run the one-off installer:

php artisan british-artisan:install

The installer updates the project-root artisan file so command-line arguments are translated before Laravel resolves the command.

Usage

Use the British spelling as normal:

php artisan optimise
php artisan optimise:clear

Any command beginning with optimise is translated to the matching optimize command before Laravel runs it.

The original American spelling continues to work:

php artisan optimize:clear

It simply receives a polite correction first.

Uninstalling

Restore the original Laravel artisan bootstrap with:

php artisan british-artisan:uninstall

Then remove the package:

composer remove sebs-space/british-artisan

Supported command translations

British EnglishLaravel command
optimiseoptimize
optimise:*optimize:*

Additional command translations can be added in future releases.

Planned improvements

  • Publishable configuration
  • Custom correction messages
  • Additional British command spellings where real Artisan commands use American English

Licence

British Artisan is open-source software licensed under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固