MCPcopy Index your code
hub / github.com/bestmomo/filemanager

github.com/bestmomo/filemanager @V1.03

Chat with this repo
repository ↗ · DeepWiki ↗ · release V1.03 ↗ · + Follow
3,508 symbols 10,820 edges 368 files 392 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Filemanager

This package is to add simogeo/Filemanager to Laravel 5.1 installation.

Installation

Add Filemanager to your composer.json file to require Filemanager :

    require : {
        "laravel/framework": "5.1.*",
        "bestmomo/filemanager": "1.*"
    }

Update Composer :

    composer update

The next required step is to add the service provider to config/app.php :

    Bestmomo\Filemanager\FilemanagerServiceProvider::class,

Publish

The last required step is to publish assets in your application with :

    php artisan vendor:publish

User model

For Filemanager php connector you must create at least this function in user model :

public function accessMediasAll()
{
    // return true for access to all medias
}

If you want some users access only to one folder add this function :

public function accessMediasFolder()
{
    // return true for access to one folder
}

A folder with user{id} name will be created in filemanager/userfiles folder.

Integration

You can now integrate Filemanager with any editor.

Simple example integration with CKEditor :

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>CKEditor</title>
        <script src="https://github.com/bestmomo/filemanager/raw/V1.03/cdn.ckeditor.com/4.5.3/standard/ckeditor.js"></script>
    </head>
    <body>
        <textarea name="editor"></textarea>
        <script>
            CKEDITOR.replace( 'editor', {
                filebrowserBrowseUrl: '{!! url('filemanager/index.html') !!}'
            });
        </script>
    </body>
</html>

Core symbols most depended-on inside this repo

eq
called by 522
public/filemanager/scripts/CodeMirror/test/driver.js
get
called by 457
public/filemanager/connectors/php/inc/wideimage/demo/helpers/Request.php
replace
called by 387
public/filemanager/connectors/php/filemanager.class.php
e
called by 319
public/filemanager/scripts/ViewerJS/webodf.js
mod
called by 264
public/filemanager/scripts/CodeMirror/mode/rust/rust.js
testVim
called by 260
public/filemanager/scripts/CodeMirror/test/vim_test.js
eqPos
called by 228
public/filemanager/scripts/CodeMirror/test/driver.js
add
called by 218
public/filemanager/connectors/php/filemanager.class.php

Shape

Function 2,786
Method 573
Class 149

Languages

TypeScript79%
PHP21%
Python1%

Modules by API surface

public/filemanager/scripts/ViewerJS/pdf.worker.js457 symbols
public/filemanager/scripts/CodeMirror/lib/codemirror.js328 symbols
public/filemanager/scripts/ViewerJS/pdf.js126 symbols
public/filemanager/scripts/CodeMirror/keymap/vim.js107 symbols
public/filemanager/scripts/custom-scrollbar-plugin/js/minified/jquery-1.11.0.min.js76 symbols
public/filemanager/scripts/jquery-1.11.3.min.js75 symbols
public/filemanager/scripts/custom-scrollbar-plugin/js/minified/jquery-1.9.1.min.js71 symbols
public/filemanager/scripts/CodeMirror/mode/javascript/javascript.js69 symbols
public/filemanager/scripts/CodeMirror/test/lint/acorn.js66 symbols
public/filemanager/scripts/custom-scrollbar-plugin/js/minified/jquery-2.1.0.min.js65 symbols
public/filemanager/connectors/php/inc/wideimage/lib/Image.php62 symbols
public/filemanager/connectors/php/plugins/rsc/cloudfiles.php56 symbols

For agents

$ claude mcp add filemanager \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact