Download the PHP package innopanda/laravel-asset-manager without Composer

On this page you can find all versions of the php package innopanda/laravel-asset-manager. 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-asset-manager

Laravel Asset Manager

A professional, drop-in asset management package for Laravel, built with Livewire and powered by Spatie Laravel Media Library.

Laravel Asset Manager provides a complete interface for uploading, organizing, browsing, selecting, replacing, versioning, and managing media assets. It can be used independently with Livewire or integrated directly into Filament forms.


โœจ Features


๐Ÿ“‹ Requirements

Filament is an optional dependency. The core Asset Manager and Livewire components can be used without Filament.


๐Ÿ“ฆ Installation

Install the package using Composer:

After installation, Laravel automatically discovers the package service provider.

Verify that the package is installed:

You should see:

Publish Configuration

Publish the Asset Manager configuration file:

This creates:

Publish Database Migrations

Publish the Asset Manager migrations to your application's database/migrations directory:

Then run the migrations:

Verify the migration status:

Publish Frontend Assets

Publish the compiled Asset Manager frontend assets:

The assets will be copied to:


โš™๏ธ Configuration

Publish the configuration file:

This creates:

Example configuration:

Adjust the configuration according to your application's requirements.


๐Ÿ—„๏ธ Database Migrations

The package includes all required database migrations for asset management.

Publish the package migrations to your application's database/migrations directory:

This publishes the Asset Manager migrations, including:

The asset_versions migration is required for File Replacement and Asset Version History functionality.

After publishing the migrations, run:

To verify the migration status:

Note: The package also loads its migrations automatically. Publishing them is recommended when you want the migration files available directly in your Laravel application's database/migrations directory and managed alongside your application's migrations.

Spatie Media Library

Laravel Asset Manager uses Spatie Laravel Media Library for media storage and management.

Make sure the required Spatie migrations are also available in your application.

If required, publish the Spatie Media Library migrations and then run:

The Asset Manager requires the media-related tables to be available before uploading and managing assets.


๐Ÿ–ผ๏ธ Storage

If you are using the default Laravel public disk, create the storage symlink:

Make sure your .env contains the appropriate disk configuration:

You can use another Laravel filesystem disk if required.


๐ŸŽจ Publishing Frontend Assets

The package ships its compiled frontend assets.

To publish them:

The assets will be copied to:

Expected files:

If you are developing the package locally, build the package assets from the package repository:


โšก Livewire Usage

Laravel Asset Manager can be used directly with Livewire without Filament.

Media Browser

Add the Media Browser component to a Blade view:

The browser provides functionality for:


Media Picker

To display the reusable asset picker:

The picker can be used inside your own Livewire forms and components.


Listening for Asset Selection

The asset picker dispatches an asset-selected event.

In the parent Livewire component:

You can then use the selected asset in your application.


๐Ÿงฉ Filament Integration

Filament integration is available when Filament is installed in the host application.

Use the Asset Picker inside a Filament form:

Multiple Selection

To allow multiple assets:

This makes the Asset Manager suitable for:


๐Ÿ“ Folder Management

Assets can be organized using virtual folders.

The folder structure does not require changing the physical storage location of the asset.

Example:

Folders can be nested and assets can be moved between folders.


๐Ÿ”„ File Replacement

Existing files can be replaced through the asset management interface.

The replacement functionality is designed to preserve the asset's existing relationships and associations while updating the underlying media.


๐Ÿงฑ Available Livewire Components

The package provides reusable Livewire components including:

These components are registered automatically by the package service provider.


๐Ÿงช Testing

The package contains its own PHPUnit test suite.

From the package repository:

Run the complete test suite:

Example:

Run Individual Tests

Run model tests:

Run API tests:

Run Livewire tests:

Run Spatie integration tests:


๐ŸŽจ Build Frontend Assets

Install Node dependencies:

Build production assets:

The compiled files are generated in:


๐Ÿ” Development

Clone the repository:

Enter the package directory:

Install PHP dependencies:

Install frontend dependencies:

Build assets:

Run the test suite:


๐Ÿ  Local Package Testing

To test a development version of the package in a Laravel application, you can use a Composer path repository.

In the Laravel application's composer.json:

Then require the package:

Composer will use the local package instead of downloading it from Packagist.

This is recommended when developing and testing the package before creating a release.


๐Ÿš€ Release Workflow

Before creating a release, run:

Then:

Verify the working tree:

Commit the changes:

Create a version tag:

Push the branch and tag:


๐Ÿค Contributing

Contributions are welcome!

  1. Fork the repository.
  2. Create a feature branch:

  3. Make your changes.
  4. Add or update tests.
  5. Run the test suite:

  6. Build frontend assets:

  7. Commit your changes:

  8. Push your branch:

  9. Open a Pull Request.

Please ensure that existing functionality continues to work and that new functionality includes appropriate tests.


๐Ÿ“š Architecture

The package is structured around several major areas:

The package keeps the asset-management functionality isolated from the host Laravel application.


๐Ÿ“œ License

Laravel Asset Manager is open-sourced software licensed under the MIT License.

See the LICENSE file for more information.


๐Ÿ”— Repository

GitHub:

https://github.com/manojujn05/laravel-media-manager


All versions of laravel-asset-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^12.0|^13.0
livewire/livewire Version ^3.8|^4.1
spatie/laravel-medialibrary Version ^11.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 innopanda/laravel-asset-manager contains the following files

Loading the files please wait ...