[GH-ISSUE #128] About installing via Composer #89

Closed
opened 2026-03-02 15:55:41 +03:00 by kerem · 2 comments
Owner

Originally created by @mozgbrasil on GitHub (Feb 19, 2019).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/128

Hello good afternoon

About installing via Composer

If possible make use of Composer

Originally created by @mozgbrasil on GitHub (Feb 19, 2019). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/128 Hello good afternoon About installing via Composer If possible make use of Composer
kerem closed this issue 2026-03-02 15:55:41 +03:00
Author
Owner

@prasathmani commented on GitHub (Feb 20, 2019):

it is not possible now.

<!-- gh-comment-id:465440109 --> @prasathmani commented on GitHub (Feb 20, 2019): it is not possible now.
Author
Owner

@AdrienPoupa commented on GitHub (Jul 29, 2020):

I think the author should really support composer, as it is the best way to version dependencies. However, we can get around it.

This is how I did it:

composer.json

    "require": {
        "prasathmani/tinyfilemanager": "2.4.3"
    },
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "prasathmani/tinyfilemanager",
                "version": "2.4.3",
                "source": {
                    "url": "https://github.com/prasathmani/tinyfilemanager.git",
                    "type": "git",
                    "reference":"tags/2.4.3"
                }
            }
        }
    ],

This will retrieve the files from the tag 2.4.3. To update in the future, change the tag by the latest version.

Create a PHP file where you want TinyFileManager to be loaded:

<?php
require __DIR__ . '/vendor/prasathmani/tinyfilemanager/tinyfilemanager.php';

Copy the config.php file from the repo next to the newly created file and update your settings from there.

<!-- gh-comment-id:665735395 --> @AdrienPoupa commented on GitHub (Jul 29, 2020): I think the author should really support composer, as it is the best way to version dependencies. However, we can get around it. This is how I did it: composer.json ```json "require": { "prasathmani/tinyfilemanager": "2.4.3" }, "repositories": [ { "type": "package", "package": { "name": "prasathmani/tinyfilemanager", "version": "2.4.3", "source": { "url": "https://github.com/prasathmani/tinyfilemanager.git", "type": "git", "reference":"tags/2.4.3" } } } ], ``` This will retrieve the files from the tag 2.4.3. To update in the future, change the tag by the latest version. Create a PHP file where you want TinyFileManager to be loaded: ```php <?php require __DIR__ . '/vendor/prasathmani/tinyfilemanager/tinyfilemanager.php'; ``` Copy the config.php file from the repo next to the newly created file and update your settings from there.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#89
No description provided.