goodm4ven/anvil

An internal support package used for Laravel package development
1,782
Install
composer require goodm4ven/anvil
Latest Version:v1.3.8
PHP:^8.4||^8.3
License:MIT
Last Updated:Apr 25, 2026
Links: GitHub  ·  Packagist
Maintainer: GoodM4ven

Anvil

Latest Version on Packagist GitHub Tests Action Status Coverage Status Total Downloads

An internal package used for Laravel package development...

Installation

Install the package with 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();

Synchronize environment variables & configurations for Workbench testing

  1. Inside your TestCase.php class, use this trait:
use \GoodMaven\Anvil\Concerns\TestableWorkbench;
  1. Inside the same class Testbench's getEnvironmentSetUp method, call this method:
$this->setDatabaseTestingEssentials();

PestPHP Livewire Testing Methods

In order to bypass the issue of assigning specific waiting time for input fields to update correctly, we have these 2 helper methods:

use GoodMaven\Anvil\Support\LivewireTester;

LivewireTester::waitForDomInputValue($page, $selector, $expectedValue);
LivewireTester::waitForRenderedInputValue($page, $selector, $expectedValue);

Development

This package was initiated based on my Laravel package template that is built on top of Spatie's. Make sure to read the docs for both.

Tasks

  • // TODO Unit testing all features

Support

Support ongoing package maintenance as well as the development of other projects through sponsorship or one-time donations if you prefer.

Credits

Related Packages

goodm4ven/tailwind-merge

Resolves TailwindCSS class conflicts in between Laravel Blade component calls

1,716 1
cartalyst/support

Support helpers.

2,961,442 75
taskforcedev/laravel-support

Laravel support package. Used by other Taskforcedev packages.

9,489 1
armxy/laravel-internal-queue

Internal Queue Driver for Laravel (Push to background)

17,353 0
arcanedev/support

ARCANEDEV Support Helpers

8,699,600 188