Download the PHP package fitzage/optimus-bard without Composer

On this page you can find all versions of the php package fitzage/optimus-bard. 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 optimus-bard

Optimus Bard v2.0

Advanced search transformer for Statamic Bard fields with deep content extraction and Statamic 5 support

✨ What's New in v2.0

Features

What this addon does:

Requirements

Installation

You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:

Basic Usage

Configure your search indexes using the Statamic search documentation.

In config/statamic/search.php, add the following at the top of the file, below the <?php line:

Simple Configuration

For basic Bard fields with standard content:

Advanced Configuration

For complex page builders with nested content:

Configuration Options

Parameters

  1. $bard (required): The Bard field content
  2. $blueprintPath (required): Path to the blueprint (e.g., collections/pages/page)
  3. $fieldName (required): Name of the field in the blueprint
  4. $userSetTypes (optional): Array of additional set types to specifically include
  5. $options (optional): Configuration array with the following options:
    • max_depth (default: 3): Maximum recursion depth for nested content
    • max_length (default: 90000): Maximum length of the output string

Automatic Content Detection

The transformer automatically detects and extracts content from:

Complete Example

Here's a complete search configuration for a modern Statamic site with complex content structures:

Migrating from v1.x

The v2.0 API is backward compatible with v1.x usage. Your existing transformers will continue to work:

Error Handling

The transformer includes robust error handling:

Performance Considerations

Troubleshooting

Content Not Being Extracted

  1. Check that the blueprint path and field name are correct
  2. Verify that your content structure contains text-bearing fields
  3. Increase max_depth if you have deeply nested content
  4. Add specific set types to the $userSetTypes parameter

Performance Issues

  1. Reduce max_depth to limit recursion
  2. Set a lower max_length value
  3. Consider excluding certain set types if they don't contain relevant content

Changelog

v2.0.0

v1.x

Acknowledgements

Special thanks to Erin Dalzell for the original inspiration and guidance.


All versions of optimus-bard with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
statamic/cms Version ^5.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 fitzage/optimus-bard contains the following files

Loading the files please wait ....