Download the PHP package sylvainjule/imageradio without Composer

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

Kirby illustrated radios

Add illustrations to radio buttons.

cover


Overview

This plugin is completely free and published under the MIT license. However, if you are using it in a commercial project and want to help me keep up with maintenance, please consider making a donation of your choice.


1. Installation

Kirby 3: Up to 1.0.5. Kirby 4: 2.0.0+

Download and copy this repository to

Alternatively, you can install it with composer:


2. Setup

The field is best used with the columns option set.

2.1. Hardcoded options

If the field's options are hardcoded, images need to be placed in the assets/images folder of your installation.

The image value must be a filename, the field will automatically prefix it with the correct path.

2.2. Dynamic options

The field is compatible with both query and api fetch. You need to explicitely set the result text, stored value and image url.

The image value must return an absolute url.

Notice the {{ file.resize(512).url }} instead of {{ file.url }}. Two reasons for this:

I recommend using a resize number already used by the panel (128, 256, 512, 768, 1024).


3. Global options

3.1. baseUrl

If you want the images to be queried from a different location than the assets/images folder, you can set the baseUrl option in your config.php file to whatever folder you'd like. For example:


4. Per-field options

4.1. ratio

ratio

The ratio of the image container, to be adjusted depending on your images. Default is 1/1.

4.2. fit

fit

Defines how the image should fit within its container, either contain or cover. Default is cover.

4.3. back

Defines the background behind transparent / contained images. Accepts any CSS-valid property for the background property. Default is false.

4.4. mobile

By default, images are not displayed when the panel switches to its mobile view. Not recommended, but if you want to override this, set the option to true.


5. License

MIT


All versions of imageradio with dependencies

PHP Build Version
Package Version
Requires getkirby/composer-installer Version ^1.1
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 sylvainjule/imageradio contains the following files

Loading the files please wait ....