Download the PHP package anomaly/file-field-type without Composer

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

File Field Type

anomaly.field_type.file

A file upload field type.

The file field type provides a single file upload input with integration to the Files Module.

Features

Configuration

Basic Configuration

With Folder Restriction

With File Type Restrictions

With Display Mode

Usage Examples

Basic File Upload

With File Upload in Form

Accessing Values

In Twig Templates

In PHP

Setting Values

In Forms

Direct Assignment

Database Structure

The file field type stores the file relationship as:

Validation

Required File

File Must Exist

Common Use Cases

User Avatar

PDF Document Upload

Product Featured Image

Report Attachment

Best Practices

  1. Restrict Folders: Always limit uploads to specific folders for organization
  2. Validate Extensions: Use extension restrictions for security
  3. Image Optimization: Use image manipulation for thumbnails and responsive images
  4. Clean Up: Implement cleanup for unused file records
  5. Check Existence: Always check if file exists before accessing properties
  6. Use Relationships: Leverage Eloquent relationships for easy access
  7. Consider Storage: Monitor disk space for large file uploads

Requirements

License

The File Field Type is open-sourced software licensed under the MIT license.

Authors

PyroCMS, Inc. - https://pyrocms.com Ryan Thompson - [email protected]


All versions of file-field-type with dependencies

PHP Build Version
Package Version
Requires anomaly/streams-platform Version ^1.10
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 anomaly/file-field-type contains the following files

Loading the files please wait ...