PHP code example of ekandreas / filament-resonator
1. Go to this page and download the library: Download ekandreas/filament-resonator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ekandreas / filament-resonator example snippets
// config/prism.php
return [
'providers' => [
'openai' => [
'api_key' => env('OPENAI_API_KEY'),
],
// Or use Anthropic, Ollama, etc.
],
];
use EkAndreas\Resonator\ResonatorPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugins([
ResonatorPlugin::make(),
]);
}
use EkAndreas\Resonator\Models\ResonatorSnippet;
ResonatorSnippet::create([
'name' => 'Welcome Message',
'shortcut' => 'welcome',
'subject' => 'Welcome to Our Service',
'body' => '<p>Thank you for reaching out...</p>',
'is_active' => true,
]);
// In a service provider
use EkAndreas\Resonator\Models\ResonatorEmail;
ResonatorEmail::created(function ($email) {
if ($email->is_inbound) {
// Notify team, trigger webhooks, etc.
}
});
mermaid
graph TD
A[filament-resonator] --> B[filament/filament ^4.0]
A --> C[spatie/laravel-package-tools ^1.16]
A --> D[saloonphp/saloon ^3.0]
A --> E[prism-php/prism ^1.0]
B --> F[Livewire 3]
B --> G[Laravel 12]
E --> H[OpenAI]
E --> I[Anthropic]
E --> J[Ollama]
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.