Download the PHP package mitydigital/fuse-utilities without Composer

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

Fuse Utilities for Statamic

Statamic 5.0+ Supportamic on Packagist


Utilities for Mity Digital's Fuse Starter Kit.

These utilities are designed to work with Mity Digital's Fuse Starter Kit for Statamic.

Commands

Generate Tailwind

The Generate Tailwind command can be run by running:

This will create the resources/tailwind/generated.html file based on the resources/tailwind/config.yaml file.

In the config file, there are two sections - colours and classes.

For colours, this is a list of the different colour handles you want to apply to the Tailwind classes. This is as simple as colours like red or amber or sky - whatever they are called in the tailwind.config.js file.

For classes, this will list the Tailwind classes that you want to have generated for the range of colours provided. With each class, replace the colour with the string [colour] to inject the different colour classes. This means that text-[colour]-500 will output:

This is intended to make working with colours easier by generating the different classes to a HTML file for the Tailwind process to pick up and include in the site's CSS.

Listeners

Prevent Deleting Mounts

This runs before an Entry is deleted, and prevents a mount (such as "Blog") from being deleted.

This only runs when the app is in Production mode. In local dev mode, you can still delete mounts.

Tags

There is a fuse tag that includes functionality for the utilities.

Forms

isCaptchaEnabled

Returns a boolean as to whether Captcha is enabled for the current configuration.

You can also pass a form parameter to check if Captcha is enabled for the specified form.

getFormLang

Returns a language string or override for a form and type.

The form parameter is the form's handle. type is one of:

isFormFieldConditional

Returns whether a form field is conditional:

By default will use the current context, but can also pass a field handle:

isFormFieldRequired

Returns whether a form field is required.

Returns true when required, a string of required logic when required_if or false if not required at all.

siteName

Returns the site's name in the current context.

Image

The image tag returns dynamic configuration options for use with the image component.

It will return all of the Asset's properties (just like the existing asset tag), plus additional properties to help with the <picture> element.

It will take advantage of these params or context. If a param is not found, the context will be used:

The image component accepts these parameters:

The aspect_ratio and quality properties accept the standard Tailwind prefixes for responsive behaviour, such as:

Note that behaviour will differ based on screen pixel density too.

You can use sm, md, lg, xl, 2xl, 3xl, 4xl and 5xl.

The sizes property defaults to (min-width: 768px) 50vw, 100vw but can be overridden per use case.

JSON Schema

Site metadata uses the JSON Schema function to output any schema details for the site. This is done by calling:

Currently this is only used in resources/views/partials/metadata/_json-ld.antlers.html.

Scripts

The Scripts method allows you to include the head or body scripts. This can be used by passing one of these as the location parameter:

Widgets

Images without Alt

The Images without Alt widget can be added to the Dashboard using the images_without_alt key in your Widgets configuration:

You can adjust the configuration of the widget using these options:

Add-on Support

This is designed for use with Mity Digital's Starter Kit for Statamic, which is not a public Starter Kit.

There is no support for provided for this Add-on.

Credits

License

This addon is licensed under the MIT license.


All versions of fuse-utilities with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
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 mitydigital/fuse-utilities contains the following files

Loading the files please wait ....