Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibrahimbougaoua/radiobuttonimage
Radio button image is all about replacing traditional radio buttons with images
https://github.com/ibrahimbougaoua/radiobuttonimage
Last synced: about 2 months ago
JSON representation
Radio button image is all about replacing traditional radio buttons with images
- Host: GitHub
- URL: https://github.com/ibrahimbougaoua/radiobuttonimage
- Owner: ibrahimBougaoua
- License: mit
- Created: 2023-07-22T12:17:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-04T20:09:51.000Z (3 months ago)
- Last Synced: 2024-10-30T14:18:47.676Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 55.7 KB
- Stars: 12
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Radio button image
[![Latest Version on Packagist](https://img.shields.io/packagist/v/ibrahimbougaoua/radiobuttonimage.svg?style=flat-square)](https://packagist.org/packages/ibrahimbougaoua/radiobuttonimage)
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/ibrahimbougaoua/radiobuttonimage/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/ibrahimbougaoua/radiobuttonimage/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/ibrahimbougaoua/radiobuttonimage.svg?style=flat-square)](https://packagist.org/packages/ibrahimbougaoua/radiobuttonimage)Radio button image is all about replacing traditional radio buttons with images.
## Support us
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://buymeacoffee.com/ibrahimbougaoua)
Youtube Video
[](https://www.youtube.com/watch?v=mJDevP77sY4)## Installation
You can install the package via composer:
```bash
composer require ibrahimbougaoua/radiobuttonimage
```You can publish the config file with:
```bash
php artisan vendor:publish --tag="radiobuttonimage-config"
```This is the contents of the published config file:
```php
return [
'path' => asset('storage'),
];
```Optionally, you can publish the views using
```bash
php artisan vendor:publish --tag="radiobuttonimage-views"
```## Usage
```php
RadioButtonImage::make('template_id')
->label('Templates')
->options(
Template::all()->pluck('image', 'id')->toArray()
)
```## Testing
```bash
composer test
```## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Ibrahim](https://github.com/ibrahimBougaoua)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.