PHPackages                             postsimple/filament-postsimple - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. postsimple/filament-postsimple

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

postsimple/filament-postsimple
==============================

Send your Filament resources to PostSimple for AI-powered social media content generation

v1.2.1(5mo ago)09MITPHPPHP ^8.1

Since Jan 29Pushed 5mo agoCompare

[ Source](https://github.com/postsimple/filament-plugin)[ Packagist](https://packagist.org/packages/postsimple/filament-postsimple)[ Docs](https://github.com/postsimple/filament-postsimple)[ RSS](/packages/postsimple-filament-postsimple/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (7)Used By (0)

PostSimple for Filament
=======================

[](#postsimple-for-filament)

[![Latest Version on Packagist](https://camo.githubusercontent.com/52eb16ed64362497243abb7ebb59fe463fa975dc6447f4b1215c48b6ddc3a52b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f737473696d706c652f66696c616d656e742d706f737473696d706c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/postsimple/filament-postsimple)[![Total Downloads](https://camo.githubusercontent.com/107016b6323efd8a4ad6998e479ee267957013941046025a4a18bff1c1bbf7a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f737473696d706c652f66696c616d656e742d706f737473696d706c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/postsimple/filament-postsimple)

Send content from your Filament admin panel to [PostSimple](https://postsimple.app) with one click to automatically generate professional social media content powered by AI.

About PostSimple
----------------

[](#about-postsimple)

[PostSimple](https://postsimple.app) is an AI-powered social media tool that automatically creates and schedules social media posts tailored to your brand's style across all channels. This Filament plugin allows you to seamlessly send content from your Filament resources to PostSimple for instant social media content generation.

Features
--------

[](#features)

- ✅ **One-click integration** - Send any resource to PostSimple with a single click
- ✅ **Easy configuration** - Simple API key setup via .env file
- ✅ **Automatic detection** - Intelligently finds title and URL from your models
- ✅ **Works everywhere** - Add to any Filament resource (Posts, Pages, Products, etc.)
- ✅ **Multi-language support** - Includes English and Dutch translations
- ✅ **Secure** - API key stored in environment variables

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Laravel 10.0 or higher
- Filament 4.x or 5.x
- **PostSimple Pro subscription** with API access

> **Note:** The PostSimple API is only available with a Pro subscription. Request your API key at

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require postsimple/filament-postsimple
```

Publish the config file (optional):

```
php artisan vendor:publish --tag="filament-postsimple-config"
```

Configuration
-------------

[](#configuration)

### 1. Register the Plugin

[](#1-register-the-plugin)

Add the plugin to your Filament panel provider (e.g., `app/Providers/Filament/AdminPanelProvider.php`):

```
use PostSimple\FilamentPostSimple\FilamentPostSimplePlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugins([
            FilamentPostSimplePlugin::make(),
        ]);
}
```

### 2. Get Your API Key

[](#2-get-your-api-key)

1. Ensure you have a **PostSimple Pro subscription**
2. Send an email to **** with:
    - Your company name
    - Your PostSimple account email
    - Your website URL
3. You'll receive your API key within 1-2 business days

### 3. Configure the API Key

[](#3-configure-the-api-key)

Add your PostSimple API key to your `.env` file:

```
POSTSIMPLE_API_KEY=ps_your_api_key_here
```

Usage
-----

[](#usage)

### Adding the Action to Resources

[](#adding-the-action-to-resources)

> **Recommended:** Add the action to your `EditRecord` or `ViewRecord` pages. This ensures the record context is properly available.

Add to your resource's `EditRecord` or `ViewRecord` page:

```
use PostSimple\FilamentPostSimple\Actions\SendToPostSimpleAction;

protected function getHeaderActions(): array
{
    return [
        SendToPostSimpleAction::make(),
        // ... other actions
    ];
}
```

### Alternative: Table Row Action

[](#alternative-table-row-action)

If you prefer to add the action directly in your resource table, you can use `SendToPostSimpleTableAction`:

```
use PostSimple\FilamentPostSimple\Actions\SendToPostSimpleTableAction;

public static function table(Table $table): Table
{
    return $table
        ->columns([
            // ... your columns
        ])
        ->actions([
            SendToPostSimpleTableAction::make(),
            // ... other actions
        ]);
}
```

### Example: Blog Post Resource

[](#example-blog-post-resource)

Here's a complete example of adding PostSimple to a blog post resource. Add the action to your `EditPost` page:

```
