Download the PHP package backstage/uploadcare-field without Composer

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

Uploadcare Field component for the Backstage CMS.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Nice to meet you, we're Vormkracht10

Hi! We are a web development agency from Nijmegen in the Netherlands and we use Laravel for everything: advanced websites with a lot of bells and whitles and large web applications.

About this package

This package adds an Uploadcare field to the Backstage CMS. Uploadcare is a powerful file handling platform that provides file uploads, storage, transformations and delivery. With this package, you can easily integrate Uploadcare's functionality into your Backstage CMS forms.

The field supports:

Once installed, you can use the Uploadcare field in your Backstage forms just like any other field type, while leveraging Uploadcare's robust file handling capabilities.

Other custom fields

For a list of other custom fields, please see the Backstage CMS documentation.

Installation

You can install the package via composer:

Then you need to add the Uploadcare public key to your services.php config file:

Then you need to add the Uploadcare field to your backstage/fields.php config file:

Automatic Migration

This package includes an automatic migration that fixes double-encoded JSON data in Uploadcare fields. This migration runs automatically when the package is installed or updated.

What the migration does:

The migration will run automatically when you:

⚠️ Important: This migration is not reversible. Always make a database backup before updating the package.

Usage

After adding the Uploadcare field to your backstage/fields.php config file, the field will automatically be available in the Backstage CMS.

Field Configuration

The Uploadcare field supports several configuration options:

Image Cropping and Transformations

The Uploadcare field stores comprehensive metadata about uploaded images, including cropping information. This allows you to access both the original and cropped versions of images in your front-end.

Understanding the Data Structure

When an image is uploaded and cropped, the field stores data in this format:

Cropping Parameters Explained

The cropping is defined by URL parameters:

Front-end Usage

1. Direct URL Access
2. Using Uploadcare Transformations

If you have the backstage/php-uploadcare-transformations package installed:

3. In Blade Templates

Best Practices

  1. Enable metadata storage: Set withMetadata: true in your field configuration to ensure cropping information is preserved.

  2. Use appropriate versions:

    • Use cdnUrl for pre-cropped images
    • Use fileInfo.cdnUrl for original images
    • Apply new transformations as needed
  3. Performance considerations:

    • Pre-cropped images load faster than on-the-fly transformations
    • Use appropriate image sizes for your use case
    • Consider using WebP format for better compression
  4. Responsive images: Use different crop sizes for different screen sizes:

Testing

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 uploadcare-field with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0
backstage/filament-uploadcare-field Version self.version
backstage/fields Version self.version
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 backstage/uploadcare-field contains the following files

Loading the files please wait ...