Download the PHP package alkoumi/filament-image-radio-button without Composer

On this page you can find all versions of the php package alkoumi/filament-image-radio-button. 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-image-radio-button

This is Filament Form Radio Button But With Images 💁 🎉

RTL & Dark Mode Supported 🎉

Total Downloads Packagist Stars License Latest Version on Packagist GitHub release (latest by date) GitHub Tests Action Status

If you want Filament field to choose and select an Image from a group of images with a Radio button This is Image Radio button to replacing traditional radio buttons with images selection.

Installation

You can install the package via composer:

for fiament 4

1- create custom theme Filament Docs

2- then add

@source '../../../../vendor/alkoumi/filament-image-radio-button/resources/views/**/*.blade.php';

to the created theme.

3- Then register the theme in your xxxPanelProvider ->viteTheme('resources/css/filament/main/theme.css')

4- Then npm run build

Important

1- OPTIONS

The radio buttom has options then the scenario Here is you have Model Report and you want to choose a design of a report

so options here must return return Report::pluck('file', 'id')->toArray(); the options will be like

[ 1 => report1.jpg , 2 => report2.jpg] then the user will choose the design.

2- Images

You must define where you stored the images in filesystems disks somthing like local or public so in this example I am using ->disk('reports') So the component can find the images files

    'local' => [
        'driver' => 'local',
        'root' => storage_path('app/private'),
        'serve' => true,
        'throw' => false,
    ],

    'public' => [
        'driver' => 'local',
        'root' => storage_path('app/public'),
        'url' => env('APP_URL') . '/storage',
        'visibility' => 'public',
        'throw' => false,
    ],

    'reports' => [
        'driver' => 'local',
        'root' => storage_path('app/public/reports'),
        'url' => env('APP_URL') . '/reports',
        'visibility' => 'public',
        'throw' => false,
    ],

Usage in basic scenario

Usage in advanced scenario

Screenshots

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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


All versions of filament-image-radio-button with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3|^8.4
filament/filament Version ^3.0|^4.0
spatie/laravel-package-tools Version ^1.15.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 alkoumi/filament-image-radio-button contains the following files

Loading the files please wait ....