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 6.0+ Fuse Utilities 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

Symlink (for play site)

ln -s /Users/Marty/Code/starter-blade/vendor/fuse-utilities /Users/Marty/Code/statamic-addons/mitydigital/fuse-utilities/resources/dist

Find assets (Path References)

Use this command to create a list of files that contain a reference to the path. The default command looks for temp/ (i.e. temp assets)

You can pass your own path if you need too:

This command will look at the site's source, and follow the .gitignore rules.

Images

The Image helper has been created to make images easier to work with within the Tailwind landscape.

You can pass aspect-ratio and size attributes with Tailwind-like strings to help change image size and aspect at different breakpoints.

For example: <x-fuse-utilities::image ... aspect-ratio="3/2 md:1/1 lg:4/5" size="350 md:300 lg:900" />

Here, the aspect will be 3:2 and 350px wide on the smallest devices, 1:1 and 300px wide next, and 4:5 and 900px wide over the lg breakpoint.

Private images

You can adjust the way that private assets get routed so that they can use a custom route, then get passed back to Statamic. This allows things like access control to be performed in the controller, which could even be signed and with an expiry date, and then Statamic can still internally handle its rendering.

To use a protected route for a private container:

  1. Create an implementation of MityDigital\FuseUtilities\Contracts\ImageUrlGenerator.
  2. Return the package’s default URL generator for public assets, and your protected route URL for the private container.
  3. Bind your implementation to ImageUrlGenerator::class in your application's service provider.
  4. In the protected route controller, check access to the asset before serving the original image or passing validated image parameters to Statamic's ImageGenerator.

The generator receives the asset and the requested Glide parameters, so responsive sizes, crops, quality settings, and image formats continue to work as normal.

For example

Then in the AppServiceProvider.php:

Icons

The Starter Kit is configured for Heroicons.

There is a command that helps set this up.

Basically this setup command helps hook up the Tailwind Icons with the site's Iconamic fieldtype.

On the frontend, we use Blade UI Icons, not Iconamic. But for the CP, we use Iconamic to get a preview of the icon.

If Heroicons is not used, speak to Marty about setting up.

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.

Support and Facades

Supporting classes do the heavy lifting behind the scenes.

There are Facades available for Bard, Forms, Scripts and StructuredMetadata.

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.5
statamic/cms Version ^6.0
spatie/laravel-ray Version ^1.43
aryehraber/statamic-captcha Version ^1.17
spatie/laravel-data Version ^4.23
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 ...