Download the PHP package postsimple/filament-postsimple without Composer

On this page you can find all versions of the php package postsimple/filament-postsimple. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-postsimple

PostSimple for Filament

Latest Version on Packagist Total Downloads

Send content from your Filament admin panel to PostSimple with one click to automatically generate professional social media content powered by AI.

About PostSimple

PostSimple 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

Requirements

Note: The PostSimple API is only available with a Pro subscription. Request your API key at [email protected]

Installation

Install the package via Composer:

Publish the config file (optional):

Configuration

1. Register the Plugin

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

2. Get Your API Key

  1. Ensure you have a PostSimple Pro subscription
  2. Send an email to [email protected] 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

Add your PostSimple API key to your .env file:

Usage

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:

Alternative: Table Row Action

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

Example: Blog Post Resource

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

How It Works

  1. Click the "Send to PostSimple" button on any record
  2. Confirm the action in the modal
  3. The plugin sends the title and URL to PostSimple
  4. You're automatically redirected to PostSimple to view the generated content

Model Requirements

The plugin works best when your models follow certain conventions, but it's flexible enough to work with any structure.

Automatic Title Detection

The plugin automatically looks for these fields (in order):

  1. Custom field (if you specify with ->titleAttribute())
  2. title
  3. name
  4. heading
  5. subject
  6. Falls back to ModelName #ID

Example:

Automatic URL Detection

The plugin tries to get the URL in this order:

  1. Custom closure (if you specify with ->urlUsing())
  2. $record->getUrl() method
  3. $record->url() method
  4. Builds from slug field: /table-name/{slug}
  5. Falls back to: /table-name/{id}

Example with getUrl() method:

Example with route helper:

When Customization is Required

You need to customize when:

Product example with customization:

Customization

Custom Title Field

If your model uses a different field for the title, you can specify it:

Custom URL

You can provide a custom closure to generate the URL:

Complete Customization Example

Using Both Title and URL Customization

Configuration Options

The plugin publishes a config file with the following options:

Add to your .env file:

Translations

The plugin includes translations for English and Dutch. The language is automatically detected from your Laravel application's locale.

To publish and customize the translations:

This will publish the language files to lang/vendor/filament-postsimple/.

Troubleshooting

"PostSimple API key not configured"

"No title found"

"No URL found"

"Failed to send to PostSimple"

Support

For questions or issues:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-postsimple with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/filament Version ^4.0|^5.0
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package postsimple/filament-postsimple contains the following files

Loading the files please wait ...