Download the PHP
package uiarts/proxy-image without Composer
On this page you can find all versions of the php package
uiarts/proxy-image. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor uiarts Package proxy-image Short Description Proxy images License
MIT
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.
Пакет для проксування та обробки зображень (resize, crop, optimize) через підписані URL.
Встановлення
1. Додати пакет через Composer
2. Опублікувати конфіг
3. Опублікувати entrypoint (images.php)
Після цього файл буде доступний:
Налаштування
В .env додай:
Або відредагуй config/proxy-image.php.
Renderer
IMAGES_RENDERER=gd — поточний дефолтний рендерер через GD.
IMAGES_RENDERER=libvips — рендерер через libvips CLI.
IMAGES_LIBVIPS_MODE=vipsthumbnail|thumbnail_source — режим роботи libvips.
IMAGES_LIBVIPS_BINARY — шлях/назва бінарника для обраного режиму:
vipsthumbnail для IMAGES_LIBVIPS_MODE=vipsthumbnail
vips для IMAGES_LIBVIPS_MODE=thumbnail_source
Placeholder mode (picsum)
Коли IMAGES_PICTURE_PLACEHOLDER_MODE=true, методи ProxyImage::picture(...) і ProxyImage::singleUrl(...) віддають лінки на https://picsum.photos/{width}/{height}.
Розміри беруться з sizes для кожного брейкпоінта. Якщо висота a, використовується width / 2.
Це зменшує навантаження на локальну машину під час розробки.
Налаштування Nginx
Додай у конфіг:
Формат URL
Приклад URL
Приклад Використання
Headless JSON (picture data)
Структуровані дані для <picture> можна отримати без HTML:
Lazy strategy
lazyStrategy=observer — дефолтна поведінка для loading=lazy: пакет віддає data-src/data-srcset і автоматично додає клас lazy.
lazyStrategy=manual — пакет віддає deferred markup (data-src, data-srcset, placeholder у src), але не додає клас lazy. Це режим для кастомного тригера, наприклад hover, click, slider change або ручного LazyLoad.load(...).
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 uiarts/proxy-image contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.