Download the PHP package elamed123/laravel-temp-media without Composer

On this page you can find all versions of the php package elamed123/laravel-temp-media. 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 laravel-temp-media

Laravel Temp Media

Latest Version on Packagist Total Downloads License PHP Version

A comprehensive Laravel package for handling temporary media uploads with automatic cleanup and secure transfer to permanent models using Spatie Media Library.

โœจ Features

๐Ÿ“‹ Requirements

๐Ÿš€ Quick Start

Installation

Publish Configuration and Migrations

Run Migrations

Configure Environment Variables

Add to your .env file:

๐ŸŽฏ Basic Usage

Upload Temporary Media

Using the API

Using the Service

Transfer to Permanent Model

Using the Trait

Using the Service

๐Ÿ“š API Reference

Endpoints

Method Endpoint Description
POST /api/v1/temp-media Upload temporary media
GET /api/v1/temp-media/{id} Get temporary media details
DELETE /api/v1/temp-media/{id} Delete temporary media
POST /api/v1/temp-media/validate Validate temporary media IDs

Response Examples

Upload Response

Transfer Response

โš™๏ธ Configuration

The package provides extensive configuration options:

๐Ÿงน Cleanup

Automatic Cleanup

The package automatically cleans up expired and processed media hourly. You can configure this in the config file.

Manual Cleanup

Programmatic Cleanup

๐Ÿ“ก Events

The package dispatches several events for custom integrations:

TempMediaUploaded

MediaTransferred

TempMediaExpired

๐Ÿงช Testing

Running Tests

Test Example

๐Ÿ”ง Advanced Features

Custom Media Properties

Order Management

Media Conversions

Enable thumbnail generation:

This generates:

๐Ÿ› Troubleshooting

Common Issues

File Upload Fails

Transfer Fails

Cleanup Not Working

๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

This package is open-sourced software licensed under the MIT license.

๐Ÿ‘จโ€๐Ÿ’ป Author

Elabidi Mohammed

๐Ÿ™ Acknowledgments

๐Ÿ“– Documentation

For complete documentation, please visit the Documentation file.

๐Ÿ“ Changelog

Please see CHANGELOG for more information on what has changed recently.


Made with โค๏ธ for the Laravel community


All versions of laravel-temp-media with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3
spatie/laravel-medialibrary Version ^10.0|^11.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 elamed123/laravel-temp-media contains the following files

Loading the files please wait ...