Download the PHP package pubvana/media without Composer

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

Stable? Not Quite Yet License PHP Version Monthly Downloads Total Downloads GitHub Issues Contributors Latest Release Contributions Welcome

Pubvana Media

I noticed folks downloading some of these packages. I'm super grateful, Thank You! I would like to let folks know until this notice disappears I'm doing a lot of breaking changes without worrying about them. Once versions are up around 0.5.x things should settle down.

Media management module for Pubvana — images, video, and embeds. Built as a Flight School plugin.

Features

Requirements

Recommends

Installation

Enable in app/config/config.php:

Migrations package creates the media table automatically on first load.

Flight School config

This package uses Flight School's return-array config format. src/Config/Config.php returns the package defaults as an array, and Flight School stores that array under pubvana.media on $app.

That returned array currently includes 'routePrepend' => 'media'. The package does not currently define public application routes in src/Config/Routes.php, but admin/media-related routes still use the normal Flight School loading flow.

Configuration

Defaults from Config.php — override in your plugin config block:

Key Default Description
upload_path 'uploads' Relative to public/
max_image_size 10485760 10 MB
max_video_size 104857600 100 MB
allowed_image_ext ['jpg','jpeg','png','gif','webp']
allowed_video_ext ['mp4','webm','mov']
webp_quality 85 WebP output quality (0-100)
thumb_width 300 Small derivative width (proportional resize)
thumb_height 200 Reserved for poster sizing / legacy config compatibility
medium_width 768 Medium resize width (proportional)

Usage

Picker widget

Embed the media picker in any form:

Renders a clickable thumbnail with an offcanvas browser. The selected image path is written to a hidden input with the given name.

File structure

Uploads go to public/{upload_path}/YYYY/MM/:

License

MIT


All versions of media with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
enlivenapp/flight-school Version ^0.3
enlivenapp/flight-shield Version ^0.2
enlivenapp/migrations Version ^0.2
flightphp/active-record Version ^0.7
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 pubvana/media contains the following files

Loading the files please wait ...