Download the PHP package besnovatyj/yii2-cms-file-manager without Composer

On this page you can find all versions of the php package besnovatyj/yii2-cms-file-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 yii2-cms-file-manager

besnovatyj/yii2-cms-file-manager

Standalone-виджеты файлового менеджера для Yii2 — без CKEditor. Тонкие обёртки над npm-ядрами: здесь только сборка ядра в собственный dist/ + PHP-виджет и AssetBundle. Вся логика ФМ — в ядре.

Две линии (обе живут в пакете до полной замены v1 на v2):

Линия Ядро Entry → dist PHP
v2 (проводник) @besnovatyj/filemanager-core2 assets/explorer.ts → dist/explorer.js ExplorerWidget, ExplorerAsset
v1 @besnovatyj/filemanager-core assets/index.ts → dist/file-manager.js FileManagerWidget, FileManagerCoreAsset

Серверная часть обеих линий — модуль besnovatyj/yii2-cms-file: v2 ходит на /File/backend/api/{operation} (контракт bescms-fs, см. filemanager-core2/docs/API-CONTRACT.md), v1 — на /File/backend/file-manager.

Сборка (Node только в Docker)

build:local (FM_CORE_LOCAL=1) берёт ядра из локальных packages/npm/*/dist; build — из node_modules (ядро v2 пока подключено file:-зависимостью, после публикации в npm заменить на версию). dist/ коммитится — потребляющий проект Node не использует.

v2: ExplorerWidget

Picker в форме

Кнопка открывает проводник в окне; «Выбрать» (или двойной клик по файлу) кладёт значение в поле и закрывает окно. Если у файла нет публичного URL (например, ZIP-хранилище), подставляется path.

Просто открыть менеджер

Встроить в страницу

Свойства

Свойство По умолчанию Назначение
model/attribute, name/value — picker через ActiveForm / без модели
showInput true поле рядом с кнопкой (авто-false без модели и name)
returnAttribute 'url' url / path / name выбранного узла
pickMultiple, multipleSeparator false, "\n" множественный выбор
pickFilter null 'image' — только изображения
embedded, height, containerOptions false, '600px', [] встроенный режим
connector '/File/backend/api' базовый URL API
startPath '/' стартовый виртуальный путь (/ — список хранилищ)
scope null запереть менеджер в поддереве (UI + подписанный токен для сервера)
headers [] доп. заголовки поверх CSRF/Ajax
title '' заголовок окна
storageKey null (= fm2:view) ключ localStorage настроек вида; '' — не сохранять
theme 'auto' auto / light / dark
clientConfig [] любые поля ExplorerConfig ядра (функции — JsExpression)

Мобильные устройства: раскладка и модель тапов подстраиваются автоматически (см. filemanager-core2/docs/INTERACTION.md). Большие файлы грузятся кусками с докачкой (tus), если бэкенд это объявляет (filemanager-core2/docs/UPLOAD-TUS.md).

Транслитерация кириллицы в именах загружаемых файлов — настройка бэкенда (modules.File.params.fs.naming.transliterate), у виджета опции нет: имя формирует сервер.

v1: FileManagerWidget

Без изменений, см. историю пакета. Используйте только там, где v2 ещё не проверен.


All versions of yii2-cms-file-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
yiisoft/yii2 Version ~2.0.0
yiisoft/yii2-bootstrap5 Version ~2.0.0
besnovatyj/yii2-cms-file Version ^1.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 besnovatyj/yii2-cms-file-manager contains the following files

Loading the files please wait ...