Download the PHP package vasilgerginski/filamentphp-text-extractor without Composer

On this page you can find all versions of the php package vasilgerginski/filamentphp-text-extractor. 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 filamentphp-text-extractor

Filament Text Extractor

Latest Version on Packagist Total Downloads License

A powerful Laravel package that seamlessly integrates with Filament Admin Panel to extract and manage translatable text from your Eloquent models. Perfect for multi-language applications, content management systems, and any project requiring dynamic text extraction and translation management.

๐Ÿš€ Features

๐Ÿ” Automatic Text Extraction

โœจ Translation Casts (NEW!)

๐ŸŽจ Filament Integration

๐Ÿ—๏ธ Advanced Content Support

๐ŸŒ Multi-Language Ready

โšก Performance & Developer Experience

๐Ÿ“‹ Requirements

๐Ÿ”ง Installation

Install the package via Composer:

Register the plugin in your Panel provider (e.g., app/Providers/Filament/AdminPanelProvider.php):

Publish and run the migrations:

Optionally, publish the config file:

๐ŸŽฏ Quick Start

1. Add the Trait to Your Model

Add the ExtractsTranslatableText trait to any model you want to extract text from:

2. Extract Text

You can extract text from a single model instance:

Or extract from all instances of a model:

3. Use the Artisan Command

Extract text for any model using the provided Artisan command:

โœจ Translation Casts (NEW!)

๐ŸŽฏ Translatable Cast for Simple Fields

Instead of manual translation calls, use the Translatable cast for automatic translation:

Usage in templates:

๐Ÿ—๏ธ JsonTranslatable Cast for UI Components

Perfect for page builders, CMS content blocks, and JSON-based UI components:

JSON Structure (stored in database):

Template Usage (no translation calls needed!):

Translation Results:

๐Ÿง  Smart Field Detection

The JsonTranslatable cast automatically detects and translates:

๐ŸŽญ Live Demos & Examples

Check out the examples/ directory for comprehensive demos:

Quick demo setup:

๐Ÿ“„ Advanced Features

Filament Builder Block Extraction

The package automatically detects and extracts text from Filament Builder JSON blocks. When you have a Builder field with blocks like:

The extractor will automatically:

Rich Text Extraction

For rich text fields (TinyMCE, Trix, etc.), the package:

Example:

๐ŸŽจ Filament Admin Interface

The package automatically registers a Filament resource for managing extracted texts. After installation, you'll find a new "Extracted Texts" section in your Filament admin panel with:

Dashboard Features

The extraction dashboard provides:

โš™๏ธ Configuration

The configuration file (config/filament-text-extractor.php) allows you to customize:

๐Ÿ”„ Field Handlers

The package includes specialized handlers for different field types:

Creating Custom Field Handlers

You can create custom field handlers by extending the AbstractFieldHandler:

๐ŸŒ Auto-Generated Translation Files

The package can automatically generate Laravel translation files in your lang directory, enabling seamless localization:

Automatic Translation File Generation

When texts are extracted, the package automatically creates/updates translation files:

Using Translations in Your Models

With the generated translation files, you can easily access localized content:

Automatic Model Casting

You can even create a custom cast for automatic translation:

Translation Workflow

  1. Extract: Run extraction to populate the database and generate translation files
  2. Translate: Edit the generated files in lang/[locale]/ or use the Filament admin
  3. Deploy: Your application automatically uses the translated values

๐Ÿงช Testing

The package includes a comprehensive test suite. Run the tests with:

For code coverage:

๐Ÿค Contributing

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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ› Bug Reports

If you discover any issues, please create an issue on GitHub: https://github.com/vasilGerginski/filamentphp-text-extractor/issues

๐Ÿ“ Changelog

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

๐Ÿ”’ 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.

๐ŸŒŸ Show Your Support

If you find this package helpful, please consider giving it a star on GitHub! โญ


Built with โค๏ธ by Vasil Gerginski


All versions of filamentphp-text-extractor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0|^11.0|^12.0
filament/filament Version ^3.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.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 vasilgerginski/filamentphp-text-extractor contains the following files

Loading the files please wait ....