Download the PHP package chuoke/unify-gallery without Composer

On this page you can find all versions of the php package chuoke/unify-gallery. 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 unify-gallery

chuoke/media-bridge

Latest Version on Packagist Tests Total Downloads

A unified bridge for multiple media sources — search photos and videos from Unsplash, Pexels, Pixabay, Bing, Wikimedia Commons, and NASA through a single consistent interface.

This package was renamed from chuoke/unify-gallery to chuoke/media-bridge in v2.

Supported Sources

Driver Search Browse API Key Media Types
Bing ✗ ✓ No Photo
Unsplash ✓ ✓ Yes Photo
Pexels ✓ ✓ Yes Photo, Video
Pixabay ✓ ✓ Yes Photo, Video
Wikimedia ✓ ✓ No Photo, Video
NASA ✓ ✓ No Photo, Video

Installation

For Laravel integration, also install:

Usage

Standalone

Extra Parameters

Media Variants

Pagination

Most drivers return the next numeric page in nextPage. Cursor-based sources such as Wikimedia may return an opaque token array; pass it back as extras['cursor'].

Bing only exposes a shallow daily archive feed. The driver fetches the available archive batches internally, deduplicates repeated items by source_id, and then paginates the merged result locally.

MediaResult fields:

Field Type Description
items MediaItem[] Result items
total int Total count when available
has_more bool Whether another page is available
page int Current numeric page
per_page int Requested page size
next_page int\|string\|array\|null Next page number or cursor token

Check Driver Capabilities

Laravel

If you are using a full Laravel application, the required Illuminate packages are already present.

Publish the config file:

Configure your API keys in config/media-bridge.php or via environment variables:

Use the facade:

When the package runs inside a Laravel application, outgoing requests use Laravel's Http client automatically. That allows Laravel-side tooling such as Telescope to observe these requests. Outside Laravel, the package continues to use Guzzle directly.

MediaItem Fields

Field Type Description
source string Driver name, e.g. 'unsplash'
source_id string Stable ID from the source platform
media_type string 'photo' or 'video'
url string Best available direct media URL
thumb_url string Thumbnail URL
variants array Available media variants
download_url string\|null Download trigger URL (Unsplash)
title string\|null Title if provided by source
description string\|null Description if provided by source
author_name string\|null Photographer / uploader name
author_url string\|null Link to author profile
license string License identifier, e.g. 'cc0'
width int\|null Image width in pixels
height int\|null Image height in pixels
color string\|null Dominant color hex (if available)
tags array Keyword tags
display_date string\|null Date string YYYY-MM-DD

Testing

The default test suite uses mocked HTTP responses and does not require API keys or network access.

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of unify-gallery with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.4
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 chuoke/unify-gallery contains the following files

Loading the files please wait ...