https://github.com/sakanjo/filament-easy-testings
Easily test your app.
https://github.com/sakanjo/filament-easy-testings
filament laravel testing
Last synced: 5 months ago
JSON representation
Easily test your app.
- Host: GitHub
- URL: https://github.com/sakanjo/filament-easy-testings
- Owner: sakanjo
- License: mit
- Created: 2025-01-21T06:18:37.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-08-16T17:19:14.000Z (11 months ago)
- Last Synced: 2025-10-25T14:09:52.451Z (8 months ago)
- Topics: filament, laravel, testing
- Language: PHP
- Homepage:
- Size: 1.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

A Filament plugin to make testing easier.
> ⨠Help support the maintenance of this package by [sponsoring me](https://github.com/sponsors/sakanjo).
Table of Contents
=================
- [Table of Contents](#table-of-contents)
- [Install](#-install)
- [Usage](#-usage)
- [Presets](#presets)
- [Default presets](#default-presets)
- [Creating custom preset](#creating-custom-preset)
- [Support the development](#-support-the-development)
- [Credits](#%EF%B8%8F-credits)
- [License](#-license)
## đĻ Install
Install the package via composer:
```
composer require sakanjo/filament-easy-testings
```
## đĻ Usage
```php
plugin(
EasyTestingPlugin::make()
->preset(MyPreset::make())
);
}
```
## Presets
Presets are the core of the plugin, allows you to create different tests with no limit.
### Default presets
The package comes with a default preset that you can use out of the box.
- `DefaultPreset`
- `EnvPreset`
- `WebsocketPreset`
### Creating custom preset
You can create your own custom preset by extending the `SaKanjo\FilamentEasyTestings\Presets\Preset` class.
```php
persistCollapsed()
->icon('heroicon-m-bolt')
->components([
Forms\Components\TextInput::make('name')
->label('Name')
->required(),
Schemas\Components\Actions::make([
Actions\Action::make('submit')
->action(function (Forms\Get $get, TestingsPage $livewire): void {
$livewire->validateFields(['name']);
$name = $get('name');
Notification::make()
->title("Hello $name")
->send();
}),
]),
]),
];
}
}
```
## đ Support the development
**Do you like this project? Support it by donating**
Click the ["đ Sponsor"](https://github.com/sponsors/sakanjo) at the top of this repo.
## ÂŠī¸ Credits
- [Salah Kanjo](https://github.com/sakanjo)
- [All Contributors](../../contributors)
## đ License
[MIT License](https://github.com/sakanjo/filament-easy-testings/blob/master/LICENSE) Š 2023-PRESENT [Salah Kanjo](https://github.com/sakanjo)