goodm4ven / anvil
Internal support package for Laravel package development
Fund package maintenance!
GoodM4ven
Installs: 131
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/goodm4ven/anvil
Requires
- php: ^8.3
- illuminate/contracts: ^11.0||^12.0
- illuminate/support: ^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/boost: ^1.8
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-browser: ^4.1
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
README
Just an internal package used by my Laravel packages to help with their development...
Installation
You can install the package via composer:
composer require --dev goodm4ven/anvil
Usage
I'm doing my best to make the helper classes "activatable" or injectable with ease. This is what we have, so far:
Laravel Booster incorrect alias for package development
Inject this to a service provider's register method:
\GoodMaven\Anvil\Fixes\RegisterLaravelBoosterJsonSchemaFix::activate();
Development (Laravel Boost and MCP)
- Since the package is utilizing Orchestra Testbench for the testing environment, its configuration file testbench.yaml should be looked at.
- Running the MCP server is done with
./vendor/bin/testbench boost:mcpinstead ofphp artisan boost:mcpor optionally via VSC command prompts. - (Optional): VSC users should have their MCP client pointing at
./vendor/bin/testbench boost:mcp. (Check .vscode/mcp.json) - (Optional): If you're using ChatGPT Codex in VSC or whatever, make sure your
config.tomlhas at least the following:
Editor MCP Configuration
Your editor's MCP entries in "config.toml" file shuold account for this as well:
# (Optional) For Laravel apps [mcp_servers.laravel-boost] command = "php" args = ["artisan", "boost:mcp"] # For 3rd party packages, including this [mcp_servers.laravel-boost-package] command = "./vendor/bin/testbench" args = ["boost:mcp"]
Testing
composer test